+ Reply to Thread
Results 1 to 3 of 3

Vba code to perform pivot like fuction.

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Gurgaon
    MS-Off Ver
    Excel 2007
    Posts
    25

    Lightbulb Vba code to perform pivot like fuction.

    Hi please help me with the code which work like a pivot
    i have following data
    Date Name Acc WAcc RAcc
    16-Aug-12 Ram 5 2 1
    16-Aug-12 Prem 7 4 3
    17-Aug-12 Ram 2 2 1
    17-Aug-12 Shyam 3 3 2
    18-Aug-12 Ram 8 1 1
    18-Aug-12 Shyam 9 2 2
    20-Aug-12 Ram 6 4 3
    20-Aug-12 Prem 7 2 1

    And i want result as
    Name Acc WAcc RAcc
    Prem 14 6 4
    Ram 21 9 6
    Shyam 12 5 4
    Gr 47 20 14

    i.e total number of accounts, worked accounts and resolved accounts by each candidate

    Please help

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Vba code to perform pivot like fuction.

    Why not just use a pivot table?

    You can create a pivot table with a macro, try using the macro recorder whilst you do it

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Gurgaon
    MS-Off Ver
    Excel 2007
    Posts
    25

    Question Re: Vba code to perform pivot like fuction.

    Book5.xlsxBook5.xlsxHi Kyle Thanks for your suggestion, but problem is littel diffrent.
    Please find the attached sheet and suggest how can i resolve the problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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