+ Reply to Thread
Results 1 to 14 of 14

Data extraction

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Data extraction

    Hello everyone,
    Please help me.

    I have a table with a list of names, amount, ID and type (EV, BQ) .

    for each type I have an ID

    I want to retrieve IDs of duplicate names except that they must be of different type and amount of their amounts equal to zero

    I want to have the ID of EV type

    so : for each BQ an EV, search ID(EV) if names duplicate and sum amount = 0

    the table is in frensh so

    names: nom
    amount: montant
    ID: N° piece
    type: type

    thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Data extraction

    Hi Demahom08,
    Your request is not clear. The data are in French does not either. It would be easier to understand your request, if you could include on a separate sheet(With the attached book as above), a desired(Out put) sheet. We know your raw (Input) Data, but we do not know your expected output.

  3. #3
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction

    Hi AB33
    thank you

    I include an out put

    thank you again
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Data extraction

    Hi Demahom08,
    There are problems with your data.
    nom1
    and nom 1
    Are not the same, even if I trim the space, there are not duplicates and treated as two separate words. I can manually change them , but there is another serious issue with column M ( Mtant en DI). There are not numbers. I have tried to convert them in to numbers, but no change.
    It may be your regional settings. I use a comma to separate numbers, but in French, I think you use a dot.
    Try to add - 800.000,00
    and 800.000,00
    You get an error, as there are not recognised by excel as numbers.

  5. #5
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction

    HI AB33

    I understand i had the same problems i changed the names cause it was just an example and for the column M i should to covert them to numbers
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction

    Hi

    is there any solution IF we have "Sarah Miler" and "Miler Sarah" can the VBA take them as duplicate ??

    or we can have "Sarah Miler" and "Sarah Silvia Miler" for me it the same person but can the VBA take them as duplicate ?

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Data extraction

    No,
    VBA can only treat duplicates if two words use the same keys but could be in different Upper and lower cases

    Sarah Miler= SARAH Miler
    Or

    Sarah Miler= SARAH MILER
    If you ignore the case sensitivity, they are the same words.

  8. #8
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction

    HI AB33

    what about similarity method it can help ?
    can you include this method with my conditions to have the result i need ????
    Last edited by demahom08; 10-30-2013 at 07:50 AM.

  9. #9
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction

    HI AB33
    sorry it was just an idea ; it can't help

    i need just a macro to compare the first sheet If similar names found ( forget the double idea ) then go to the other condition finely copy to the second sheet
    Last edited by demahom08; 10-31-2013 at 09:21 AM.

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Data extraction

    Hi Demahom08,
    Please wrap (use) your code in code tags. You will be re-minded by the Moderators.

    I did not understand your last attachment. Could you please attach this code with you sample and show me if you want to change the code. It will help me to understand your question by looking at the code and sample.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Data extraction

    Try the attached
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction

    hi jindon

    thank you

    so i added a value and you will see that if we have triples even the third value don't have the same amount we will not have the exact result
    the condition of amount don't work

    this code search for the doubles i need a code of similarity cells

    if 2 cells are similar and ones is BQ the other EV their sum of amounts are zero = match .

    so if we have a cell with "alex dubois" and an other one with "alex duboi" or dubois alex" and ones is EV type the other a EV type thier sum of amounts are zero it is match

    *************************
    the file "similarity test "

    i have just the result i don't have the code it some one who maked it and i can't have the code
    we have EV sheet BQ sheet and similarity Sheet if you will see there is a new column on the right
    Attached Files Attached Files
    Last edited by demahom08; 11-03-2013 at 08:11 AM.

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Data extraction

    Try this one
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    04-08-2013
    Location
    algerie
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction

    thank u jindon

    what about similarity i found some thing about Levenshtein algorithm and PHP text similarity do you know any thing about

+ 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. Data extraction
    By Night Worker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2010, 08:02 AM
  2. CSV Data extraction
    By Talen77 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2010, 08:19 PM
  3. Data Extraction
    By hbeall in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2009, 02:01 PM
  4. Data Extraction
    By damo in forum Excel General
    Replies: 1
    Last Post: 03-30-2008, 11:53 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