Return a specific number if the sum result is less than the minimum number required

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
94
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I have a table below. I need to find out the 20% of "Numbers". If the 20% falls below 25, the result I need is either 25 (if column B is more than 25) or return the number in Column B if it's less than 25.

Example, Orange is 100. 20% of Orange is 20, but since the number is 100, it must return 25 in Column D. Papaya is only 4, so it must return 4 in Cloumn D.

By the way, the figure in Column C is rounded up.


Workers interview schedule.xlsx
ABCD
2ItemNumbers20%To buy
3Apple15030.030
4Orange10020.025
5Grape25050.050
6Cherry9519.025
7Papaya41.04
8Mango62.06
Sheet1
Cell Formulas
RangeFormula
C3:C8C3=ROUNDUP(B3*20%,0)


Any formula suggestions would be most appreciated, but would prefer not to reference Column C as I'm using it as a guide only. Ultimately, will need to remove it from my spreadsheet.

Thanks!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
How about
Excel Formula:
=IF(B3<25,B3,MAX(25,ROUNDUP(B3*0.2,0)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,628
Messages
6,120,618
Members
448,973
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top