+ Reply to Thread
Results 1 to 8 of 8

ignoring blank columns in pivot table

  1. #1
    Registered User
    Join Date
    02-01-2007
    Posts
    39

    Lightbulb ignoring blank columns in pivot table

    Sheet A in my workbook contains the 'source' data for the pivot table. I have a few blank columns in Sheet A which cannot be included in the pivot table. Is there a way around this? How can I change the source of pivot table to include all columsn except for the blank columsn?

    I would really appreciate any help on this!

    Thanks a ton!
    Ritu

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    You could do this a couple of ways.

    First, you could go into the pivot table wizard, and select multiple ranges, separated by a comma.

    Or second, you could simply hide the blank columns in the pivot table (probably easier and preferable). Right-click on one of the pivot table columns, select Field, then you can select any columns to hide.

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    02-01-2007
    Posts
    39

    Doesn't work

    Thank you for your reply!

    If I select multiple ranges in the source of pivot table, I get the following error "Referance is not valid".

    Secondly, I already have a pivot table that is getting data from another sheet. Due to some formatting issues, I had to add a few blank columns on my worksheet. Now, If I got back to the pivot table and try to refresh data, it displays the followign messsage .."The Pivot Table field name is not valid...........". And then, if I remove the blank columns and try to refresh data on the pivot table - it works perfectly fine.

    The issue is with the blank columns in the source area.

    Thanks much!

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    I forgot to mention another step for the multiple ranges. In step 1 of the Pivot Table Wizard, you need to select "Multiple consolidation ranges". This will allow you to add different ranges one at a time. See if that works for you.

    Jason

  5. #5
    Registered User
    Join Date
    02-01-2007
    Posts
    39
    I think it works but the output is so confusing.

    Is there any work around this - something easier ????

    I can't believe I have to go through all of this just to remove some columsn from the Source in pivot table.

    Anyway- Thank you for your help!!

  6. #6
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    You are probably getting the "pivot table field not valid" due to missing a column header. Try going into the source data, and creating headers for the blank columns (e.g. Blank1, Blank2, etc.). Then refresh from source, and see what you come up with.

  7. #7
    Registered User
    Join Date
    02-01-2007
    Posts
    39
    YES !!! YAHOOOOOOOOOO !!

    You are a genius !!

    That solves the problem. Adding Blank1, Blank2, etc for the header allowed me to refresh the data successfully !!

    Thank you sooooooooooooooooooooo much !!

  8. #8
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad to help.

+ 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