Match two columns and return a third one

solexcel81

New Member
Joined
Jul 18, 2011
Messages
6
Hi,

I am looking for a way to match a couple of columns, as vlookup is not useful in this case.

for example: I have 3 columns with names of sales people, months and their units sold, something like this: (note: they can sell more than once a month)

19770899.png



, and I want to regroup their sales in a data table that would look something like this:

66046967.png



I am battling with index and match but I haven't been able to figure out the right combination. Any ideas of how you would do it?

Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about a pivot table? I don't know if maybe you have other criteria that make it impossible for you to use that method..
 
Upvote 0
Welcome to the board...

So long as the value to return is numeric (column J - Units Sold), then this seems appropriate..

In M6
=SUMPRODUCT(--($H$6:$H$17=$L6),--($I$6:$I$17=M$5),$J$6:$J$17)

Then fill/copy down and right.

Hope that helps.
 
Upvote 0
You could create a "unique ID" in a column to the left, then in your table, make a sumif. For example, M6 could read =sumif(columnwhereyouhavetheuniqueid's,"JakeJan",ColumnJ)
 
Upvote 0
Hi,

I am looking for a way to match a couple of columns, as vlookup is not useful in this case.

for example: I have 3 columns with names of sales people, months and their units sold, something like this: (note: they can sell more than once a month)

19770899.png



, and I want to regroup their sales in a data table that would look something like this:

66046967.png



I am battling with index and match but I haven't been able to figure out the right combination. Any ideas of how you would do it?

Thanks!
What version of Excel are you using?
 
Upvote 0
Wow, thanks for these fast replies, I will try both and see how it turns out ...

I am using 2010, or at least trying
 
Upvote 0
In 2007 or higher you can use SUMIFS instead of the SUMPRODUCT I posted...

=SUMIFS($J$6:$J$17,$H$6:$H$17,$L6,$I$6:$I$17,M$5)
 
Upvote 0
SUMIFS and SUMPRODUCT work pretty good and its simple enough, I was making my life more complicated with index and match ...

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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