# Trying to Thread Multiple IF-AND Formulas together

#### jprimalion

##### New Member
Hi there, I've already tried researching and experimenting on different ways to fix the problem that I have with my workbook. I am trying to nest together multiple IF AND formulas together.
Scenario:​

 A B C 1 Team Name Dex Code Sense 1 2 Green GreenYes Yes 3 Green GreenNo No 4 Blue BlueYes Yes 5 Blue BlueNo No 6 Orange OrangeYes Yes

<tbody>
</tbody>

So, in this example, let's say:
IF "Team Name"/A2 = "Green" and "Sense 1"/C2 = "Yes", Then "Dex Code" / B2 = "GreenYes", ELSE "Dex Code" / B2 = "GreenNo".
IF "Team Name"/A2 = "Blue" and "Sense 1"/C2 = "Yes", Then "Dex Code" / B2 = "BlueYes", ELSE "Dex Code" / B2 = "BlueNo".
etc.

So basically what I am trying to achieve is to have one formula that the selections will validate all of them in just one cell.

Can anyone help?

Maybe:

B2=A2&C2

and copy down

#### jprimalion

##### New Member
Thanks JoeMo but let's say that everything in Row B will need to go through a validation process.
Like:
IF “Team Name” = “Green”
AND “Sense 1” = “Yes”
THEN “Dex Code” = “GreenYes”
OTHERWISE “Dex Code”=”GreenNo”
BUT IF “Team Name” = “Blue”
AND “Sense 1” = “Yes”
THEN “Dex Code” = “BlueYes”
OTHERWISE “Dex Code”=”BlueNo”
BUT IF “Team Name” = “Orange”
AND “Sense 1” = “Yes”
THEN “Dex Code” = “OrangeYes”
OTHERWISE “Dex Code”=”OrangeNo”

So the thread keeps going on and on until you can get an exact match and I can add up as many conditions if needed.

Did I make any sense on what I'm trying to accomplish?????

#### JoeMo

##### MrExcel MVP
Thanks JoeMo but let's say that everything in Row B will need to go through a validation process.
Like:
IF “Team Name” = “Green”
AND “Sense 1” = “Yes”
THEN “Dex Code” = “GreenYes”
OTHERWISE “Dex Code”=”GreenNo”
BUT IF “Team Name” = “Blue”
AND “Sense 1” = “Yes”
THEN “Dex Code” = “BlueYes”
OTHERWISE “Dex Code”=”BlueNo”
BUT IF “Team Name” = “Orange”
AND “Sense 1” = “Yes”
THEN “Dex Code” = “OrangeYes”
OTHERWISE “Dex Code”=”OrangeNo”

So the thread keeps going on and on until you can get an exact match and I can add up as many conditions if needed.

Did I make any sense on what I'm trying to accomplish?????
You can't apply all those mutually exclusive conditions. If Team Name is not Green or Sense 1 is not Yes, your first condition says return GreenNo. So if, for example, Team Name is Blue then your first condition returns GreenNo which is not what you want.

#### jprimalion

##### New Member
I don't understand how Joe's suggestion would not work for this

Sheet2

 * A B C 1 Team Name Dex Code Sense 1 2 Green GreenYes Yes 3 Green GreenNo No 4 Blue BlueYes Yes 5 Blue BlueNo No 6 Orange OrangeYes Yes

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:83px;"><col style="width:83px;"><col style="width:83px;"></colgroup><tbody>
</tbody>

 Cell Formula B2 =A2&C2 B3 =A3&C3 B4 =A4&C4 B5 =A5&C5 B6 =A6&C6

<tbody>
</tbody>

<tbody>
</tbody>

Excel tables to the web >> Excel Jeanie HTML 4
One way to find out. Maybe I need to playaround with my worksheet a little more. I thought that there was an easier way to make it more complicated LMAO.thanks for the advise guys.

1,082,283
Messages
5,364,268
Members
400,787
Latest member
bs04c

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...