Formula Question

levanoj

Active Member
Joined
Oct 25, 2007
Messages
311
I have 3 columns (A:C) where each cell will have either a "Yes" or "No" value in it. What I'm looking for is a formula I can enter in column D that will compare each cell of the 3 columns and within the same row and if all three values are "No" then the result will say "Spare" but if any cell has a "Yes" value then the result would say "In Use". I tried using the following formula but the result always came out as "In Use":

=IF(A2=B2=C2,"Spare","In Use")

Can anyone assist or tell me what I'm doing wrong?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
=IF(AND(A2="No",B2="No",C2="No"),"Spare","In Use")
 
Upvote 0

Forum statistics

Threads
1,222,246
Messages
6,164,800
Members
451,917
Latest member
WEB78

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