Nested formula - in a muddle!

MrsH

New Member
Joined
Aug 9, 2011
Messages
2
I'm quite new to Excel (MO2010) and in a muddle with a nested formula - we rushed over this is my training course.

I want to do this in one cell:

if B4=0, enter "No", if B4=3, enter "Part", if B4=5, enter "Yes".

I've followed some of the previous examples on this site but get error messages that I can't resolve. Should the cells be set to General format for a mix of number and text to work?

Many thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I'm quite new to Excel (MO2010) and in a muddle with a nested formula - we rushed over this is my training course.

I want to do this in one cell:

if B4=0, enter "No", if B4=3, enter "Part", if B4=5, enter "Yes".

I've followed some of the previous examples on this site but get error messages that I can't resolve. Should the cells be set to General format for a mix of number and text to work?

Many thanks
Structured...
Code:
=IF(B4="",
      "",
      IF(B4=0,
          "No",
          IF(B4=3,
              "Part",
              IF(B4=5,
                  "Yes",
                  ""))))

Unstructured...

=IF(B4="", "",IF(B4=0,"No",IF(B4=3,"Part",IF(B4=5,"Yes",""))))
 
Upvote 0
Thank you for the very helpful and rapid responses. It seems my error was in the bracket placement. Noted for future reference.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

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