Excel VLookUP on drop down list

大城市里の小女人 提交于 2019-12-12 04:35:23

问题


I have two sheets in excel, Submission and Validation. On my Validation Sheet I have my two sources of information. Column G holds my community names, the thing in my list. Column H holds my NumberCode, the thing I want to auto populate.

Example Validation:

G       H
Venice  26423
Scarborough 24741

On my Submission sheet I have a data validation drop down list. whose information is:

I am trying to lookup the codes so that when my dropdown list has Venice, the cell next to it should auto-populate 26423. My latest iteration of the Vlookup code is:

=VLOOKUP('Validation Page'!G1:G1067,'Validation Page'!H1:H1067,,FALSE)

I have tried putting it into tables, putting it into name reference, ect but nothing seems to want to populate. I either get #N/A or another error. Any help?


回答1:


try puting this in the cell tahat you need populate with the number code

=VLOOKUP('Submission Page'!G1,'Validation Page'!G1:H1067,2,FALSE)

change 'Submission Page'!G1 for the correct cell where the drop down list is



来源:https://stackoverflow.com/questions/42987984/excel-vlookup-on-drop-down-list

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!