Return Different Values for Different Ranges

CMJ

New Member
Joined
Jul 26, 2012
Messages
11
Hi All!

I'm looking to return a different value based on whether cell C35 is between multiple ranges... i.e.:

($0-$25,000 = $500); ($25,001-$50,000 = $1000); ($50,001 -100,000 = $1,500); (100,001+ = 2,000)

I've tried (and failed) at various nest IFs and lookups... any help is sincerely appreciated!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Do you mean something like:
Code:
=IF(C35>100000,2000,IF(C35>50000,1500,IF(C35>25000,1000,500)))
You don't actually need to check each "bracket". The way that nested IF statements work is that once it finds a True condition, it stops there (and doesn't check anything after that). So all you have to do is start at the top, and work your way down (or vice versa).
 
Last edited:
Upvote 0
Joe4, Thank you! I was wondering why it was returning the wrong values, and now I understand that it was finding a true statement too early.

Thanks again!
 
Upvote 0
You are welcome.

Yep, you have to pick one of the ends to start at (less than the upper bound of your smallest range or greater than the lower bound of your largest value), and work your way up or down from there.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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