Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 183
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I print addresses in an Excel table on a flyer for mailing? kateinmo New Users to Excel 2 April 12th 08 08:40 PM
Mailing addresses from .doc or .txt to Excel [email protected] Excel Discussion (Misc queries) 3 May 15th 07 07:28 AM
How do I sort mailing addresses in Excel? outfitterim Excel Discussion (Misc queries) 2 August 15th 06 11:07 AM
Why does Excel, drop beginning zeros in zip codes on mailing label Kate Excel Discussion (Misc queries) 5 April 24th 06 01:17 AM
How do I setup a drop down box for using addresses J.Lee Excel Worksheet Functions 4 February 19th 06 04:00 PM


All times are GMT +1. The time now is 03:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"