LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 410
Default Concatenate the lookup values from all occurences

Nevermind. I was over thinking it. below works.

Function Concpos(Item As Range, Items As Range)

Dim c As Range
For Each c In Items

If c = Item Then
Dim Concat As String
Concat = c.Offset(0, 1).Value & ", "
Concpos = Concpos & Concat
End If

Next
End Function

Thanks Jay
 
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 lookup several values and concatenate the results? Jane Excel Discussion (Misc queries) 1 May 29th 10 02:43 AM
lookup then concatenate Betty Excel Worksheet Functions 1 April 6th 09 05:15 AM
lookup and concatenate Greg Excel Worksheet Functions 4 November 25th 08 02:56 PM
Lookup a value and count the number of associated occurences reddy Excel Discussion (Misc queries) 3 August 27th 08 11:37 PM
vlookup and concatenate multiple occurences jlclyde Excel Discussion (Misc queries) 0 June 17th 08 06:55 PM


All times are GMT +1. The time now is 09:44 AM.

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

About Us

"It's about Microsoft Excel"