vlookup a value from a cell containing output of a formula

kirandhawan

New Member
Joined
Jan 6, 2016
Messages
6
In one worksheet say "sheet-1", I have column D as a derived value after concatenating values from A,B and C column. After concatenating in column D an alphanumeric value is displayed in column D like "PRIV-098876-BOOK-909898"

There is a separate sheet in the same worksheet say "sheet-2" where this derived value i.e.PRIV-098876-BOOK-909898 is entered manually in Column A and in that sheet additional corresponding information like like email address and phone number is mentioned. The order in which this data is entered in this sheet is random and not in sequence

Now I want to Vlookup column D value in "sheet-1" to populate its corresponding email address and phone number in column E and column F of "sheet-1" from "sheet-2"

vlookup is not working here. Any other automatic way to do this as I think Vlookup cannot lookup a value from a cell which has formula!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
There shouldn't be a problem with VLOOKUP finding a value from a cell with a formula. Since your data is not in a sequence make sure the 4th argument in the VLOOKUP is entered as 0 or FALSE.
If this doesn't work check to see if the values in Sheet 1 and Sheet 2 are equal. So in the example below
Code:
=Sheet1!D1=Sheet2!A1
Should return TRUE.

Excel Workbook
ABCDEF
1PRIV-12365BOOK126545PRIV-12365-BOOK-126545EMAIL1555-555-1234
2PRIV-098876BOOK909898PRIV-098876-BOOK-909898EMAIL3555-555-1236
3PRIV-022222BOOK123458PRIV-022222-BOOK-123458EMAIL2555-555-1235
Sheet1


Excel Workbook
ABC
1PRIV-12365-BOOK-126545EMAIL1555-555-1234
2PRIV-022222-BOOK-123458EMAIL2555-555-1235
3PRIV-098876-BOOK-909898EMAIL3555-555-1236
Sheet2
 
Upvote 0
Thanks for the reply! I checked the first condition and it returns value as "TRUE". In my second sheet the data is arranged in following way.

ABC
555-555-1234EMAIL1PRIV-12365-BOOK-126545
555-555-1235EMAIL2PRIV-022222-BOOK-123458
555-555-1236EMAIL3PRIV-098876-BOOK-909898

<tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]

[TD="bgcolor: #CACACA, align: center"]2[/TD]

[TD="bgcolor: #CACACA, align: center"]3[/TD]

</tbody>
Is it the case that vlookup formula works only when selected table array starts with the value to be searched?
 
Upvote 0
Yes, VLOOKUP can't find data to the left. You will need to use INDEX & MATCH functions.
This link and the example below should help to explain.
https://www.youtube.com/watch?v=NYN5s1fHKog

Excel Workbook
ABCDEF
1PRIV-12365BOOK126545PRIV-12365-BOOK-126545EMAIL1555-555-1234
2PRIV-098876BOOK909898PRIV-098876-BOOK-909898EMAIL3555-555-1236
3PRIV-022222BOOK123458PRIV-022222-BOOK-123458EMAIL2555-555-1235
Sheet1



Excel Workbook
ABC
1555-555-1234EMAIL1PRIV-12365-BOOK-126545
2555-555-1235EMAIL2PRIV-022222-BOOK-123458
3555-555-1236EMAIL3PRIV-098876-BOOK-909898
Sheet2
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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