I'm attempting to write a formula that will need to do the following:
Using 10% of the sum of a block of cells (B17:E17) calculate that sum but,
if the sum < 130,000, show 130,000
if the sum > 250,000, show 250,000
I can get it to calculate based on one of the criteria above, but I'm not sure how to take both into consideration. This is how it's started so far:
=IF((SUM(B17:E17))/10<130000,130000,(SUM(B17:E17))/10)
I'm stumped on how to now plug in the maximum criteria.
Any help would be greatly appreciated.
Last edited by NBVC; 08-29-2011 at 02:09 PM.
Try:
=MEDIAN(130000,SUM(B17:E17),250000)
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
The MIN/MAX formula would be:
=MIN(MAX(130000, SUM(B17:E17)), 250000)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
Thank you for the quick solutions!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks