Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Setting up a formula HELP

I have a cell that can have more than 7 names in it. I would like another
cell (in the same row) to read that cell and return a specific email address
based on the name. I had it working with a rather long winded IF statement,
but we have more than 7 possible names. Is there another approach I should
take? These email addresses will be used by VBA to send out email reminders
to the people identified.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Setting up a formula HELP

Setup a table with your names and email addresses in it. For example:

Starting in column Y, enter all of your names.
In Column Z, enter the appropriate email address next to each name.

Sort both columns (alphabetically ascending order) by column Y.

Then use a VLOOKUP function.

If your name to return an email address is in A1, enter this formula in B1.

=VLOOKUP(A1,Y:Z,2)

HTH,
Paul





"SuperRy" wrote in message
...
I have a cell that can have more than 7 names in it. I would like another
cell (in the same row) to read that cell and return a specific email
address
based on the name. I had it working with a rather long winded IF
statement,
but we have more than 7 possible names. Is there another approach I should
take? These email addresses will be used by VBA to send out email
reminders
to the people identified.



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Need help setting up a >< IF formula in Excel, Gary Brown Excel Worksheet Functions 0 May 18th 05 05:41 PM


All times are GMT +1. The time now is 10:29 PM.

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"