Formula Help!

Travisallen2007

New Member
Joined
Jan 21, 2018
Messages
30
Office Version
  1. 365
I am hoping that y'all can help! I am trying to get a formula that says,

If A21 says Nickles do =((B21+C21)-D21)*2
If A 21 Says Dimes do =((B21+C21)-D21)*5

The list will change and say Quarters and change the last multiplier to *10, Ones *20, Fives *40, Tens *40, Twenties*80, Pennies (DOLLARS)*1

I would like for the list in A21 to be changable and then automatically update the formual in E21.

Thanks for taking the time to read this and help if possible!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Excel 2010
ABCDEFGH
20Dimes5
21Nickles5246Nickles2
22Quarters10
23
3b
Cell Formulas
RangeFormula
E21=LOOKUP(A21,G20:H22)*(B21+C21-D21)
 
Upvote 0
Thank you! This will work perfect!

Thanks again for your reply and help, I really appreciate your time!
 
Last edited:
Upvote 0
=IF(A21="Nickles",2,IF(A21="Dimes",5,IF(A21="Dimes",5,IF(A21="Dimes",5,IF(A21="Dimes",5,IF(A21="Dimes",5,IF(A21="Dimes",5,IF(A21="Dimes",5,""))))))))*((B21+C21)-D21)

i've added nickles and dimes, you'll need to update the dimes and corresponding 5's to suit the rest
 
Upvote 0
=LOOKUP(A21,{"Dimes",5;"Nickles",2;"Quarters",10})*(B21+C21-D21)

or

=((A21="Dimes")*5+(A21="Nickles")*2+(A21="Quarters")*10)*(B21+C21-D21)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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