Nested if staements

jdissi

New Member
Joined
Oct 30, 2011
Messages
2
I have a spreadsheet where I need to create a nested if statement. THe first condition is if sales are greater than or equal to 30000 the truth is 3000, if greater than or equal to 40000 than 4000, if greater than or equal to 50000 than 5000 and if greater than or equal to 60000 than 6000. Thanks.
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi jdissi,

Welcome to MrExcel!!

Though you can nest the statements, the LOOKUP function is better suited in this case, i.e. the following formula...

=LOOKUP(A1,{0,30000,40000,50000,60000},{0,3000,4000,5000,6000})

...will return the desired results based on the value in cell A1 (change to suit).

HTH

Robert
 
Upvote 0
Thanks Robert.

I was hoping to getting the nested if formula to see what I was doing wrong. My formula is returning an error message.
 
Upvote 0
OK, this should do it:

=IF(ISNUMBER(A1)=FALSE,0,IF(A1<30000,0,IF(AND(A1>=30000,A1<=39999),3000,IF(AND(A1>=40000,A1<=49999),4000,IF(AND(A1>=50000,A1<=59999),5000,6000)))))

HTH

Robert
 
Upvote 0

Forum statistics

Threads
1,226,217
Messages
6,189,687
Members
453,563
Latest member
Aswathimsanil

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