IF condition with multiple criteria

nikhil0311

Board Regular
Joined
May 3, 2013
Messages
200
Office Version
  1. 2013
Platform
  1. Windows

Book1
AB
1RevenueComment
2100$100 mm
375$75mm - $99mm
450$50mm - $74mm
545$15mm - $49mm
610$0mm - $14mm
Nested IF


column A has numbers and column B is the final comment i am looking to capture based on the below criteria.
For example
if the number in column A is (>= 100) greater than and equals to 100 then comment in column B should be "$100 mm"


Criteria
If >= 100 then "$100 mm"
OR
If >= 75 and <=99 then "$75mm - $99mm"
OR
If >= 50 and <=74 then "$50mm - $74mm"
OR
If >= 15 and <=49 then "$15mm - $49mm"
OR
If >0 and <=14 then "$0mm - $14mm"


let me know if you have any questions!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
nikhil0311, Good afternoon.

You can use a little table and use a VLOOKUP function with perfects results.

Do you want a solution or you need an IF function solution?
 
Upvote 0
Sort the table you have in ascending order on column A (on Revenu).

Now yoy can invoke:

=LOOKUP(X2,Table)

where X2 houses a revenue of interest for which you want to fetch the appropriate comment.
 
Upvote 0
nikhil0311, Good afternoon.

Using the IF function in this case is not the best technical solution.

But if this is what you want, try this formula:

E1 is cell to be searched.

F1 --> formula -->
Code:
=IF(E1>=100,"$100 mm",IF(E1>=75,"$75mm - $99MM",IF(E1>=50,"$50mm - $74mm",IF(E1>=45,"$15mm - $49mm",IF(E1>=10,"$0mm - $14mm","----")))))

Is that what you want?

I hope it helps.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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