Excel formula: can MATCH recognise 'n'&"01", or 'n'&"02 "
Posted
by
Mike
on Super User
See other posts from Super User
or by Mike
Published on 2011-01-13T13:57:18Z
Indexed on
2011/01/13
14:55 UTC
Read the original article
Hit count: 449
I have an Excel sheet (source) that has simple ID numbers in column A (01 to 40000). In another sheet (child) I have these same ID numbers in column A but with either an additional 01 or 02 added on; e.g. 0101 or 0102, 250001 or 250002, etc. Therefore this list of ID numbers is nearly twice as long. In column B there are figures.
I'm trying to extract the data from column B in the child sheet, and based on whether it has a "01" or a "02" place the figure into either column B or C of the source sheet.
My idea is to use INDEX/MATCH, but I'm not sure how the match would be written to take into account the NOT EXACT MATCH of the lookup value. MATCH(A1&"01",child!A1:A100000,).
Any tips and links greatly appreciated.
Mike.
© Super User or respective owner