+ Reply to Thread
Results 1 to 5 of 5

Add field to pivot table

  1. #1
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Add field to pivot table

    Hi,

    I have a spreadsheet which has a column of suburbs/towns.

    I have created a pivot table and highlighted the Suburb/town column but I would like to add a countif to the pivot data.

    I did it with the a date column but have no idea how I did it. So that table says

    '20-Jan 2
    21-Jan 2
    etc'

    Heres the thread a thread if it helps
    https://www.excelforum.com/excel-gen...ate-pivot.html
    Last edited by russkris; 02-21-2018 at 10:33 PM.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Add field to pivot table

    Can you attach what you have so far.

  3. #3
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Re: Add field to pivot table

    Done. Just removed all data.

    You will note, there are duplicates from spelling mistakes but I will fix that later.

    using =TRIM(RIGHT(SUBSTITUTE(F3,",",REPT(" ",50)),50)) to get the suburb in the helper column

    But this has problems if I have to add the State

    Example

    13 St johns Avenue, New Town - Returns "New Town" = win
    13 St johns Avenue, New Town, Tasmania - Returns "Tasmania" - No ideal
    13 St johns Avenue, New Town Tasmania - Returns " Newtown Tasmania - Workable.
    Attached Files Attached Files

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Add field to pivot table

    You seem to be asking different things in Post #1 to Post #3.

    I've added the Count of Suburb as a field in your pivot trying to answer Post #1.

    You don't use a calculated field, just slide the Suburb field into the Values area of the pivot.

  5. #5
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Re: Add field to pivot table

    No not asking 2 thing. Just suppling as much info about what I am doing.

    Ahh I see. man it makes sense now.. So I dragged Suburb into values and it worked..

    Thank you sooooo much

+ 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. Pivot Table: Calculated Field based on Running Total Field
    By EvolvingMonkey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 06:27 AM
  2. Replies: 0
    Last Post: 08-15-2016, 02:07 PM
  3. [SOLVED] A pivot table field calculated using other field values as fields?
    By chrisf78 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-07-2015, 03:08 AM
  4. [SOLVED] Referring to a Sub-Field on Calculated Field Pivot Table Column?
    By figo12 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-27-2014, 02:02 PM
  5. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  6. Replies: 3
    Last Post: 03-03-2012, 12:16 PM
  7. Pivot Table VBA - Data Field - Original (source) field name
    By hbgpausa0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2008, 10:25 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