# IF Statement with 6 outcomes!

#### LaurenHancy

##### Board Regular
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
43.8 KB · Views: 3

### Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

#### AlphaFrog

##### MrExcel MVP
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
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
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

Replies
7
Views
127
Replies
0
Views
49
Replies
3
Views
72
Replies
4
Views
365
Replies
3
Views
116

1,127,720
Messages
5,626,477
Members
416,187
Latest member
L_D18

### 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.

### Which adblocker are you using?

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

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