Logical Statements with more than 2 answers..

RPopowich

Board Regular
Joined
Jan 6, 2005
Messages
89
What formula can I use to do the following:

I have 3 options of what the cell will say.
IN Stock
Reserved
or a specific date

If cell A1 says Instock, I'd like A2 to say Instock.
If cell A1 says Reserved, I'd like A2 to say Reserved.
If cell A1 does NOT say Instock or Reserved, I'd like A2 to say NY OOS.

I tried multiple IF statements, but can't figure how to return 3 possible answers instead of just 2.

Also, Is there a function in excel where I can update several PIVOT tables within the same workbook at once instead of having to update them manually on each tab?

Thanks!
Robin
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
RPopowich said:
What formula can I use to do the following:

I have 3 options of what the cell will say.
IN Stock
Reserved
or a specific date

If cell A1 says Instock, I'd like A2 to say Instock.
If cell A1 says Reserved, I'd like A2 to say Reserved.
If cell A1 does NOT say Instock or Reserved, I'd like A2 to say NY OOS.

I tried multiple IF statements, but can't figure how to return 3 possible answers instead of just 2.

For this, try:

=IF(AND(A1<>"Instock",A1<>"Reserved"),"NY OOS",A1)
 
Upvote 0
You might try this:
=IF(A1="Instock","Instock",IF(A1="Reserved","Reserved","NY OOS"))
 
Upvote 0
Thanks very much. Works great. Do you also know if I can updated PIVOT tables all at once within the same workbook?
 
Upvote 0

Forum statistics

Threads
1,202,987
Messages
6,052,930
Members
444,616
Latest member
novit19089

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