+ Reply to Thread
Results 1 to 42 of 42

Please Help - Match and seperate information

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Please Help - Match and seperate information

    Hi There

    Please assist with the following

    I have 3 sets of data sources:
    PWC original asset file (See Column D)
    DD source to match PWC (See Column D)
    GV source to match PWC (See Column D)

    I would like formulas to separate this information: This is just an example attached, I have more lines to separate

    1. PWC & DD matched only against ERF (Column G)
    2. PWC & DD unmatched against ERF (Column G)
    3. PWC & GV matched only against ERF (Column G)
    4. PWC & GV unmatched against ERF (Column G)
    5. PWC & DD & GV matched (Column G)
    6. PWC & DD & GV unmatched (Column G)

    then a formula to seperate the duplicate PWC against ERF (Column G) then Township (Column J)

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Please Help - Match and seperate information

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Hi

    Thanks for your quick response

    I have attached the file named BOOK4

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Please Help - Match and seperate information

    No, you haven't yet.

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Done. Have a look
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Version 2

    I haven't included PWC unmatched to both DD & GV

    It is now included.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    So

    I need to separate the source (Column D) into different tabs

    1. PWC & DD matched only against ERF (Column G)
    2. PWC & DD unmatched against ERF (Column G)
    3. PWC & GV matched only against ERF (Column G)
    4. PWC & GV unmatched against ERF (Column G)
    5. PWC & DD & GV matched (Column G)
    6. PWC & DD & GV unmatched (Column G)

    Then a tab for duplicate records under source (Column D) with PWC against ERF (Column G) then Township (Column J)

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Please Help - Match and seperate information

    Quote Originally Posted by vivek.budhram View Post
    Version 2

    I haven't included PWC unmatched to both DD & GV

    It is now included.
    What is your expected result can you please explain what you want to do???
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  9. #9
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    ok.

    Under column D

    there are 3 data sources (PWC, DD & GV)

    PWC being the original
    DD & GV are the sources to authenticate the give data.

    Now I would like to separate under different categories
    1. PWC vs DD Matched (Tab2)
    2. PWC vs GV Matched (Tab3)
    3. PWC vs DD unmatched (Tab 4 & 5)
    4. PWC vs GV unmatched (Tab 6 & 7)
    then those PWC unmatched, I need to run a duplicate Tab

    I will attach an example now

  10. #10
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Hi shukla.ankur281190

    So I have attached a dataset

    Apart from the "ORIGINAL DATASET"

    I would like to separate the data into the different tabs

    Would you be able to help or do you need more indepth explanation?

    Please advise

    Regards
    Vivek

  11. #11
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    remember the PWC duplicates with only work under the given ERF number (Column G) and Township (Column J)
    If same ERF and different Township, it wont be considered as duplicates

  12. #12
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    So in essence I would like to populate the original dataset into the different tabs

  13. #13
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Anyone there. Please help. Very Urgent!!

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    It is not obvious to me what is meant to be matched.

    In your sample OID 11696986 ("PWC MATCHED TO DD & GV") does not exist in "Original dataset"

  15. #15
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Look at the source column
    Options of source:
    01_GV_ECDC
    00_PWC_MARCH2016
    02_DD_ECDC

    PWC (e.g 00_PWC_MARCH2016) being the original dataset
    GV (e.g 01_GV_ECDC) or DD (02_DD_ECDC) may match or match to the original PWC with the given ERF under Column G

    So basically we are matching PWC (00_PWC_MARCH2016) with GV or DD, or GV & DD, or without any match

  16. #16
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    So another example of what i require:

    Under Original Dataset Tab:

    For every orange colored cell under the source column we trying to match either green or red, green and red or none, but the unique number on column G (ERF), PWC must match, GV or DD, GV & DD, or none
    Last edited by vivek.budhram; 11-21-2016 at 01:22 PM.

  17. #17
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    It is not obvious to me what is meant to be matched.

    In your sample OID 11696986 ("PWC MATCHED TO DD & GV") does not exist in "Original dataset"

    ...This example was extracted from the original dataset

  18. #18
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    ..So I require formulas from the original dataset to populate into the various tabs without having to remove the data from the original dataset


    Thanks for pointing that out
    Last edited by vivek.budhram; 11-21-2016 at 06:49 AM.

  19. #19
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Let me attache another spreadsheet with all the original datasets includes

  20. #20
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Columns to focus on

    Ringed in red

    Match or unmatch PWC source with DD or GV in Column D, considering the ERF numbers on Column G

    Attached is an example of a matched PWC to DD and GV
    Attached Images Attached Images

  21. #21
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Guys. I need your help here please

  22. #22
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    VBA solution:

    Please Login or Register  to view this content.
    I haven't added logic for duplcates as I was not clear on what is required.

    RUN button on "Original Dataset" column M

  23. #23
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    HI JohnTopley

    You are BRILLIANT!!!

    Thank you so much

    I will figure out the duplicates. You just made my work a whole lot simpler.

  24. #24
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    You're welcome. Thank you for the feedback and rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  25. #25
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82
    Quote Originally Posted by JohnTopley View Post
    You're welcome. Thank you for the feedback and rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Do you perhaps have a formula for duplicate check on source column based on the ERF Numbers and township. Some what it can hilight or stand out to identify.

    Also. If I add additional data or rows to your spreadsheet under the ORIGINAL DATASET, will the data pull thru on the various tabs?

  26. #26
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    Yes, it counts the rows in "Original Data" and adjusts if rows are added/deleted.

    I will look at duplicate check and get back to you.

  27. #27
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    Looking at the data there is no obvious check for Duplication and looking at your manual results all the ERF values are different.

  28. #28
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Hi John

    Please assist with another spreadsheet

    Same concept

    Deeds data tab is the original,

    I want to separate and match them to the relevant tabs

    So a quick one

    Match source column D using the erf column G and seperate them to the the different tabs like the last assignment

    please

    very urgent

    thank you

    Regards
    Vivek
    Attached Files Attached Files

  29. #29
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    So another example of what i require:

    Under deeds data Tab:

    For every green colored cell under the source column we trying to match with non fill but the unique number on column G (ERF), pwc masterfile must match DD or none

  30. #30
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    PLease help

  31. #31
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    Please Login or Register  to view this content.
    See attached: I have not thoroughly checked the results.

    File too large (even zipped).

  32. #32
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    Hi John

    Not sure how to run this,

    It states subscript range error

    Mail me [email protected]
    Or drop box

    Thank you

  33. #33
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    Try

    Alt+F11 (opens VB Editor)

    then "Insert" ==> "Module"

    Copy/paste code into module

    Back to Excel

    Click "Developer" ==>"Macros"==>Select "Transfer_to_tabs"

    I am now going out for a least an hour and a half.

  34. #34
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    subscript out of range...

  35. #35
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    ok managed to fix the subscript error :-)

  36. #36
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    it now works

    u a star

  37. #37
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  38. #38
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    ok, just one last request on this topic.

    I need a count:

    Example in "Deeds matched to Masterfile" tab -
    For every sucessful match "pwc masterfile" matches to "DD_ECDC" =
    "DD_BANTU" =

    I've done a pivot table, but its counting wrong and not the results im looking for

  39. #39
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    do you want the count of "pcw masterfile" where there at least one of each category for a given "pcw masterfile"?

    e.g ERF 832 has 10 BANTU and 2 ECDC si this count of 1?

  40. #40
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    how many ''pwc masterfile'' matched to
    DD_BANTU
    DD_ECDC
    DD_CISKIE

  41. #41
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: Please Help - Match and seperate information

    So, this is just relating to "Deeds matched to Masterfile" tab

    Thank you

  42. #42
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,346

    Re: Please Help - Match and seperate information

    Is this what you want?

    In a "helper" column (one for each formula)

    =IF(ISNUMBER(SEARCH("pwc",$D2)),IF(COUNTIFS($G$2:$G$6000,$G2,$D$2:$D$6000,"*ECDC*"),1,0),"")

    =IF(ISNUMBER(SEARCH("pwc",$D2)),IF(COUNTIFS($G$2:$G$6000,$G2,$D$2:$D$6000,"*BANTU*"),1,0),"")

    =IF(ISNUMBER(SEARCH("pwc",$D2)),IF(COUNTIFS($G$2:$G$6000,$G2,$D$2:$D$6000,"*CISKEI*"),1,0),"")

    NOTE: there are some results where the "pwc masterfile" is duplicated for a given ERF

    If the formulae are correct, simply sum the columns.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 06-04-2015, 01:59 AM
  2. Replies: 2
    Last Post: 09-07-2011, 11:16 AM
  3. Splitting Information in columns into seperate rows
    By undergraduate in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-19-2010, 06:15 PM
  4. Transfering information from a seperate file.
    By PBisson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-15-2009, 05:20 PM
  5. Pulling relative information from a seperate workbook
    By Effteekay in forum Excel General
    Replies: 2
    Last Post: 07-09-2009, 11:45 AM
  6. Incorporating information from seperate programs into excel
    By sfleming in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2009, 03:21 PM
  7. Seperate Cell Information (lastname, firstname)
    By JFALK in forum Excel General
    Replies: 6
    Last Post: 08-05-2005, 05:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1