# Cant get this formula right

#### nutritiouspig

##### Well-known Member
What I am trying to do is set up a formula on excel to select a value from a cell and if that value is less than \$50,000,000, input 8%, if it is between \$50,000,001 and \$149,999,999, input 5% and if it is over \$150,000,000, input 3%.

Any Help Appreciated.

Thanks!
S.

### Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

#### Yogi Anand

##### MrExcel MVP
Hi simfonik:

Let us tighten up the spec a bit ... what should happen if the value in the cell is = 50000000 ?

#### jcvoth

##### Board Regular
test timer.xls
ABCD
7testnumresult
8490000000.08
9500000010.05
101500000010.03
Sheet1

I assumed a couple of things you didn't specify here. notably, if the result is equal to 50M, 150M, etc. Please let me know if this is not what you intended.

-Jarrod

#### SydneyGeek

##### MrExcel MVP
Assuming that you only hav the 3 options, an IF calculation will do the job.

For values in Column B, with the percent to go into Column C (starting at C2), try:

=IF(B2>150000000,3%,if(B2>50000000,5%,8%))

Fill down the column to complete the job.

Denis

##### MrExcel MVP
usual solution is with vlookup:
Book1
ABCDE
1MinimumofRangeRangeValueFindReturn
20000
31111
410291
5503102
61004112
7492
8503
9513
101004
111014
Sheet1

...in general, use the minimum value in the range as the key for the whole range...

#### nutritiouspig

##### Well-known Member
Thanks SidneyGeek, that worked great!

Replies
11
Views
335
Replies
1
Views
145
Replies
1
Views
85
Replies
1
Views
82
Replies
5
Views
263

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,327
Messages
5,769,460
Members
425,550
Latest member
Bonebeast

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