# If Formula

#### tmk0427

##### Board Regular
I'm trying to create a formula that goes like =if(b4 is between 0 and 10000, b5*b4, if(b4 is between 10001 and 20000, b6*b4, if(b4 is between 20001 and 30000, b7*b4 etc...

Thanks.

### 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.
=B4*OFFSET(B5,INT((B4-1)/10000),0)

Perhaps:

=INDEX(\$B\$5:\$B\$7,-INT(-(\$B\$4/10000)))*B4

Possibly

=INDEX(B:B,CEILING(B4/10000,1)+4)*B4

IF Formula Clarification

Here's how my spreadsheet looks: I'm trying to get a result in cell A1 that shows =if(b4 is between 0 and 10,000, c4*b4, if(b4 is between 10,001 and 20,000, d4*b4, if(b4 is between 20,001 and 30,000, e4*b4).

b4
10000
c4
2%
d4
4%
e4
6%

I hope this amply clarifies my need. Thanks again.

That's a different range than you originally posted, but perhaps:

=INDEX(C4:IV4,-INT(-(B4/10000)))*B4

That worked. Thanks.

Replies
5
Views
159
Replies
0
Views
202
Replies
7
Views
770
Replies
3
Views
389
Replies
6
Views
268

1,211,686
Messages
6,103,296
Members
447,853
Latest member
olddutch7

### 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