If function equation

completelogistics

New Member
Joined
Aug 16, 2011
Messages
6
To all;

How many equations can I fit into an IF function?

This is what my equation looks like at present but it won't let me finalize it.

=IF(K6<=4,H6/0.65,IF(K6=5,H6/0.74),IF(K6=6,H6/.645)IF(K6=7,H6/.42)IF(K6=8,H6/.474))

I have 13 portions to put in.

Please help.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I'm not sure of the answer to your question - but it's a lot more than 13.

I think your syntax is a bit wrong - try the below:

=IF(K6<=4,H6/0.65,IF(K6=5,H6/0.74,IF(K6=6,H6/0.645,IF(K6=7,H6/0.42,IF(K6=8,H6/0.474)))))
 
Upvote 0
THANKS dbn!!!!!

That is exactly what I needed. I cut and pasted your formula into my spreadsheet and voila! it works!!!!

Greatly appreciated!!!:)
 
Upvote 0
Although you have it working now, the way I'd do it is to have a lookup table and use a VLOOKUP, then you can change the values if needed without changing the formulas.

=H6/VLOOKUP(K6,LookupTable,2,FALSE)
 
Upvote 0
To all;

How many equations can I fit into an IF function?

This is what my equation looks like at present but it won't let me finalize it.

=IF(K6<=4,H6/0.65,IF(K6=5,H6/0.74),IF(K6=6,H6/.645)IF(K6=7,H6/.42)IF(K6=8,H6/.474))

I have 13 portions to put in.

Please help.
Create a 2 column table something like this:

Book1
AB
110.65
220.65
330.65
440.65
550.74
660.645
770.42
880.474
990.63
10100.72
11110.85
12120.06
13130.64
Sheet1

Then your formula would be:

=H6/LOOKUP(K6,A1:B13)
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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