thank you so much Paul! but i will need a bit more explanations because I am very new to using excel on this level :) the columns are "Name" and "B-Day" i open one worksheet for each client with his personal information. among this info i have kids (if any) names and their b-days. i need to collect the name of the kids and their birthdays to a separate list named "Army" please advise!!!
On Tue, Nov 25, 2014 at 2:57 PM, Paul Schreiner <schreiner_p...@att.net> wrote: > What experience do you have with VBA? > What columns contain the data? > what makes the record "unique" > > Here's what I would do: > > Copy the first sheet to make the "Summary" page. > > then use: > > Option Explicit > Sub UniqueNames() > Dim sCnt As Integer > Dim rCnt As Integer > Dim R As Integer > Dim sht > Dim Dict_Unique > Dim tArray > > Set Dict_Unique = CreateObject("Scripting.Dictionary") > Dict_Unique.RemoveAll > > sCnt = > Application.WorksheetFunction.CountA(ActiveWorkbook.Sheets("Summary").Range("A1:A65000")) > For R = 2 To sCnt > ' (Assumes "Lastname, FirstName" is unique) > If (Not Dict_Unique.exists(UCase(Sheets("Summary").Cells(R, > "A").Value & ", " & Sheets("Summary").Cells(R, "B").Value))) Then > Dict_Unique.Add UCase(Sheets("Summary").Cells(R, > "A").Value & ", " & Sheets("Summary").Cells(R, "B").Value), > Sheets("Summary").Name > End If > Next R > > For sht = 1 To Sheets.Count > If (Sheets(sht).Name <> "Summary") Then > rCnt = > Application.WorksheetFunction.CountA(ActiveWorkbook.Sheets(sht).Range("A1:A65000")) > For R = 2 To rCnt > If (Not Dict_Unique.exists(UCase(Sheets(sht).Cells(R, > "A").Value & ", " & Sheets(sht).Cells(R, "B").Value))) Then > Dict_Unique.Add UCase(Sheets(sht).Cells(R, > "A").Value & ", " & Sheets(sht).Cells(R, "B").Value), Sheets(sht).Name > sCnt = sCnt + 1 > Sheets("Summary").Cells(sCnt, "A").Value = > Sheets(sht).Cells(R, "A").Value > Sheets("Summary").Cells(sCnt, "B").Value = > Sheets(sht).Cells(R, "B").Value > Sheets("Summary").Cells(sCnt, "C").Value = > Sheets(sht).Cells(R, "C").Value > End If > Next R > End If > Next sht > End Sub > > > > *Paul* > ----------------------------------------- > > > > > > > > *“Do all the good you can,By all the means you can,In all the ways you > can,In all the places you can,At all the times you can,To all the people > you can,As long as ever you can.” - John Wesley* > ----------------------------------------- > > *From:* Maria Carmel <maria.car...@gmail.com> > *To:* excel-macros@googlegroups.com > *Sent:* Tuesday, November 25, 2014 7:19 AM > *Subject:* $$Excel-Macros$$ accumulating data > > Hello, > i need help with creating a "name and b-day" list that accumulates data () > from different worksheets of one excel file. > new worksheets added constantly with the same columns (among them names > and b-days) > i need that all the new data from new worksheets will be added to the same > one "name and b-day" list. > Thank you in advance! > -- > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > 2) Don't post a question in the thread of another member. > 3) Don't post questions regarding breaking or bypassing any security > measure. > 4) Acknowledge the responses you receive, good or bad. > 5) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to the Google Groups > "MS EXCEL AND VBA MACROS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to excel-macros+unsubscr...@googlegroups.com. > To post to this group, send email to excel-macros@googlegroups.com. > Visit this group at http://groups.google.com/group/excel-macros. > For more options, visit https://groups.google.com/d/optout. > > > -- > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > 2) Don't post a question in the thread of another member. > 3) Don't post questions regarding breaking or bypassing any security > measure. > 4) Acknowledge the responses you receive, good or bad. > 5) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to a topic in the > Google Groups "MS EXCEL AND VBA MACROS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/excel-macros/qM51Jwze7Rk/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > excel-macros+unsubscr...@googlegroups.com. > To post to this group, send email to excel-macros@googlegroups.com. > Visit this group at http://groups.google.com/group/excel-macros. > For more options, visit https://groups.google.com/d/optout. > -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.