IF Statement with 6 outcomes!

LaurenHancy

Board Regular
Joined
Aug 5, 2010
Messages
174
Hi Fellow Excel Peps...

I am stuck once again and would really appreciate your help.

I have 6 values in the following cells:

(Clean net) I3
(Clean gross) J3
(Average net) I4
(Average gross) J4
(Below net) I5
(Below gross) J5.

I have 2 dropdown boxes which both have 2-3 options each:

Dropdown 1 in A3 = "Car" or "Van"

Dropdown 2 in A4 = "Repaired", "Repair date known" or "Repair to be scheduled"

I want my formula in F11 to determine which value (J3, J4 or J4) to pick based on the dropdown criteria:

Car
Repaired
= J3

Car
Repair date known
= J3

Car
Repair to be scheduled
= J4

Van
Repaired
= I4

Van
Repair date known
= I4

Van
Repair to be scheduled
= I5

Thanks so much for your help with this, it's really been struggling with this one.

Thank you

Lauren
 

Attachments

  • Excel.PNG
    Excel.PNG
    43.8 KB · Views: 3

Some videos you may like

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,400
Excel Formula:
=IF(A3="Car",IF(OR(A4="Repaired",A4="Repair date known"),J3,IF(A4="Repair to be scheduled",J4,"")),
IF(A3="Van",IF(OR(A4="Repaired",A4="Repair date known"),I4,IF(A4="Repair to be scheduled",I5,"")),""))
 

LaurenHancy

Board Regular
Joined
Aug 5, 2010
Messages
174
Excel Formula:
=IF(A3="Car",IF(OR(A4="Repaired",A4="Repair date known"),J3,IF(A4="Repair to be scheduled",J4,"")),
IF(A3="Van",IF(OR(A4="Repaired",A4="Repair date known"),I4,IF(A4="Repair to be scheduled",I5,"")),""))
Thank you so much, this has worked great :)
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi

A simple solution that would make it easier to check or change the value assignments and add or delete new options would be to write a table with the options.

For ex. I wrote the table values in E3:F5
Each value is just the link to the respective cell, like in E3 you have =J4

This way you get your value with the usual lookup in a table formula:

=INDEX(E3:F5,MATCH(A4,D3:D5,0),MATCH(A3,E2:F2,0))


Book1
ABCDEFGHI
1
2CarVan
3VanRepaired113311
4Repair date knownRepair date known11333322
5Repair to be scheduled224444
6
7
8
9
10
1133
Sheet2
 

Watch MrExcel Video

Forum statistics

Threads
1,127,808
Messages
5,627,010
Members
416,214
Latest member
boston814

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
Top