Consulting

Results 1 to 9 of 9

Thread: Filter the specific data and find the difference

  1. #1
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location

    Smile Filter the specific data and find the difference

    Hi All,

    Here is my requirement..

    Actually i copy the raw data(.txt file) and paste in a sheet named sample.xls. then i align the date using text to columns and delete the non numeric rows. i have many rows of data, out of which i have to check only for the "vap" and "sap" in the column Vcode. I have filtered the vap and sap using the custom filter.

    After filtering the required date i have to check for each value in the Bcode column. if i have 10 values i have to check all the 10 values.

    For each Bcode there should be either vap or sap. There should not be both vap and sap for a single Bcode. If i find both of them for a particular Bcode then make a note of Bcode, Fcode, Ccode and the total of Acode in the sheet "Difference". Also select only value starting with vap in vcode find the total and make a note in difference sheet.

    This is my query and i should note the values only when there is both vap and sap for a particular Bcode...

    Hope i made it clear... Any help on this will be highly appreciated.

    Also attached the sample sheet with the workings....

    Bcode value say 557 is stated an example entry in attached file.

    -Sindhuja

  2. #2
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Any help on this please...?

  3. #3
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    can anyone help me out in this please...

  4. #4
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Am really struck with my requirement...
    Is there anyone to help me...

    -Sindhuja

  5. #5
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Because you have 16,000 rows with the same date, it makes a solution to the sample problematical. However, filtering for unique Bcodes and applying sumproduct identifies the potential duplicates, which you can then process further
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  6. #6
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Am not sure how to proceed further..
    Any guidance to my requirement...?

    -Sindhuja

  7. #7
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Make your sample provide a more realistic output. What is the point in filtering 16k dates which are all the same?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  8. #8
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Hi,

    I have attached my sample with few datas..
    Hope this will be helpful now..

    -Sindhuja

  9. #9
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Here is the sample attachment...

Posting Permissions

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