VLOOKUP or other function to allow autofill of cell based on 2 criteria from 2 different table

atisyam

New Member
Joined
Sep 19, 2018
Messages
37
Hello there. Apologies for the somewhat confusing title. I have attached an excel sheet to depict the example below. Here is what I want to achieve:

When user enter a new row for equipment plate no and location tag, the bolded number will be auto appear on the old id number column. These bolded numbers matched with their respective new id number.


User enter A5427H and back cover = excel auto fill 2013


User enter A5427H and battery box = excel auto fill 2003


User enter A0237E and back cover = excel auto fill 2023


These bolded numbers will depend on both equipment plate and location tag. Hence, I have used COUNTA function to ensure that old id number and new id number cannot be inserted prior to choosing the equipment plate no and location tag.


These bolded numbers can be changed. This is for troubleshooting purposes.

Hope that someone could help me with this. Thanksss.


 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Just realized I can't attach the excel sheet and I've exceeded 10 mins to edit my posting. So here is the table:



ABCDEF
DateEquipment plate no.old id numbernew id numberlocation tagreason
3/7/18A5472H-2002Back coveritem arrival
3/7/18A5472H-2003battery boxitem arrival
3/7/18A5472H-2004front coveritem arrival
7/7/18A5472H20022013Back coverprotective screen
7/7/18A5472H20042015front coverprotective screen
13/7/18A0237E-2022Side screen Item arrival
13/7/18A0237E-2023back coverItem arrival

<tbody>
</tbody>

Anyway, the COUNTA function is on on column c and d. Hope to get some help.
 
Upvote 0
The question has been solved credits to Glen Kennedy from excelforum.

In C2 copy down: =IFERROR(LOOKUP(2,1/(($B$1:B1=B2)*($E$1:E1=E2)),$D$1:D1),"")


 
Upvote 0
Please read the forum rules on cross-posting and follow them in future. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,256
Messages
6,123,903
Members
449,132
Latest member
Rosie14

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