+ Reply to Thread
Results 1 to 13 of 13

Display text in pivot table

  1. #1
    Registered User
    Join Date
    05-03-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Smile Display text in pivot table

    I am trying to display text in the value field within a pivot table. I do not want a count or any number to display. What I am basically trying to create is a weekly schedule for nurses, with the dates on the top and times along the side, with "call type" and client as the text data to display with the value field.
    I have attached an excel file with all the data on Sheet 1 and my attempt at a pivot table on Sheet 2. Perhaps there is some way to write a macro to display the data in a similar fashion, without using a pivot table?

    Clients and Caregivers - All Schedules-2.xls

  2. #2
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: Need Help! Display text in pivot table

    Hi,
    I'm not sure whether It will done by pivot table but I come up with a formula I have attached it.
    Attached Files Attached Files

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Display text in pivot table

    No text in the body of a pivot table.

    If you want to retain the flexibility of pivot table selection and filtering then you can nest your row fields.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    05-03-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Talking Re: Display text in pivot table

    Quote Originally Posted by Andy Pope View Post
    No text in the body of a pivot table.

    If you want to retain the flexibility of pivot table selection and filtering then you can nest your row fields.
    Thanks Andy! This works great.

  5. #5
    Registered User
    Join Date
    05-03-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Display text in pivot table

    Now, I'm wondering if there is a way to automate the process such that any output Sheet 1 will be transferred to a pivot table using macros.
    The output data will be generated each week for the nurse schedules, and it would be great to have it automatically format into sheet 2.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Display text in pivot table

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-03-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Display text in pivot table

    Quote Originally Posted by Andy Pope View Post
    Please Login or Register  to view this content.

    This is amazing. Thank you!

  8. #8
    Registered User
    Join Date
    05-03-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Display text in pivot table

    Andy, I was wondering if you (or somebody) could make a few modifications to the code.
    In the attachment, Sheet 3 is the output generated by the code above.
    - Is there a way to also include "Client" next to call type, as seen in Column B of Sheet 2?
    - Insert an empty row between every time slot
    - Display all "1"s in the pivot table as white text font
    - Display "X" in all blank cells in the pivot table value field

    Any additional help would be greatly appreciated.
    Attached Files Attached Files

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Display text in pivot table

    Please Login or Register  to view this content.
    To get the Client field to appear I moved the adddata instruction to before the insertion of client as a row field.
    The other 3 items are all options of the table of a row field.

  10. #10
    Registered User
    Join Date
    01-10-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Display text in pivot table

    Quote Originally Posted by Andy Pope View Post
    No text in the body of a pivot table.

    If you want to retain the flexibility of pivot table selection and filtering then you can nest your row fields.
    worked perfectly!

  11. #11
    Registered User
    Join Date
    01-22-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Cool Re: Need Help! Display text in pivot table

    Quote Originally Posted by mmmarks View Post
    Hi,
    I'm not sure whether It will done by pivot table but I come up with a formula I have attached it.
    This is a GREAT table... I very clever way of creating a unique id to solve the order.

    QUESTION: how do you make the formula as an array (you know, F2 then ctrl+shift+enter) and still make the cells within the formulas a variables and changing according with the cells.

    In other words, within your formula MATCH($G4&H$1,$E$2:$E$620&$D$2:$D$620,0) it changes the G and H values from cell to cell... while everytime I copy the array formula it fixes the G4&H1 as a single value throughout the whole array (and therefore, the formula gets funky)

    Can you give me some light here?
    thanks!!!

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Display text in pivot table

    peponfree,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  13. #13
    Registered User
    Join Date
    01-22-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Cool Re: Display text in pivot table

    Quote Originally Posted by arlu1201 View Post
    peponfree,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    No problem Arlu1201... how can I initiate a new question however making reference to the old thread?

    Thanks!
    :-D

+ 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