@planbms
You asked how does it work. If you meant the formula then…
The complete formula…
But first, the core…
What the core formula in cell "C4" of the parent wb is saying is find Me an exact match of Customer id "$A4" and Product id "C$3" from columns "A" and "B" in the source wb.
If there is a match, get the position, INDEX (row, [column]) of the match and return the value of that row from the target array ("C").
Note, references to columns aren't necessary here as we only define one column "C" in the target array and column is therefore assumed to be "1".
To finish off...
Outside of the core is "IF(ISNA(…..)))". This is useful because MATCH will return "N/A" if a match isn't found and IF(ISNA simply says return a result if there is a match or leave Me blank.
Note the manner in which the 'what to match' cells are referenced i.e. absolute column for customer id ("$A4") and absolute row for product id ("C$3").
And not forgetting the "=" and curly brackets... there you have it.
So the formula when broken down is very simple but looks mega because it is padded out with lengthy wsheet references then doubled in length again by the IF N/A error function.
If you would like further assistance to either create this formula or adapt it for use in other accounts then don't hesitate, PM me. Just being cautious, never divulge sensitive data on the internet, even in a PM.
Thank you for the rep and comment, they are much appreciated. Please remember to use Thread Tools and mark the thread Solved if you have the required answer.
hth
gmk
Bookmarks