I'm trying to cross data to fill a sheet but I'm having some doubts.
I have a number a value in a sheet, and I want to complete it with data from another sheet.
For example:
I want to complete Column C in sheet 1, with the age that appears in sheet 2 (no problem if it copy's the whole cell), but it's not in a specific column. I tried to use vlookup & match, and it's returning an error. a Vlookup the EAN column, and use match the specific string "Age:".
Can you help me? Am I using the right formula
Edit:
Found this source where it explains how to do It. In your case it would be:
{=INDEX(Sheet 2!E2:CT2,MATCH(FALSE,ISBLANK(Sheet 2!E2:CT2),0))}
This is if your data starts on Row 2 and as you said the age columns are between E:CT
Note how to insert the array formula as is explained on the post of the source.
Step 1, find the row you want to work on: (Match on values in Column A)
=MATCH(Sheet1!$A2, Sheet2!$A:$A, 0)
Step 2, grab that entire row via OFFSET
or INDEX
:
=OFFSET(Sheet2!$1:$1, MATCH(Sheet1!$A2, Sheet2!$A:$A, 0) - 1, 0)
Step 3, find the Age cell in that Row using HLOOKUP
and Wildcards ( "*"
):
=HLOOKUP("Age:*", OFFSET(Sheet2!$1:$1, MATCH(Sheet1!$A2, Sheet2!$A:$A, 0) - 1, 0), 1, FALSE)
(Optional) Step 4, convert to number:
=0 + TRIM(SUBSTITUTE(HLOOKUP("Age:*", OFFSET(Sheet2!$1:$1, MATCH(Sheet1!$A2, Sheet2!$A:$A, 0) - 1, 0), 1, FALSE), "Age:", ""))
Then just drag that down from C2 to however many rows you need. This will find the cell that starts with "Age:" in any column, A:XFD
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.