Vlookup and return if cell contains

cssfonseca

New Member
Joined
Aug 14, 2018
Messages
19
Hi,

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:

Sheet 1
ABC
EANNameAge
1
2
3

<tbody>
</tbody>

sheet 2
EANNameSpec 1Spec 2Spec3
1Age:1
2Age:2
3Age:5

<tbody>
</tbody>

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 u help me? Am i using the right formula?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Does this work?

=0+SUBSTITUTE(LOOKUP("zzz",INDEX(Sheet2!$C$2:$E$4,MATCH(A2,Sheet2!$A$2:$A$4,0),0)),"Age:","")
 
Upvote 0
No it isnt. Needs to be the "zzz". Check the cell references are referencing the correct cells.
 
Upvote 0

Forum statistics

Threads
1,215,328
Messages
6,124,299
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top