Calculating a cell based on several criteria

kcgojnur

Board Regular
Joined
Aug 13, 2014
Messages
122
Hello I'm looking to figure out the best way to figure out a rate with multiple criteria.

If Cell 56 is not 7 or 15 I need to take the rate (Cell F56) - subsidy (C91) and select the minimum of that against rate (Cell C61). So whichever is the smallest should be selected. Then the minimum needs to be multiplied by cell C62 the answer should then be added by what is in cell C63 and C64.

If Cell 56 is a 7 or 15 I need to take the rate (cell F56) - subsidy (C89) and select the minimum of that against rate (Cell C61). So whichever is the smallest should be selected. Then the minimum needs to be multiplied by cell C62 the answer should then be added by what is in cell C63 and C64.

Also, the final answer should be rounded to the 2nd decimal place.

TIA
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You don't tell us the column of Cell 56. You'll have to edit this formula before you try it.

This is what I came up with:
=ROUND(MIN(F56 - IF(OR(Cell_56=7, Cell_56=15), C89, C91), C61) * C62 + C63 + C64, 2)
 
Upvote 0
You don't tell us the column of Cell 56. You'll have to edit this formula before you try it.

This is what I came up with:
=ROUND(MIN(F56 - IF(OR(Cell_56=7, Cell_56=15), C89, C91), C61) * C62 + C63 + C64, 2)

Thanks for the response I'll give it a try. Also, cell 56 is is A56.
 
Upvote 0
Seems to work! Gonna test it some more. Wanted to add a small caveat to the formula. The above should only run if cell F5 = TRUE.
Code:
=IF(F5=TRUE,ROUND(MAX(F56 - IF(OR($C$56=7, $C$56=15), $C$88, $C$90), $C$61) * $C$62 + $C$63 + $C$64, 2),0)
?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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