Trying to Thread Multiple IF-AND Formulas together

jprimalion

New Member
Joined
Nov 10, 2014
Messages
3
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:​

ABC
1Team NameDex CodeSense 1
2GreenGreenYesYes
3Green
GreenNoNo
4BlueBlueYesYes
5BlueBlueNoNo
6OrangeOrangeYesYes

<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?

Thanks in advance!
 

jprimalion

New Member
Joined
Nov 10, 2014
Messages
3
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????? :biggrin:
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,666
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????? :biggrin:
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
Joined
Nov 10, 2014
Messages
3
I don't understand how Joe's suggestion would not work for this



Sheet2

*ABC
1Team NameDex CodeSense 1
2GreenGreenYesYes
3GreenGreenNoNo
4BlueBlueYesYes
5BlueBlueNoNo
6OrangeOrangeYesYes

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

Spreadsheet Formulas
CellFormula
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.
 

Forum statistics

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

Some videos you may like

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...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top