Cant get this formula right

nutritiouspig

Well-known Member
Joined
Jan 8, 2003
Messages
615
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
Joined
Mar 12, 2002
Messages
11,454
Hi simfonik:

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

jcvoth

Board Regular
Joined
Feb 23, 2004
Messages
198
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
Joined
Aug 5, 2003
Messages
12,251
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
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
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...
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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
Top