+ Reply to Thread
Results 1 to 10 of 10

Pivot table not showing data

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Smile Pivot table not showing data

    Hi,

    I have one excel sheet where I write a macro to create pivot table.
    It was successfully ran and created the pivot table but there is no data in that table. Only headers are coming.

    What could be the problem here?

    I attached the sample sheet here.
    Attached Files Attached Files
    Last edited by venkiatmaruthi; 12-29-2009 at 09:41 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot table not showing data

    Hi,

    That's because you've got all your three fields as Row labels and nothing in the Values area. Drag one of your labels out of the Row label area into the Values.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-14-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Pivot table not showing data

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    That's because you've got all your three fields as Row labels and nothing in the Values area. Drag one of your labels out of the Row label area into the Values.

    HTH

    Thanks for your reply Richard.

    But when I am doing manually I don't need to put any column in value field. Here I don't need any sum or count information, I want the grouping and later I want to copy and paste that pivot table into other new sheet.

    This process worked when I do it manully, but now in macro it's not working.
    Can you please let me know why?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot table not showing data

    Hi,

    I'm not clear what you mean by grouping and not wanting any sum or count. That's what pivot tables do.

    With reference to your Names Classes and Groups can you describe what you expect to see in your pivot table, and perhaps upload the workbook with the PT manually populated with data.

    Rgds

  5. #5
    Registered User
    Join Date
    12-14-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Pivot table not showing data

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    I'm not clear what you mean by grouping and not wanting any sum or count. That's what pivot tables do.

    With reference to your Names Classes and Groups can you describe what you expect to see in your pivot table, and perhaps upload the workbook with the PT manually populated with data.

    Rgds
    Hi,

    Sorry for the confusion, I need grouping but not sum or count.
    Please check the attached excel sheet where I didn't enter anything in values field of Pivot table.


    Thanks in advance,
    Venkat.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-14-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Pivot table not showing data

    Do we have no solution for the above problem?
    please guide me

    Thanks in advance,
    Venkat

  7. #7
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Pivot table not showing data

    After your AddFields line, add this:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  8. #8
    Registered User
    Join Date
    12-14-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Smile Re: Pivot table not showing data

    Thanks a lot romperstomper.
    This statement is working fine.



    Thanks in advance,
    Venkat.

  9. #9
    Registered User
    Join Date
    03-18-2016
    Location
    Luxembourg
    MS-Off Ver
    2010
    Posts
    1

    Re: Pivot table not showing data

    Hi, I am having the same problem as venkiatmaruthi, but cannot see the solution. Could you help me?

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Pivot table not showing data

    tatis welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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