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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi simfonik:

Let us tighten up the spec a bit ... what should happen if the value in the cell is = 50000000 ?
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0
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...
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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