How to return a specific serial number when a user has multiple assigned in their name.

darkdelusions

New Member
Joined
Nov 11, 2019
Messages
4
I currently have 2 sheets of serial numbers sheet 1 has all of the new serial numbers on it and sheet 2 has both old and new serial numbers on. I am currently trying to bring all of the old serial numbers into the sheet 1 but due to the nature of index match and vlookup I am only able to pull in "new serial number".



Sheet 1:
kH05VOj

kH05VOj.png


Sheet 2:
eGnz9MB.png


Can anyone provide me some guidance on how to get the serial number from sheet 2 if its not in the serial column on sheet 1.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
In Sheet2, would the old serial # always follow the new one, in the next row, if it exists?
So in your example, the new serial # is ABCDE and the old one is FGHIJ? Is this correct?
 
Upvote 0
If so, try this.

Formula in D2:
=VLOOKUP(B2,Sheet2!$B:$D,3,0)

Formula in E2:
=IF(COUNTIF(Sheet2!B:B,Sheet1!B2)=2,INDEX(Sheet2!D:D,MATCH(B2,Sheet2!B:B,0)+1),"")

Copy down.



Excel 2010
ABCDE
1NameEmailPhone NumberSerialOld Serial
2Bob SmithBsmith@Bob.Com555-555-5555ABCDEFGHIJ
3Steve Davesdave@bob.com555-555-5555VXYZ 
Sheet1
Cell Formulas
RangeFormula
B2=VLOOKUP($A2,Sheet2!$A:$C,2,0)
B3=VLOOKUP($A3,Sheet2!$A:$C,2,0)
C2=VLOOKUP($A2,Sheet2!$A:$C,3,0)
C3=VLOOKUP($A3,Sheet2!$A:$C,3,0)
D2=VLOOKUP(B2,Sheet2!$B:$D,3,0)
D3=VLOOKUP(B3,Sheet2!$B:$D,3,0)
E2=IF(COUNTIF(Sheet2!B:B,Sheet1!B2)=2,INDEX(Sheet2!D:D,MATCH(B2,Sheet2!B:B,0)+1),"")
E3=IF(COUNTIF(Sheet2!B:B,Sheet1!B3)=2,INDEX(Sheet2!D:D,MATCH(B3,Sheet2!B:B,0)+1),"")
 
Last edited:
Upvote 0
Then what indicates if it is a new serial # or an old serial #?
 
Upvote 0
Then what indicates if it is a new serial # or an old serial #?


The new serial is provided to me from another tool and statically stored in Column C on Sheet 1 and then on sheet 2 i have about 12000 users and serial numbers and I want to get the old serial. In theory should be something like this but doesn't seem to work and I have tried both table names and Column and row numbers

Code:
=INDEX(Table1,MATCH(1,(Table1[Email]=[Email])*([Serial]<>Table1[Serial]),0),4)
 
Upvote 0
This can me marked as resolved, Once I went back to it and tinkered with the formula I posted above it started working.

Thank your for trying to help Scott
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,488
Members
448,967
Latest member
visheshkotha

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