Consulting

Results 1 to 12 of 12

Thread: check for the values in the sheet 2 and count the values

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

    Smile check for the values in the sheet 2 and count the values

    Hi,

    Here is my requirement…

    I have an excel with some sample data…
    I want the counts of all the accounts with the below criteria excluding the accounts in the sheet 2. Also want the counts in the sheet 3.

    < -100k , (-100k) to (-500k) , > -500k , 100k to 500k , >500k

    Also another set of account to be distinguished separately from others.
    Search for the accounts – corresponding subtotal and the cell value next to the subtotal cell…

    Am not sure whether this can be done using macro… any help on this will be highly appreciated..

    Immediate help will be highly helpful…

    -Sindhuja

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    This would be simpler if your Column A data on sheets 1 and Columns A, C on sheet 3 were split into separate columns. Can you rearrange it in this fashion or do you have to work with it as presented?

    Which column is providing the criteria for the count?
    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'

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you add a helper column with a header and a simple formula of

    =TRIM(LEFT(SUBSTITUTE(A4," ",REPT(" ",100)),200))

    and then you could pivot it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Hi..

    I will be working the way i presented.. For the counts i will be using the column A in sheet 1 provided i have to exclude the Column A values in sheet 2 . And the count to be entered in Sheet 3 - Column B.

    Hope i made it clear....

    -Sindhuja
    Last edited by sindhuja; 03-10-2009 at 04:16 AM.

  5. #5
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Any help on this will be highly helpful.... pls..

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

    This is something very urgent... any hand on this will be highly appreciated.

    -Sindhuja

  7. #7
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Did you try XLD's suggestion?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  8. #8
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Yes……..I tried XLD’s sugessions.. but its not giving me the results I expected…

  9. #9
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Post a worksheet with some dummy data on sheet 1 & on sheet 2 the layout as you require it to be
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  10. #10
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Hi...

    Have already attached the sheet with dummy data's.

    -Sindhuja

  11. #11
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Any help on this pls....

  12. #12
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Post the example with my formula, with the pivot (you said you tried it), and then tell is in what way it fails to meet your needs.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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