+ Reply to Thread
Results 1 to 3 of 3

Solved - Changing cell contents in named cell while using a pivot table

Hybrid View

Graham Cooper Solved - Changing cell... 03-06-2020, 02:47 PM
ChemistB Re: Changing cell contents in... 03-06-2020, 05:32 PM
Graham Cooper Solved - Re: Changing cell... 03-09-2020, 01:06 PM
  1. #1
    Registered User
    Join Date
    03-05-2020
    Location
    Windsor ON
    MS-Off Ver
    Office Professional 13
    Posts
    2

    Solved - Changing cell contents in named cell while using a pivot table

    I use a pivot table to extract info from a financial data table. By way of example, the attached pivot table breaks down the data by product, and further by the dates associated with each of the products. I reference the data associated with each of the products within the pivot table for use elsewhere by naming them (in the attached example, “shoe” referencing C5). However if by way of example, I expand the pivot table to show the rows showing the transaction dates of the product “heel”, the value of the “shoe” category, which I want to capture moves to C8, but my named cell remains at C5, therefor returning incorrect data. What can I do to ensure that when referring to the named cell, I always get the correct data, even when expanding peoduct fields?
    Attached Files Attached Files
    Last edited by Graham Cooper; 03-09-2020 at 01:31 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Changing cell contents in named cell while using a pivot table

    You could use this formula (forget the named range)
    Formula: copy to clipboard
    =GETPIVOTDATA("Price",B3,"Product","Shoe")
    Would that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-05-2020
    Location
    Windsor ON
    MS-Off Ver
    Office Professional 13
    Posts
    2

    Solved - Re: Changing cell contents in named cell while using a pivot table

    Perfect! Thanks. You learn something new everyday.
    Last edited by Graham Cooper; 03-09-2020 at 01:08 PM. Reason: Solved

+ 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. Data source for pivot table based on contents of cell
    By FernTurpin in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-23-2015, 11:39 AM
  2. How to set Pivot Table Data based on CONTENTS of a cell
    By FernTurpin in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-03-2015, 03:35 PM
  3. Using a cell contents to filter a pivot table
    By Kingstown_Peter in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-24-2012, 06:55 AM
  4. Replies: 10
    Last Post: 02-17-2011, 09:47 AM
  5. Changing a pivot table with a cell value
    By Coldsteel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-16-2010, 04:15 AM
  6. Pivot Table Select criteria from cell contents
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2010, 05:08 PM
  7. Pivot Table refreshing by changing a cell
    By Johny1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2009, 04:22 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