Multiple reference lookup return one value

Scawpio

New Member
Joined
Mar 16, 2022
Messages
3
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

I have a large data set over 12k lines that has multiple duplicate employee references. Eg 5 John Smiths 12345 One column is of interest that shows there eg cell B1 cost centre, however there are numerous cells that are blanks and some with values.

Is there a formula i can use to find John Smith 12345 , and cell b1 returning the value not yhe blank?

I have tried a vlookup but it returns the blank but I want it to only return the value not any blanks.

Thanks?
 

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"
Hi,

Does this help:

Book3.xlsx
ABCDE
1John SmithNameResult
2Jane Doe34567John Smith12345
3John Smith12345Jill Smith23456
4Jack Ryan
5Jill Smith
6John Smith
7Jill Smith23456
Sheet1044
Cell Formulas
RangeFormula
E2:E3E2=LOOKUP(2,1/((A$1:A$7=D2)*(B$1:B$7<>"")),B$1:B$7)
 
Upvote 0
Solution
Thanks for that... I'll see if this works. The cell I have is employee ID, and the cell a want has multiple cells with 1 value the rest is blank. So will try and see of it works if I tweak it slightly
 
Upvote 0
You can show samples with columns and cell references.
 
Upvote 0
Thar worked!!! I swapped the cell reference over to start with employee I'd and find cost centre and that worked

Thank you so much
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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