Help with combining IF statements.

de8212

Board Regular
Joined
Apr 30, 2002
Messages
78
I want the user to enter a number in cell c10. If the number is less than 10000 I want the value in C10 multiplied by 1.55. If the number in c10 is between 10001 and 29999 I want the value in c10 to be multiplied by 2.15. If the value in c10 is between 30000 and 49999 I want the value in c10 to be multiplied by 3.12. Lastly if the value in c10 is greater than 50000 I want it to be multiplied by 4.23.

Here is an If statemnet that handles only the firtst part of my quesiton.
=IF(C10<9999,C10*1.55)
DO I just make multiple If statements and somehow combine them? If so how do I do the between (ie 10001 - 29999) values?


Thanks for any help.
 

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
7,994
Create a lookup table with the lower limit in the first column and the multiplied value in the second column.

Or, do to it in one cell,
=C10*VLOOKUP(C10, {0,1.55;10001,2.15;30000,3.12;50000,4.23},2 )

Assuming a lower limit of 0 for your data.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,271
Messages
5,600,650
Members
414,399
Latest member
Ninjee

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