How To - Populate a field from the of a drop down box selection?

NRGZ

New Member
Joined
Jul 23, 2021
Messages
47
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
Hi,

I have an excel workbook that holds the value choice for the drop down box and what i would like it to do populate 2 other fields in the table based on the selection made.
Workbook - 3 columns - Account number, Company Name, Postcode
(this workbook is static information)
Table - Account Code (drop down box) - Company Name - Postcode - (other fields do exist but not relevant)

I know this must be easy but having a mental block plus i'm new to the whole VBA thing.
Thanks in advance,
o/
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You don't need VBA for this. Just some VLOOKUP formulas

Book7
ABCDEFGHI
1Account NumberCompany NamePostcode
21A12345
32B12346
43C12347
54D12348
65E12349
7
8
9
10
11
12Account NumberCompany NamePostcode
132B12346
143C12347
154D12348
161A12345
175E12349
Sheet1
Cell Formulas
RangeFormula
H13:H17H13=IF($G13<>"",VLOOKUP($G13,$A$2:$C$6,2,0),"")
I13:I17I13=IF($G13<>"",VLOOKUP($G13,$A$2:$C$6,3,0),"")
Cells with Data Validation
CellAllowCriteria
G13:G17List=$A$2:$A$6
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,978
Members
448,934
Latest member
audette89

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