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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

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,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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