IF statements with ranges in between

chad87

New Member
Joined
Jun 28, 2011
Messages
2
Hi guys, its been a while since iv done a complex if statement, was wondering if i could get some assistance.

kilometres................... statutory fractions

0-15,000..................... 0.2
15000-25000................ 0.2
25000-40000............... 0.14
>40000......................... 0.10

i need the cell to come up with the statutory figures

i started off with =if(<15000,"cell reference",if (i cant do the between range),if(>40000,"cellreference")

cheers

Chad
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi guys, its been a while since iv done a complex if statement, was wondering if i could get some assistance.

kilometres................... statutory fractions

0-15,000..................... 0.2
15000-25000................ 0.2
25000-40000............... 0.14
>40000......................... 0.10

i need the cell to come up with the statutory figures

i started off with =if(<15000,"cell reference",if (i cant do the between range),if(>40000,"cellreference")

cheers

Chad

Let B2:C5 house the table above.
In A2:A5 enter the following numbers:

0
15000
25000
40000

Let E2 house a number like 27,000.

In F2 enter:

=LOOKUP(E2,$A$2:$A$5,$C$2:$C$2:$C$5)

Equivalently,

=INDEX($C$2:$C$5,MATCH(E2,$A$2:$A$5,1))

=VLOOKUP(E2,$A$2:$C$5,3,1)
 
Upvote 0
Hi guys, its been a while since iv done a complex if statement, was wondering if i could get some assistance.

kilometres................... statutory fractions

0-15,000..................... 0.2
15000-25000................ 0.2
25000-40000............... 0.14
>40000......................... 0.10

i need the cell to come up with the statutory figures

i started off with =if(<15000,"cell reference",if (i cant do the between range),if(>40000,"cellreference")

cheers

Chad
Your ranges overlap.

If the kilometers was 25000 what result do you expect?
 
Upvote 0
****, vlookup. I should've gone with that method instead of trying a if statement.

thanks you very much Aladin

T Valko, i see the issue, thanks for pointing it out. That table is actually a real table from Australian taxation office so i cant change it. i guess vlookup will have to do for now. Unless i change the range themselves.

thank you very much for your help.
 
Upvote 0
T Valko, i see the issue, thanks for pointing it out. That table is actually a real table from Australian taxation office so i cant change it. i guess vlookup will have to do for now. Unless i change the range themselves.

thank you very much for your help.
Good deal. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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