Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 01-08-2008, 01:06 PM
joewood joewood is offline
Registered User
 
Join Date: 08 Jan 2008
Posts: 10
joewood is becoming part of the community
VLOOKUP variation to yield multiple text values for same customer not just first text

Please Register to Remove these Ads

I have seen similar Q&A, but they do not work with this particular instance.

I have customers with the same order number repeated if they order several things (text). Each "thing" is a different text.

Traditional VLOOKUP from one spreadsheet to another will only give the first text and some customers ordered up to 5 different texts.

I need the result to show the order number plus the text for each separate text instead of just the first.

As a simple version, for this sheet:

1632 Palguta
1633 JUDY
1634 The Brady's
1634 The Brown's
1634 The Black's
1634 The Lyle's

Currently, the VLOOKUP yields:

1632 Palguta
1633 Judy
1634 The Brady's
1634 The Brady's
1634 The Brady's
1634 The Brady's

And it needs to yield:

1632 Palguta
1633 Judy
1634 The Brady's
1634 The Brown's
1634 The Black's
1634 The Lyle's


I have attached the actual sheets, with the needed result area highlighted in blue.

Thanks very much in advance! It is very much appreciated.
Attached Files
File Type: zip !!! NEW Combined Upload Sheet to Variable.zip (37.7 KB, 12 views)
File Type: zip aaaItems.zip (447 Bytes, 7 views)
File Type: zip aaaOptions.zip (469 Bytes, 14 views)
File Type: zip aaaOrders.zip (2.6 KB, 7 views)
Reply With Quote
  #2  
Old 01-08-2008, 02:33 PM
StephenR StephenR is offline
Forum Guru
 
Join Date: 26 Aug 2007
Location: London
Posts: 2,210
StephenR is very confident of their ability StephenR is very confident of their ability StephenR is very confident of their ability StephenR is very confident of their ability StephenR is very confident of their ability
You've attached four separate documents and I'm struggling to follow how they all link together.

Where do the order numbers and customers originate, and where should the information end up?

Could you perhaps attached one simplified file summarising this?
Reply With Quote
  #3  
Old 01-08-2008, 02:40 PM
NBVC's Avatar
NBVC NBVC is offline
Forum Guru
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
MS Office Version:2003 & 2007
Posts: 18,517
NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future
Try, in F2:

Code:
=IF(ISERR(INDEX(aaaOptions.csv!$F$1:$F$100,SMALL(IF(A2=aaaOptions.csv!$A$1:$A$100,ROW(aaaOptions.csv!$A$1:$A$100)),COUNTIF($A$2:$A2,A2)))),F1,SUBSTITUTE(PROPER(INDEX(aaaOptions.csv!$F$1:$F$100,SMALL(IF(A2=aaaOptions.csv!$A$1:$A$100,ROW(aaaOptions.csv!$A$1:$A$100)),COUNTIF($A$2:$A2,A2)))),"'S","s"))
Note: this formula must be confirmed with CTRL+SHIFT+ENTER keys, not just ENTER...you will see { } brackets appear. Then you can copy down

Also, note that you will have to reinsert the paths in front of each range reference in the formula...as I do not know your path. Then reconfirm with CSE keys.

The ranges in the formula only cover to 100, you may need to revise if you have more data in your lookup sheet.
__________________
Where there is a will there are many ways. Pick One!

Please read the Forum Rules

If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above my avatar (picture) in this post.

Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Reply With Quote
  #4  
Old 01-08-2008, 02:59 PM
joewood joewood is offline
Registered User
 
Join Date: 08 Jan 2008
Posts: 10
joewood is becoming part of the community
WOW! You are a genius!

Thank you so much. It took me an entire day to get it wrong!

When you say

"note that you will have to reinsert the paths in front of each range reference in the formula"

what does this mean? It seems to work fine because I have all sheets opened.
Reply With Quote
  #5  
Old 01-08-2008, 03:00 PM
joewood joewood is offline
Registered User
 
Join Date: 08 Jan 2008
Posts: 10
joewood is becoming part of the community
Stephen-

Thank you very much for looking. I think we have it.

Joe
Reply With Quote
  #6  
Old 01-08-2008, 03:05 PM
StephenR StephenR is offline
Forum Guru
 
Join Date: 26 Aug 2007
Location: London
Posts: 2,210
StephenR is very confident of their ability StephenR is very confident of their ability StephenR is very confident of their ability StephenR is very confident of their ability StephenR is very confident of their ability
Joe - good news! I expect NBVC means if the files are not open but no doubt all will be revealed...
Reply With Quote
  #7  
Old 01-08-2008, 03:15 PM
NBVC's Avatar
NBVC NBVC is offline
Forum Guru
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
MS Office Version:2003 & 2007
Posts: 18,517
NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future
Quote:
I expect NBVC means if the files are not open but no doubt all will be revealed..
Yeah, I was assuming the other files could be closed.... but if they are all open, then the path will add itself as you close the other files.

Glad it worked!
__________________
Where there is a will there are many ways. Pick One!

Please read the Forum Rules

If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above my avatar (picture) in this post.

Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Reply With Quote
  #8  
Old 01-08-2008, 04:14 PM
joewood joewood is offline
Registered User
 
Join Date: 08 Jan 2008
Posts: 10
joewood is becoming part of the community
You guys are the best! Thanks.

Could you help me with another issue?

I want to create another sheet that pulls over rows from orders on the "!!!New Combined.." sheet. I want to lay them down in the same order, but want to skip all of the rows that say "Tax" or "Shipping" in column B.

Can I do this with a formula and not have to do something like a sort - delete?
Reply With Quote
  #9  
Old 01-08-2008, 04:55 PM
NBVC's Avatar
NBVC NBVC is offline
Forum Guru
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
MS Office Version:2003 & 2007
Posts: 18,517
NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future
Try this formula in A2 of your new sheet:

Code:
=IF(ROWS($A$1:$A1)>SUMPRODUCT((Sheet1!$B$2:$B$100<>"Tax")*(Sheet1!$B$2:$B$100<>"Shipping")*(Sheet1!$B$2:$B$100<>"")),"",INDEX(Sheet1!A$2:A$100,SMALL(IF((Sheet1!$B$2:$B$100<>"Tax")*(Sheet1!$B$2:$B$100<>"Shipping")*(Sheet1!$B$2:$B$100<>""),ROW(Sheet1!A$2:A$100)-ROW(Sheet1!A$2)+1),ROWS($A$1:$A1))))
again you must adjust ranges to ensure all data is captured and you must confirm formula with CTRL+SHIFT+ENTER before copying to the right and down as far as necessary.
__________________
Where there is a will there are many ways. Pick One!

Please read the Forum Rules

If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above my avatar (picture) in this post.

Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Reply With Quote
  #10  
Old 01-09-2008, 12:14 PM
joewood joewood is offline
Registered User
 
Join Date: 08 Jan 2008
Posts: 10
joewood is becoming part of the community
Thank you very, very much!!! It worked great.
Reply With Quote
  #11  
Old 01-09-2008, 01:36 PM
joewood joewood is offline
Registered User
 
Join Date: 08 Jan 2008
Posts: 10
joewood is becoming part of the community
NBVC-

Could I ask your name so I could address you properly?

I ran into a small snag. In the "Options" sheet, some people do not have to fill in options. So, it may look something like:

123 Smith
124 Jones
125 Stevens
125 Jason
126 Tom
128 Ralph
129 May
129 Jerry

On the combo sheet, everything is beautiful with what you have helped with. But, for #127, even though he has not selected an option, so his name does not appear, he is automatically being assigned "Tom".

I would like, instead, for this filed to be left blank. Can you help?
Reply With Quote
  #12  
Old 01-09-2008, 01:52 PM
NBVC's Avatar
NBVC NBVC is offline
Forum Guru
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
MS Office Version:2003 & 2007
Posts: 18,517
NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future
NBVC is fine..

Try replacing previous formula in F2 with this one:

Code:
=IF(ISNA(MATCH(A2,aaaOptions.csv!$A$1:$A$100,0)),"",IF(ISERR(INDEX(aaaOptions.csv!$F$1:$F$99,SMALL(IF(A2=aaaOptions.csv!$A$1:$A$99,ROW(aaaOptions.csv!$A$1:$A$99)),COUNTIF($A$2:$A2,A2)))),F1,SUBSTITUTE(PROPER(INDEX(aaaOptions.csv!$F$1:$F$99,SMALL(IF(A2=aaaOptions.csv!$A$1:$A$99,ROW(aaaOptions.csv!$A$1:$A$99)),COUNTIF($A$2:$A2,A2)))),"'S","s")))
reconfirm with CSE keys and copy down... adjust ranges if needed too!
__________________
Where there is a will there are many ways. Pick One!

Please read the Forum Rules

If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above my avatar (picture) in this post.

Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Reply With Quote
  #13  
Old 01-10-2008, 08:34 AM
joewood joewood is offline
Registered User
 
Join Date: 08 Jan 2008
Posts: 10
joewood is becoming part of the community
Thanks! You are the best.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump