If statement bringing back 2 true values

Imran Azam

Board Regular
Joined
Mar 15, 2011
Messages
103
Hi ,

I have the look up table below

A BCDESTATUS
YESYESGOOD
NONOFASTBAD

<tbody>
</tbody>

<tbody>
</tbody>
i have a table of data below and i need to pick the correct status based on the rules in the look up table.

nameABCDESTATUS
craigyesyesnonofastGOOD

<tbody>
</tbody>

now i used the following statement to pick the status ( good) up IF(AND($A$2=B8,$B$2=C8),$F$2,IF(AND($C$3=D8,$D$3=E8,$E$3=F8),$F$3,""))

i want to know how i can pull back tWo true value because, the above data matches both the good and bad status rule , is this possible? IT SHOULD looks like the below

nameABCDESTATUSstatus2
craigyesyesnonofastGOODBAD

<tbody>
</tbody>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Re: help needed if statement bringing back 2 true values

All you have to do is split up your formula and place the first IF(AND statement in columnSTATUS and the second IF(AND statement in columnSTATUS2.
 
Upvote 0
Re: help needed if statement bringing back 2 true values

thank you , but how will that work will they both bring back different status?
 
Upvote 0
Re: help needed if statement bringing back 2 true values

thank you , but how will that work will they both bring back different status?


Since it will be blank if there's no match, these will be your possibilities:

STATUSSTATUS2
GOODBAD
GOOD""
""BAD
""""

<tbody>
</tbody>


How you use this data will depend on how you'll utilize the results.
 
Last edited:
Upvote 0
Re: help needed if statement bringing back 2 true values

AH ok thanks but i need the formula to be able to fill the first status and if its matches a second status only then use the status 2 , dont know if this can be done, thank you for your help
 
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,544
Members
449,169
Latest member
mm424

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