+ Reply to Thread
Results 1 to 4 of 4

Showing Text in a Pivot Table - expanding the amount of options.

  1. #1
    Registered User
    Join Date
    10-09-2016
    Location
    Preston, England
    MS-Off Ver
    2010, 2013 & 2016
    Posts
    30

    Question Showing Text in a Pivot Table - expanding the amount of options.

    Hello all,

    I currently have an attendance tracker where a user form inputs the attendance into an excel table.
    For speed there is a "Reason" comment box where the reason has been abbreviated into a number code.
    The list looks like this.
    1 HOL
    2 HOL-AM
    3 HOL-PM
    4 SICK
    5 SICK-AM
    6 SICK-PM
    7 UNPAID
    8 B HOL

    The issue i am having is when converting these numbers to text in a pivot table I can only seem to convert two.
    In the values part of the PivotTable Fields I have changed the number format to custom and added this in
    Please Login or Register  to view this content.
    however when i try to expand this further for the other 6 in my list it does not work.

    I am using a pivot table to use the slicer to filter out the months quickly on the attendance report. I am trying to avoid using vlookups hence why I have decided to approach it this way.

    Any suggestions on how to expand this to include all 8 on the list?

    Thank you

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,902

    Re: Showing Text in a Pivot Table - expanding the amount of options.

    2 condition is limit for formatting.

    If you absolutely want to avoid using VLOOKUP or equivalent.
    I'd imagine, that you can use CHOOSE function in source table and use the column as row label.

    Assuming data in Column A, with header row.
    =CHOOSE(A2,"HOL", "HOL-AM","HOL-PM","SICK","SICK-AM","SICK-PM","UNPAID","B HOL")

  3. #3
    Registered User
    Join Date
    10-09-2016
    Location
    Preston, England
    MS-Off Ver
    2010, 2013 & 2016
    Posts
    30

    Re: Showing Text in a Pivot Table - expanding the amount of options.

    I was thinking on something like this too but wanted to know if some one out there knew of a way around this.

    I guess this time excel has defeated us.

    Thanks for your input

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Showing Text in a Pivot Table - expanding the amount of options.

    Hi

    You could use several conditional formatting rules to apply different custom number formats. That would allow more than two options.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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: 9
    Last Post: 03-07-2016, 10:39 AM
  2. Pivot table constantly expanding
    By whatever61 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-06-2015, 08:17 PM
  3. Expanding cell in a pivot table without overlapping the pivot below it
    By telecaster23 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-17-2015, 08:40 AM
  4. Pivot Table not showing the value filter options - only Top 10!
    By abhi.ko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2014, 07:31 PM
  5. Expanding only one field in pivot table
    By geabarbic in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-09-2014, 04:40 AM
  6. Replies: 0
    Last Post: 07-10-2013, 08:15 AM
  7. Expanding Pivot Table Range
    By john_london in forum Excel General
    Replies: 4
    Last Post: 05-03-2010, 02:49 PM

Tags for this Thread

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