Adding validation in excel according to another column from another sheet

javadeb

New Member
Joined
May 12, 2022
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
I have a excel sheet called data with 3 columns: id, name
I have another sheet called list with 3 columns: id, name
I have made a data validation on column name in data sheet with this

> formula: =list!A$2:$A$37000

its working fine and gives me a drop down list from my names in list and another formula for column id in my data sheet

> formula: IFERROR(VLOOKUP(B${i},list!A1:B10000,2, FALSE),"")

problem is that if some rows in list sheet have same names, if I change value in drop down list in data sheet, id wont change. What should I change to make it work?

[example file][1]


[1]: Deleted
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,223,744
Messages
6,174,253
Members
452,553
Latest member
red83

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