#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Vlookup issue

Hello—I am trying to write a simple vlookup. My formula is working as
designed but is only offering me a partial solution. What I would
like to do is to have the formula look a one list of mail codes, then
look at the other list of mail codes that correspond, and if there is
a description for that mail code, pull that description over. The
issue, however, is that more than one description can be tied to a
mail code. The way that I currently have my formula written, it will
only pull in the first description associated to that mail code, but
lops off all of the others, thus only returning partial results. Here
is my current formula:

=VLOOKUP(F:F, [Book1]Sheet1!$A:$B, 2, FALSE)

Where “A” = mailcode and B=description.

Is there any way around this?
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Vlookup issue

On Aug 8, 11:27*am, Dave Peterson wrote:
=vlookup() returns the information from the first match it finds. *It doesn't
bring back multiple values.

Maybe you can change the layout of that table.
Put the mailcode in column A and then the first description in column B, the
second in column C, the third in column D, ...

And use a few =vlookup()'s to bring back each of those descriptions.





wrote:

Hello—I am trying to write a simple vlookup. *My formula is working as
designed but is only offering me a partial solution. *What I would
like to do is to have the formula look a one list of mail codes, then
look at the other list of mail codes that correspond, and if there is
a description for that mail code, pull that description over. *The
issue, however, is that more than one description can be tied to a
mail code. *The way that I currently have my formula written, it will
only pull in the first description associated to that mail code, but
lops off all of the others, thus only returning partial results. *Here
is my current formula:


=VLOOKUP(F:F, [Book1]Sheet1!$A:$B, 2, FALSE)


Where “A” = mailcode and B=description.


Is there any way around this?


--

Dave Peterson- Hide quoted text -

- Show quoted text -


Thank you for the response. That is what I feared. I am unable to
manipulate the layout of the table, as it is a canned report that is
spit out of an online system, and we would like our users to as little
manual manipulation as possible. Do you know of any other formulas
that could help with this?
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Vlookup issue

Another alternative is to use a User Defined Function.

How do you want to display those results? In one cell, but separated by
commas? In separate cells???

If you want a single cell:

http://groups.google.co.uk/group/mic...28f1ba868980a8

or

http://snipurl.com/24yfb (first post in the thread)


If you wanted separate cells (horizontal or veritical), take a look he

http://groups.google.co.uk/group/mic...467b485b0a4f4d

or

http://snipurl.com/24yf3

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Dave Peterson wrote:

Check out Chip Pearson's site:
http://www.cpearson.com/Excel/TablesAndLookups.aspx

Look for "Arbitrary Lookups"

wrote:

<<snipped
Thank you for the response. That is what I feared. I am unable to
manipulate the layout of the table, as it is a canned report that is
spit out of an online system, and we would like our users to as little
manual manipulation as possible. Do you know of any other formulas
that could help with this?


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Vlookup issue

Where does the data reside? Is it possible to set up an ODBC
connection to the source of the data?
For example, you could think of setting up a very simple query in SQL
(you can write it in Microsoft Query, which returns the results
directly in Excel) to this end. Have you spoken to the IT department
of your organization?

Dave Peterson- Hide quoted text -


- Show quoted text -


Thank you for the response. *That is what I feared. *I am unable to
manipulate the layout of the table, as it is a canned report that is
spit out of an online system, and we would like our users to as little
manual manipulation as possible. *Do you know of any other formulas
that could help with this?- Hide quoted text -

- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 342
Default Vlookup issue

This is a long fomula but I think it will accomplish what you want:

=IF(ISNA(VLOOKUP(A2,G:H,2,FALSE)),,VLOOKUP(A2,G:H, 2,FALSE)) &
IF(ISNA(VLOOKUP(A2,K:L,2,FALSE)),,VLOOKUP(A2,K:L,2 ,FALSE))

" wrote:

Hello€”I am trying to write a simple vlookup. My formula is working as
designed but is only offering me a partial solution. What I would
like to do is to have the formula look a one list of mail codes, then
look at the other list of mail codes that correspond, and if there is
a description for that mail code, pull that description over. The
issue, however, is that more than one description can be tied to a
mail code. The way that I currently have my formula written, it will
only pull in the first description associated to that mail code, but
lops off all of the others, thus only returning partial results. Here
is my current formula:

=VLOOKUP(F:F, [Book1]Sheet1!$A:$B, 2, FALSE)

Where €śA€ť = mailcode and B=description.

Is there any way around this?

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
Vlookup issue Arain Excel Discussion (Misc queries) 6 August 5th 08 05:11 PM
VLOOKUP Issue??? Desperate Excel Discussion (Misc queries) 4 July 31st 08 05:38 PM
vlookup issue on Mac Terry Freedman Excel Discussion (Misc queries) 2 February 8th 08 05:42 PM
VLookup Issue Shonte Excel Worksheet Functions 1 November 18th 05 09:26 PM
VLOOKUP ISSUE Hardip Excel Worksheet Functions 2 March 23rd 05 08:11 AM


All times are GMT +1. The time now is 08:10 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"