Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Have data with multiple records associated to same ID

My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL


Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Have data with multiple records associated to same ID

How many subsets are you likely to have (maximum)? Are the values DLL,
CND etc in column C, or are they tagged on to the end of the ID in
column B?

Pete

On Feb 12, 2:42*pm, Dccp_WV wrote:
My Data Situation:

A * * * * * * * * * * * * * * *B
33007014220000 * * * *33007014220000 * *DLL
* * * * * * * * * * * * * * * * 33007014220000 *CND
* * * * * * * * * * * * * * * * 33007014220000 *CBL

Need to get it like this:
A * * * * * * * * * * * * * *B
33007014220000 * * *CBL,CND,DLL

Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Have data with multiple records associated to same ID

i would like the list of values CND,DLL to be in column C. And it could be
anywhere from 2 records per ID to 10 records i'm not sure.

"Pete_UK" wrote:

How many subsets are you likely to have (maximum)? Are the values DLL,
CND etc in column C, or are they tagged on to the end of the ID in
column B?

Pete

On Feb 12, 2:42 pm, Dccp_WV wrote:
My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL

Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan


.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Have data with multiple records associated to same ID

One way. Put in c2 and copy downchange to valuesdelete col B
=IF(LEN(A2)<2,"",RIGHT(B2,3) & " " &RIGHT(B3,3)& " "& RIGHT(B4,3))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dccp_WV" wrote in message
...
My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL


Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Have data with multiple records associated to same ID

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
One way. Put in c2 and copy downchange to valuesdelete col B
=IF(LEN(A2)<2,"",RIGHT(B2,3) & " " &RIGHT(B3,3)& " "& RIGHT(B4,3))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dccp_WV" wrote in message
...
My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL


Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Have data with multiple records associated to same ID

Hi,

Download and install the following add-in -
http://www.download.com/Morefunc/300...-10423159.html

Suppose your data is in range B5:C7. In B11, you have 33007014220000. In
cell C11, enter the following array formula (Ctrl+Shift+Enter)

=SUBSTITUTE(TRIM(MCONCAT(IF(1*LEFT($C$5:$C$7,LEN(B 11))=B11,RIGHT(C5:C7,3),""),"
"))," ",",")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Dccp_WV" wrote in message
...
My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL


Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Have data with multiple records associated to same ID

Ashish,

I tried this route and it didn't work. I don't have admin privelages on this
machine so i don't think the add-on installed correctly. I tried the previous
entry and it worked for each individual record but there's no way to do it
for multiple records.

The problem is there isn't a defined number of dup records for each
individual key. One unique key could have as many as ten seperate log types
or as few as one. How do you tell EXCEL to look and match the duplicate keys
and list each unique record attached to it in the format i have specified?

"Ashish Mathur" wrote:

Hi,

Download and install the following add-in -
http://www.download.com/Morefunc/300...-10423159.html

Suppose your data is in range B5:C7. In B11, you have 33007014220000. In
cell C11, enter the following array formula (Ctrl+Shift+Enter)

=SUBSTITUTE(TRIM(MCONCAT(IF(1*LEFT($C$5:$C$7,LEN(B 11))=B11,RIGHT(C5:C7,3),""),"
"))," ",",")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Dccp_WV" wrote in message
...
My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL


Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Have data with multiple records associated to same ID

I counted the number of duplicates, it ranges from 2-11.


"Dccp_WV" wrote:

Ashish,

I tried this route and it didn't work. I don't have admin privelages on this
machine so i don't think the add-on installed correctly. I tried the previous
entry and it worked for each individual record but there's no way to do it
for multiple records.

The problem is there isn't a defined number of dup records for each
individual key. One unique key could have as many as ten seperate log types
or as few as one. How do you tell EXCEL to look and match the duplicate keys
and list each unique record attached to it in the format i have specified?

"Ashish Mathur" wrote:

Hi,

Download and install the following add-in -
http://www.download.com/Morefunc/300...-10423159.html

Suppose your data is in range B5:C7. In B11, you have 33007014220000. In
cell C11, enter the following array formula (Ctrl+Shift+Enter)

=SUBSTITUTE(TRIM(MCONCAT(IF(1*LEFT($C$5:$C$7,LEN(B 11))=B11,RIGHT(C5:C7,3),""),"
"))," ",",")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Dccp_WV" wrote in message
...
My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL


Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Have data with multiple records associated to same ID

I then sorted the entire list by the number of duplicate reocrds and used an
if statement to sort out the duplicates and attached the Concentate fromula
to populate on the cells that met the criteria.

=IF(AND(A3=A2,A4=A3,A5=A4),CONCATENATE(B2&",",B3&" ,",B4&",",B5),"")



"Dccp_WV" wrote:

I counted the number of duplicates, it ranges from 2-11.


"Dccp_WV" wrote:

Ashish,

I tried this route and it didn't work. I don't have admin privelages on this
machine so i don't think the add-on installed correctly. I tried the previous
entry and it worked for each individual record but there's no way to do it
for multiple records.

The problem is there isn't a defined number of dup records for each
individual key. One unique key could have as many as ten seperate log types
or as few as one. How do you tell EXCEL to look and match the duplicate keys
and list each unique record attached to it in the format i have specified?

"Ashish Mathur" wrote:

Hi,

Download and install the following add-in -
http://www.download.com/Morefunc/300...-10423159.html

Suppose your data is in range B5:C7. In B11, you have 33007014220000. In
cell C11, enter the following array formula (Ctrl+Shift+Enter)

=SUBSTITUTE(TRIM(MCONCAT(IF(1*LEFT($C$5:$C$7,LEN(B 11))=B11,RIGHT(C5:C7,3),""),"
"))," ",",")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Dccp_WV" wrote in message
...
My Data Situation:

A B
33007014220000 33007014220000 DLL
33007014220000 CND
33007014220000 CBL

Need to get it like this:
A B
33007014220000 CBL,CND,DLL


Is there a way to do this via formulas or code? I am doing it by hand and
will take days to go through 1683 Unique records.

Thanks for your help!
Dan


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
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
Creating a Custom Data Entry Form to Update Multiple Excel Records atOnce Scotty81 Excel Discussion (Misc queries) 0 January 7th 09 08:22 PM
Combining multiple data records Compass Rose Excel Discussion (Misc queries) 13 July 2nd 08 10:36 PM
Combining multiple data records Compass Rose Excel Worksheet Functions 3 July 1st 08 10:29 PM
return multiple records matching multiple criteria Karthik Excel Worksheet Functions 2 March 22nd 06 04:42 PM


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

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"