I have a solution to this one but I want to know if there is a better solution:
I have a spreadsheet with this format:
Codes Amount
1004 10
1005 20
1005 30
1006 10
1006 15
1008 15
1009 20
As you can see the are duplicates. In onther sheet, I have a series of codes like 1004,1005,1006 and so on in one colunm. I want to pull up both amounts is there duplicates. Here is a sample of what I want to look like:
1004 10
1005 20 30
1006 10 15
My solution is like this:
=OFFSET(INDIRECT(ADDRESS(MATCH(A6,Sheet1!$A$1:$A$9,0),2,,1,"Sheet1"),1,0)
Any ideas will be appreciated. Thanks a lot....
Moses.
I have a spreadsheet with this format:
Codes Amount
1004 10
1005 20
1005 30
1006 10
1006 15
1008 15
1009 20
As you can see the are duplicates. In onther sheet, I have a series of codes like 1004,1005,1006 and so on in one colunm. I want to pull up both amounts is there duplicates. Here is a sample of what I want to look like:
1004 10
1005 20 30
1006 10 15
My solution is like this:
=OFFSET(INDIRECT(ADDRESS(MATCH(A6,Sheet1!$A$1:$A$9,0),2,,1,"Sheet1"),1,0)
Any ideas will be appreciated. Thanks a lot....
Moses.