If statement with multiple scenarios

benchris

New Member
Joined
Feb 10, 2016
Messages
24
Office Version
  1. 2019
Platform
  1. Windows
I have a scenario that I cannot figure out:
In the cells below I have 4 different scenarios that might be. The results will either be Part 9, 10, 11, 12.

How would you write a formula that looks at What the combination of values in Group 1 and 2 are to return the correct results which would be Part 9, 10, 11, 12.

The values entered would be below and the certain order of the Parts would return the correct part for that combination of parts.

For example if Part 1 was in Cell A9 an Part 3 was in B9, how would I return Part 9 as the correct result in C9.
Book1
ABC
1Group 1Group 2Combined Part
2Part 1Part 3Part 9
3Part 2Part 3Part 10
4Part 1Part 4Part 11
5Part 2Part 4Part 12
6
7
8
9Part 1Part 4Correct results would return Part 9 for this combination
Sheet1
Cells with Data Validation
CellAllowCriteria
A9List=$A$2:$A$3
B9List=$B$3:$B$4

 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
How about
Fluff.xlsm
ABC
1Group 1Group 2
2Part 1Part 3Part 9
3Part 2Part 3Part 10
4Part 1Part 4Part 11
5Part 2Part 4Part 12
6
7
8Cell A9Cell B9Cell C9
9Part 1Part 3Part 9
10Part 2Part 4Part 12
11
Main
Cell Formulas
RangeFormula
C9:C10C9=INDEX($C$2:$C$5,MATCH(1,($A$2:$A$5=A9)*($B$2:$B$5=B9),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,222,116
Messages
6,164,046
Members
451,869
Latest member
Dbldoc

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