+ Reply to Thread
Results 1 to 7 of 7

Collapse pivot table by number before the decimal point

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Collapse pivot table by number before the decimal point

    Hi everyone,

    Is it possible to collapse all the figures as shown in the image below?

    I.e. the value of all figures under the A column with the integer "1" would be 2780.

    Any would be great.

    Thanks

    Tom

    grF8QP.png

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Collapse pivot table by number before the decimal point

    The best thing to do is
    1. in your original data source, add a column called "Grouping" and enter this formula (assuming column A is where your Item column is):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Edit the pivot table data source to include this new column.
    3. Drag the Grouping column into the AXIS (Categories) section.
    Please click the * icon below if I have helped.

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Re: Collapse pivot table by number before the decimal point

    That has worked, per the below image.

    Thanks Melvinrobb

    The next and final question is as follows:

    I have some text items written in the original cells. E.g. A101 in the source data has the word "included" as opposed to a number value.

    Is it possible to have this text still show up in A101 in the pivot?

    ycXrPH.png

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Collapse pivot table by number before the decimal point

    I am not sure what you mean.

    If... in your original data source, in the 1.18 row, the notes column says "Included" you would want your pivot table to show as "1.18 - Included"?

  5. #5
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Re: Collapse pivot table by number before the decimal point

    Hi Melvinrobb, I've attached an Excel which I hope illustrates what I'm interested in. I'd like the text in the red cell of the Pivottable source to show up in the pivot table.

    Thanks

    Tom
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Collapse pivot table by number before the decimal point

    With a regular pivot table, you can never have text show up in the VALUES section (that I know of).

  7. #7
    Registered User
    Join Date
    09-09-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2019
    Posts
    52

    Re: Collapse pivot table by number before the decimal point

    Okay, thanks Melvin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 06-29-2012, 07:52 PM
  2. Collapse/Expand - Pivot table Fields - Need equivalent option in Excel VBA Pivot table
    By ragavendraph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 03:00 PM
  3. Add decimal point to existing number
    By KarambaStar in forum Excel General
    Replies: 2
    Last Post: 01-17-2009, 04:39 PM
  4. Replies: 3
    Last Post: 03-18-2006, 02:25 PM
  5. [SOLVED] How do I round last number without a decimal point
    By rollover22 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. How do I round last number without a decimal point
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM
  7. [SOLVED] How do I round last number without a decimal point
    By rollover22 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. [SOLVED] How do I round last number without a decimal point
    By rollover22 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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