# If statement question.

#### Tami

##### New Member
I need to run a formula that will look and see if data is greater then, equal to or lesser then a condition and if it is then multiply a cell by another cell but I'm having problems with it.

Here is the forumla that I've written, can anyone please assist.

=IF(H27<=4,D27*0%,IF(H27>=5<=9,D27*3%,IF(H27>=10<=14,D27*4%,IF(H27>=15<=19,D27*6%,IF(H27>=20<=24,D27*7%,IF(H27>=25,D27*8%))))))

This forumla is returning FALSE into the cell.

Info for the cells

H27=15, D27=\$28,912.00 - so the calculation should be calculating that H27 being 15, should take the \$28,912.00 and multiply that figure by 6%.

I hope I've been clear enough on my example.

Thanks in advance for any help.
Tami

### Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

##### MrExcel MVP
Try

=D27*VLOOKUP(H27,{0,0;5,0.03;10,0.04;15,0.06;20,0.07;25,0.08},2,0)

#### Asala42

##### Well-known Member
=IF(H27<=4,D27*0%,IF(H27>=5<=9,D27*3%,IF(H27>=10<=14,D27*4%,IF(H27>=15<=19,D27*6%,IF(H27>=20<=24,D27*7%,IF(H27>=25,D27*8%))))))

This should work.

=IF(H27<=4,D27*0%,IF(H27<=9,D27*3%,IF(H27<=14,D27*4%,IF(H27<=19,D27*6%,IF(H27<=24,D27*7%,IF(H27,D27*8%))))))

I think it was choking on statements like:
H27>=20<=24

You could have also replaced statements like that to:
AND(H27>=20,H27<=24)

HTH

#### Barrie Davidson

##### MrExcel MVP
Or you could try:

=IF(H27<=4,D27*0%,IF(H27<=9,D27*3%,IF(H27<=14,D27*4%,IF(H27<=19,D27*6%,IF(H27<=24,D27*7%,D27*8%)))))

Regards,

#### Tami

##### New Member
Thanks!!! It worked great, I was thinking it would accept the <=,>= as two separate statements, not realizing I had to separate them. Friday afternoon, I should have expected that.

Thanks again!!!

#### Chas17

##### Well-known Member
Aladin's is the one to use, use the Vlookup, the others work fine but you could place the Percents in cells and reference the cells, then if the percents change you only have to change one cell, not all the formulas.

Replies
0
Views
209
Replies
1
Views
204
Replies
3
Views
703
Replies
3
Views
229
Replies
3
Views
209

### Forum statistics

1,144,272
Messages
5,723,433
Members
422,497
Latest member
dougy99 ### 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.

### Which adblocker are you using?    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

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