"The formula you typed contains an error" returned with multiple IF formula

roba730

New Member
Joined
Apr 29, 2016
Messages
3
My data has a number in column 2 that I need to analyze against multiple criteria and return a value based on the analysis. In basic terms I need to look at the value in Column 2 and if the value is less than 2077, return A. If the number is 2077 or more but less than 10,000, return B. If the number is 10,000 or more but less than 27027, return C. If it is 27027 or more return D.

I created this multiple IF formula.

=IF(C2<2077,a,IF(C2<10000,b,IF(C2<27027,c,d)))

however it returns error in the title above.

Thanks in advance for the assistance.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try: =IF(C2<2077,"A",IF(AND(C2>2077,C2<10000),"B",IF(AND(C2>10000,C2<27027),"C","D")))
You have to test for lower and upper limits. Also consider what happens if the value in C2 is equal to 27077 or 10000 or 27027. You may have to use >= or <= in places in the formula. Also the values returned have to be in quotes.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,081
Messages
6,128,694
Members
449,464
Latest member
againofsoul

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