+ Reply to Thread
Results 1 to 5 of 5

Insert formula in pivot table

  1. #1
    Forum Contributor
    Join Date
    06-26-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    274

    Insert formula in pivot table

    Hi Friends,

    I have a pivot table that has "POST CODES". I will need to insert a column in the pivot table to show "STATES".
    For this I will need do a calculated filed for "STATES"

    All post codes are stored in text format (for eg-08000). I don't want to convert the text to number, keep it as it is

    All postcodes beginning with 0 is NT state, 2 is NSW state- list below

    0= NT
    2=NSW
    3=VIC
    4=QLD
    5=SA
    6=WA
    7=TAS

    Can you please suggest a formula

    Thanks

  2. #2
    Forum Contributor
    Join Date
    06-26-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    274

    Re: Insert formula in pivot table

    Any help please

  3. #3
    Forum Contributor
    Join Date
    06-26-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    274

    Re: Insert formula in pivot table

    I have attached a file, for easier understanding. Any help will be greatly appreciated

  4. #4
    Forum Contributor
    Join Date
    06-26-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    274

    Re: Insert formula in pivot table

    File attached
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-26-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    274

    Re: Insert formula in pivot table

    I was advised to use formula LOOKUP(LEFT(A2,1),{"0","2","3","4","5","6","7"},{"NT","NSW","VIC","QLD","SA","WA","TAS"})

    But this formula will work only if I use it outside the pivot table. I will need a formula to be used in the "Calculated Field" of the Pivot table

+ 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. Is it possible to use VBA to insert a title into a pivot table?
    By Smudge.Smith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2014, 11:29 AM
  2. Copy Pivot Table, Insert to new Workbook
    By pualive in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 06:25 PM
  3. Excel 2007 : Insert Pivot Table is Greyed out!
    By elikapeka in forum Excel General
    Replies: 1
    Last Post: 04-30-2010, 05:42 PM
  4. How do i insert functions into pivot table??
    By perrymagic in forum Excel General
    Replies: 0
    Last Post: 09-01-2009, 06:51 AM
  5. [SOLVED] Insert a row after a pivot table
    By MarkM in forum Excel General
    Replies: 0
    Last Post: 07-19-2006, 04:25 PM

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