Match and concatenate function

songo

New Member
Joined
Apr 16, 2015
Messages
15
Hello guys,
I am wondering whether it’s possible to use MATCH & CONCATENATE function together.
Have to tables:

TABLE1:
ItemPrice type
600314095I1
600314095I2
600314095I3
600314149I1
600314149I2
600314149I3
600345655I1
600345655I2
600345655I3
600383015I1
600383015I2
600383015I3

<tbody>
</tbody>

TABLE2:
ItemPrice type ROW of table 1
600314095I2Match+ concatenate?
600314149I2
600345655I2
600383015I2

<tbody>
</tbody>


Is it possible to use function as below:
=MATCH(CONCATENATE(TABLE2!Item;TABLE2!Price type);CONCATENATE(TABLE1!Item; TABLE1!Price type);0)
In TABLE 2 I need to know I which row in TABLE1 is Item number with specific price type next to.
When I try to do it I receive: #VALUE! Error.

Just want you to know, that I can’t modify or filter TABLE 1, this is pure input data and need to stay like it is, I can do any changes in table 2.
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
try this


Excel 2012
ABCDEF
1ItemPrice typeItemPrice typeROW of table 1
2600314095I1600314095I22
3600314095I2600314149I25
4600314095I3600345655I28
5600314149I1600383015I211
6600314149I2
7600314149I3
8600345655I1
9600345655I2
10600345655I3
11600383015I1
12600383015I2
13600383015I3
Sheet1
Cell Formulas
RangeFormula
F2=SUMPRODUCT(($A$2:$A$13=$D2)*($B$2:$B$13=$E2),ROW($B$2:$B$13)-(ROW($A$2)-ROW($A$1)))
 
Upvote 0
Thanks Alany, that's exactly what I needed.
Now i know that i can replace vlookup with index +sumproduct+row :)

By the way, if i change ranges to whole column, formula will be even shorter.
Like this:
=SUMPRODUCT((A:A=$D2)*(B:B=$E2),ROW(B:B)))
 
Last edited:
Upvote 0
you're welcome.

Use the whole column as range will slow down the spreadsheet as excel 2007 and above have 2^20 (over a million) rows to check
 
Upvote 0
that's a good point, i have noticed that by changing parameters it takes up to 2sek to calculate for my Excel 2016, now changed range to $A$1:$A$5000 and it works immediately :)
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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