IF(AND with 3 Results

Mike Slattery

Board Regular
Joined
Dec 11, 2004
Messages
101
I would like to produce an IF(AND formula that outputs three results? The three results would be "BUY", "HOLD", and "SELL".

The obvious restraint if an IF(and statement only allows for a "TRUE" and / default "FALSE" result.

Has anyone developed a work around for this situation?

Thanks Michael

Here is the current formula

=IF(AND(GT3=GT4,GD3>GD4,GB3>55),"BUY","SELL")
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Mike,

Surely, you will be needing to nest IF's if you require 3 possible results???

What condition should produce "HOLD" ???
 
Upvote 0
Is your original formula a valid formula that tests for BUY & SELL???

If so then.....

=IF(AND(GT3=GT4,GD3 > GD4,GB3 > 55),"BUY",IF(GT3 = GT4,"HOLD","SELL"))

If not then please post the correct conditions for Buy and Sell
 
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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