Hello,
I have concatenated like in the example below the document number and the index from the first table in order to bring from the second table the information that I need with vlookup. The formula that I'm using is
. In this particular example it works, but in another file it doesn't so I'm thinking it must be something wrong with the format. Also when I'm trying to find the concatenated cell with find it can't find it, but if I search for the document number and the Index individually it works.
Could you kindly advise on what can cause this error? (I've converted the cells that have numbers to numbers, I've selected the whole sheet and made sure that its "General" selected and not number or text)
[TABLE="width: 233"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Doc Number[/TD]
[TD]Index[/TD]
[/TR]
[TR]
[TD]765abc[/TD]
[TD]765[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]897cdc[/TD]
[TD]897[/TD]
[TD]cdc[/TD]
[/TR]
[TR]
[TD]321abc[/TD]
[TD]321[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]876cdc[/TD]
[TD]876[/TD]
[TD]cdc[/TD]
[/TR]
[TR]
[TD]563abc[/TD]
[TD]563[/TD]
[TD]abc[/TD]
[/TR]
</tbody>[/TABLE]
Second table
[TABLE="width: 367"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD]Doc Number[/TD]
[TD]Customer [/TD]
[TD]Index[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]765abc[/TD]
[TD]765[/TD]
[TD]Cola[/TD]
[TD]abc[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]897cdc[/TD]
[TD]897[/TD]
[TD]Capy[/TD]
[TD]cdc[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]321 [/TD]
[TD]321[/TD]
[TD]fanta[/TD]
[TD]76[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]876 [/TD]
[TD]876[/TD]
[TD]cola[/TD]
[TD]45[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]563abc[/TD]
[TD]563[/TD]
[TD]sprite[/TD]
[TD]abc[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a lot,
I have concatenated like in the example below the document number and the index from the first table in order to bring from the second table the information that I need with vlookup. The formula that I'm using is
Code:
=IF(A12=A2,VLOOKUP(A12,$A$2:$C$6,3,0),VLOOKUP(B12,$B$2:$C$6,2,0))
Could you kindly advise on what can cause this error? (I've converted the cells that have numbers to numbers, I've selected the whole sheet and made sure that its "General" selected and not number or text)
[TABLE="width: 233"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]Doc Number[/TD]
[TD]Index[/TD]
[/TR]
[TR]
[TD]765abc[/TD]
[TD]765[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]897cdc[/TD]
[TD]897[/TD]
[TD]cdc[/TD]
[/TR]
[TR]
[TD]321abc[/TD]
[TD]321[/TD]
[TD]abc[/TD]
[/TR]
[TR]
[TD]876cdc[/TD]
[TD]876[/TD]
[TD]cdc[/TD]
[/TR]
[TR]
[TD]563abc[/TD]
[TD]563[/TD]
[TD]abc[/TD]
[/TR]
</tbody>[/TABLE]
Second table
[TABLE="width: 367"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD]Doc Number[/TD]
[TD]Customer [/TD]
[TD]Index[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]765abc[/TD]
[TD]765[/TD]
[TD]Cola[/TD]
[TD]abc[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]897cdc[/TD]
[TD]897[/TD]
[TD]Capy[/TD]
[TD]cdc[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]321 [/TD]
[TD]321[/TD]
[TD]fanta[/TD]
[TD]76[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]876 [/TD]
[TD]876[/TD]
[TD]cola[/TD]
[TD]45[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]563abc[/TD]
[TD]563[/TD]
[TD]sprite[/TD]
[TD]abc[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a lot,