Two matching criteria, then pull a number from third column?

bbarkley

New Member
Joined
Apr 16, 2018
Messages
3
Basically I have a column of employee's names and then a row of other criteria. On a second sheet, I have the column of employee's names again, plus a column which would contain the same criteria, and a third column with a number.

If the name matches and then the two other criteria match, I want it to pull that number from the third column.

Here's an example:

TAB 1:

[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Name[/TD]
[TD]Thing 1[/TD]
[TD]Thing 2[/TD]
[TD]Thing 3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Smith, Joe[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Robert, Bob[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

TAB 2:

[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Name[/TD]
[TD]All Things[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Smith, Joe[/TD]
[TD]Thing 1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Smith, Joe[/TD]
[TD]Thing 2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Smith, Joe[/TD]
[TD]Thing 3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Robert, Bob[/TD]
[TD]Thing 2[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

So I would like it say... If A3 on first tab matches a name in column A of tab 2 AND if B2 from first tab matches an item from column B of tab 2, then to pull the associated number from column 3 of tab 2.

Any ideas please?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD]
F
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]Name[/TD]
[TD]Thing 1[/TD]
[TD]Thing 2[/TD]
[TD]Thing 3[/TD]
[TD][/TD]
[TD]TAB1[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]Smith, Joe[/TD]
[TD]
5​
[/TD]
[TD]
3​
[/TD]
[TD]
2​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]Robert, Bob[/TD]
[TD]
0​
[/TD]
[TD]
1​
[/TD]
[TD]
0​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]Name[/TD]
[TD]All Things[/TD]
[TD]Amount[/TD]
[TD][/TD]
[TD]TAB2[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]Smith, Joe[/TD]
[TD]Thing 1[/TD]
[TD]
5​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]Smith, Joe[/TD]
[TD]Thing 2[/TD]
[TD]
3​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]Smith, Joe[/TD]
[TD]Thing 3[/TD]
[TD]
2​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
5
[/TD]
[TD]Robert, Bob[/TD]
[TD]Thing 2[/TD]
[TD]
1​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

TAB1

B1=
SUMIFS('TAB2'!$C$2:$C$5,'TAB2'!$A$2:$A$5,'TAB1'!$A2,'TAB2'!$B$2:$B$5,'TAB1'!B$1) copy across and down

 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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