+ Reply to Thread
Results 1 to 3 of 3

Creating Grids From A Pivot Table

  1. #1
    Registered User
    Join Date
    05-28-2021
    Location
    Perth, Australia
    MS-Off Ver
    16
    Posts
    2

    Creating Grids From A Pivot Table

    I'm trying to create a spreadsheet that shows the distance between locations with common items.

    I'm creating a pivot table showing locations by item, but I need to duplicate (transpose) the row labels as column headers to create a grid to put my distance formulas in.

    I've manually entered some sample headers for example.

    Thanks in advance, guru's!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-18-2021
    Location
    London, Ontario
    MS-Off Ver
    365
    Posts
    115

    Re: Creating Grids From A Pivot Table

    in B5:

    =SQRT((VLOOKUP($A5,Loc!$A:$B,2,0)-VLOOKUP(Distance!B$4,Loc!$A:$B,2,0))^2 + (VLOOKUP($A5,Loc!$A:$C,3,0)-VLOOKUP(B$4,Loc!$A:$C,3,0))^2)

    then drag/copy it into the rest of the empty cells

  3. #3
    Registered User
    Join Date
    05-28-2021
    Location
    Perth, Australia
    MS-Off Ver
    16
    Posts
    2

    Re: Creating Grids From A Pivot Table

    Quote Originally Posted by dohvakin123 View Post
    in B5:

    =SQRT((VLOOKUP($A5,Loc!$A:$B,2,0)-VLOOKUP(Distance!B$4,Loc!$A:$B,2,0))^2 + (VLOOKUP($A5,Loc!$A:$C,3,0)-VLOOKUP(B$4,Loc!$A:$C,3,0))^2)

    then drag/copy it into the rest of the empty cells
    Sorry, I probably should have said I'm looking for a macro that will do this when I click a "refresh" button I put in that will also refresh the pivot table (I can handle that bit).
    Last edited by YankDownUnder; 05-28-2021 at 07:02 PM.

+ 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. [SOLVED] Power pivot or pivot table for connecting data and creating calculated fields
    By jaryszek in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 02-06-2019, 08:31 AM
  2. Creating a Pivot Table from Power Pivot Data Model?
    By nobodyukno in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2017, 12:02 PM
  3. [SOLVED] Creating a formula in a pivot table while using another calculated item in the pivot
    By mvhs1073933 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-10-2015, 12:44 PM
  4. Replies: 1
    Last Post: 07-29-2015, 05:19 PM
  5. Replies: 1
    Last Post: 07-29-2015, 05:15 PM
  6. Excel 2007 : Creating a Map with Grids Using Scatter Plots
    By AlexTaldren in forum Excel General
    Replies: 0
    Last Post: 03-01-2011, 05:55 PM
  7. [SOLVED] Basic question: Grids or no grids
    By rs in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 04:35 AM

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