+ Reply to Thread
Results 1 to 3 of 3

Editing a formula that references a pivot to drag it down

  1. #1
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Editing a formula that references a pivot to drag it down

    Hi there

    I have a pivot table with people's user ID, some summary data and two total columns at the end.
    I have inserted a column at the beginning in Column A where i'm dividing one total by the other, to get a percentage.

    I want the formula to reference the pivot table, because next month when I refresh the pivot, the total columns will have moved along. So I can't use =G7/F7 for example

    However, the GETPIVOT formula is looking specifically the the user ID. See below example "N803057" is the user ID.

    So when I drag the formula down (there are 112 users), it's simply dragging down the same user ID therefore dividing the same two cells. The only way I can change it is to manually enter the sum for all 112 rows (yawn) or manually change the user ID within the formula for all 112 rows (double yawn).

    I tried changing the "N803057" to "=B7" which is the cell the user ID is in, but it didn't like that one little bit.

    Does anyone have a suggestion??

    PHP Code: 
    =GETPIVOTDATA("Structure & Grammar Fail",$B$8,"User ID","N803057")/GETPIVOTDATA("Total Audits",$B$8,"User ID","N803057"

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: Editing a formula that references a pivot to drag it down

    Just change
    "N803057"
    to
    B7
    (no quotes or equals sign)

  3. #3
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Editing a formula that references a pivot to drag it down

    Thanks Stormin' this worked and saved me loads of time!

    Jemma :-)

+ 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. Drag all cell references when editing formula
    By forfriends in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-01-2019, 12:59 PM
  2. Drag formula down without changing one of the references
    By twisted31 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2013, 07:31 PM
  3. [SOLVED] Drag a formula that references a cell from another Sheet (Skipping a cell incrementing 1)
    By DixieDiver in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-05-2013, 06:25 PM
  4. Drag formula down and skip 2 cell references instead of 1 cell reference
    By cat2005 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-09-2013, 11:45 AM
  5. [SOLVED] Change references as you drag formula down
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2013, 11:37 PM
  6. Drag Formula but Maintain References
    By kaiouji in forum Excel General
    Replies: 2
    Last Post: 01-02-2011, 06:19 AM
  7. Editing a formula to make references absolute
    By okie607 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2007, 09:14 PM
  8. Limit of color-coded cell references editing a formula.
    By u2sparky in forum Excel General
    Replies: 1
    Last Post: 09-09-2005, 03:05 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