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:

1ABCD
2NameThing 1Thing 2Thing 3
3Smith, Joe
4Robert, Bob

<tbody>
</tbody>

TAB 2:

1ABC
2NameAll ThingsAmount
3Smith, JoeThing 15
4Smith, JoeThing 23
5Smith, JoeThing 32
6Robert, BobThing 21

<tbody>
</tbody>

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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
A
B
C
D
E
F
1
NameThing 1Thing 2Thing 3TAB1
2
Smith, Joe
5​
3​
2​
3
Robert, Bob
0​
1​
0​

<tbody>
</tbody>


A
B
C
D
E
1
NameAll ThingsAmountTAB2
2
Smith, JoeThing 1
5​
3
Smith, JoeThing 2
3​
4
Smith, JoeThing 3
2​
5
Robert, BobThing 2
1​

<tbody>
</tbody>

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,214,905
Messages
6,122,175
Members
449,071
Latest member
cdnMech

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