Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Vlookup v. drop down box for mailing addresses
I am trying to incorporate a list of mailing addresses into an invoicevia
either a drop down box or Vlookup function (prefer the drop down box). What I'd like to do is have a drop down list (I have approximately 100 vendors, some are the same company name with multiple addresses) from which I can select the vendor info. I created and named a list on a separate worksheet within the document, but don't know how to populate the address, city, state and zip fields into the next row. The data list (on sheet2) looks like this (and named this range "TO:"): .........a..............b.......................c. ....................d 1 ....ABC......123 Elm St.........Here, GA...........12345 2 ....DEF......456 Pine Dr........There, TX..........67890 I want the data to appear on the invoice (on sheet1) as: .........a..............b.......................c. ....................d 1...TO..............[DROP DOWN BOX TO CHOOSE VENDOR NAME] 2.....................[POPULATE CORRESPONDING ADDR (col b from data list from b1)] 3.....................[CITY, STATE, ZIP (cols c and d of data list from b1) Is this possible? --Sharon |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Vlookup v. drop down box for mailing addresses
You use VLOOKUP in conjunction with the drop-down - it's not really a
case of one or the other. Put this formula in B2 of the Invoice sheet: =IF(B1="","",VLOOKUP(B1,Sheet2!A:B,2,0)) and put this in B3: =IF(B1="","",VLOOKUP(B1,Sheet2!A:C,3,0)&", "&VLOOKUP(B1,Sheet2!A:D, 4,0)) Hope this helps. Pete On Sep 8, 9:52*pm, sharon wrote: I am trying to incorporate a list of mailing addresses into an invoicevia either a drop down box or Vlookup function (prefer the drop down box). *What I'd like to do is have a drop down list (I have approximately 100 vendors, some are the same company name with multiple addresses) from which I can select the vendor info. I created and named a list on a separate worksheet within the document, but don't know how to populate the address, city, state and zip fields into the next row. *The data list (on sheet2) looks like this (and named this range "TO:"): ........a..............b.......................c.. ...................d 1 ....ABC......123 Elm St.........Here, GA...........12345 2 ....DEF......456 Pine Dr........There, TX..........67890 I want the data to appear on the invoice (on sheet1) as: ........a..............b.......................c.. ...................d 1...TO..............[DROP DOWN BOX TO CHOOSE VENDOR NAME] 2.....................[POPULATE CORRESPONDING ADDR (col b from data list from b1)] 3.....................[CITY, STATE, ZIP (cols c and d of data list from b1) Is this possible? --Sharon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I print addresses in an Excel table on a flyer for mailing? | New Users to Excel | |||
Mailing addresses from .doc or .txt to Excel | Excel Discussion (Misc queries) | |||
How do I sort mailing addresses in Excel? | Excel Discussion (Misc queries) | |||
Why does Excel, drop beginning zeros in zip codes on mailing label | Excel Discussion (Misc queries) | |||
How do I setup a drop down box for using addresses | Excel Worksheet Functions |