• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Combined Excel formulas

Shabbo

Member
Dear Sir,

I have an Excel sheet where I want to remove the helper column and just keep index match with combining Helper column in the same column D.
 

Attachments

  • Merging of formula.xlsx
    10.7 KB · Views: 3
There are two sheets ...
with Sheet1 cell D2 modify C2 to A2&B2 and copy down
with Sheet2 cell D2 modify Sheet2!C2 to A2&B2 and copy down
 
One thing to be aware of when concatenating values to use in VLOOKUP or MATCH is a possible incorrect match. The following 2 rows are different, yet the helper column is the same:

1750597480737.png

To help reduce the possibilities of such incorrect matches you can put an unusual character between the 2 values when you concatenate them, so instead of:
A2&B2
use say:
A2 & "¬" & B2

so you get this instead:
1750597717061.png
where you can see the helper column is different.
Of course, then you need to apply this to both the value you're looking up and the range of values you're looking in.

So
=INDEX(Sheet1!B:B,MATCH(A2 & "¬" & B2,Sheet1!A:A &"¬" & Sheet1!B:B,0))
In the above I'm returning the AMT column.
ps.
I've done something bad with the formula above; I've referred to entire columns which is resource-hungry, should really be more:
=INDEX(Sheet1!B1:B100,MATCH(A2 & "¬" & B2,Sheet1!A1:A100 &"¬" & Sheet1!B1:B100,0))
 
Back
Top