More Formula help...

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
749
Ok I have a cell that I need this function.

D2 will be the input cell and the formula will be in J2.

If D =1 then 4%
If D = 2 then 0%
If D =3 then 2% minimum $60.00 and a maximum of $120.00
If D =4 then 0%
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

goldfish

Well-known Member
Joined
Aug 23, 2005
Messages
712
Is this what you were looking for:
Code:
Choose(D2,.04*A1,0,MIN(MAX(.02*A1,60),120),0)

HTH,
~Gold Fish
 

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
749
Well I know this isn't right but something like this.

=IF(D2=1,4,"",IF(D2=2,0,"",IF(D2=3,MIN,60,MAX,120,IF(D2=4,0,""
 

goldfish

Well-known Member
Joined
Aug 23, 2005
Messages
712

ADVERTISEMENT

I don't understand step 3 at all:
If D =3 then 2% minimum $60.00 and a maximum of $120.00

Do you want this cell to have a value of 2% or something else... and if so, where does the min and max come in? in your psudo-example you don't even include the 2%, so I'm a bit lost.
 

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
749
Actually I messed up.... All I need is this

If D2 =1 then 4%
If D2 = 2 then 0%
If D2 =3 then 2%
If D2 =4 then 0%
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,400
Messages
5,837,024
Members
430,467
Latest member
FrazzledbyExcel

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
Top