How to incorporate data from one pivot table into another pivot table - excel-2010

When I tried to get the data from one pivot table that I had created into another pivot table a message appeared saying my reference is invalid. Please help
I googled the problem and there were several suggestions. I tried a few which I thought I have understood but the same message kept on appearing. One suggested method was to write the following in the first left hand cell of the source pivot table:
OFFSET(Sheet1!$A$3,0,0 COUNTA(Sheet1!$A:$A)-1,COUNTA(Sheet1!$3:$3)). Same invalid reference message appeared and it further added that I should select at least 2 rows as reference. Please help

Related

#DIV error in Google Sheet related to Pivot table

I am trying to fix an error in googlesheet especially related to Pivot table. Especially when I make extra calculations from the Pivot table I get the #Div error when I filter on basis of few parameters. But if I make it without any filters I do get proper results.
I am looking for a solution where the calculations can take particular cell values with respect to cell column name only. So I can make a better calculations without any type of filters or shiftings. This is a dynamic case.
Can anyone suggest any better answer?
https://docs.google.com/spreadsheets/d/1h1TdFLj3JyK6-oxOOswuWDx4YixzG51H2rWgK0BbD2s/edit#gid=925622507
#DIV error is the result of trying to divide an empty cell with another empty cell
it's a standard issue equivalent to dividing 0 with 0. such math is not logical and google sheets will flag it as an error to alert you.
however, the true culprit is that #REF error:
filters of pivot table cant produce/create additional columns. pivot table will just roll out data wherever it needs. in your scenario pivot table attempts to roll out date into 3 columns but only two columns there are empty. 3rd column (C) is filled with data/formulae and pivot table cannot move data or delete data so if there is no space to roll out it will #REF error to alert you that something went wrong.
possible solution: move C, D columns to the right. if you are not able to predict how many columns will filter of pivot data roll out into then have som extra space between and for the visuals you can hide those empty columns

How do you alphabetize based on dates, and put most recent at the top?

Sample Sheet
How do you reference the Data Import tab and display everything in order of most recent date at the top within the Worksheet, and alphabetize the Vendor Name (column C - Worksheet)?
I have tried the SORT function but little to no luck as it just alphabetized everything in order even when referencing the Import Date from the Data Import.
For visual reference
FIGURE 1:
FIGURE 2: Expected Outcome
To further elaborate:
This one might be tricky, but Column B will be hyperlinks and also needs to be in the correct order that also belongs to its proper data brethren. This is what I currently have and just references everything in order of new data incoming.
(=ARRAYFORMULA(IF('Data Import' !A:A<>"", HYPERLINK("Some_Website" & 'Data Import'!A4:A&, 'Data Import'!A3:A), ""))
This one I'm guessing will not only need to reference the date, but the naming order as well.
Okay. So this was resolved with the query function.
Source info: https://support.google.com/docs/answer/3093343?hl=en
The sample sheet will remain open to those who are in need of knowing how to use it and can view how it was used.
Doing this resulted in the expected outcome. However, there is an issue.
If you have other columns you intend to put manual data entry, this entry data will remain stagnant and will not move.
Only the columns with the query formula will be dynamic and will keep getting pushed downward while your stagnant entries will remain right where they are.
I'm currently looking into Assigned Index Numbers to resolved this.
Solving the Dynamic / Static Data Alignment challenge using Alignment Index Numbers

Google Sheets Double Lookup

I'm trying to figure out a way to lookup specific information from different tables. I have one table with teams and the points they have scored depending on the Week.
A second table with the Schedule and Matchups
I'm trying to cross reference the two tables so I can enter information in a third table.
I first was trying double VLOOKUP, but I'm not sure if that is possible as I wasn't having any success. I'm able to get an Array that is close to the information I need so I can perform the VLOOKUP, but I'm unable to perform the second VLOOKUP to get the score of TEAM B.
I was able to solve this issue with a helper column to combine the information, but I'm trying to avoid that.
Demo Sheet: https://docs.google.com/spreadsheets/d/18LKD_IwfulaSSAdHJ6qtISCF5kY4IgD32lJzZqKfqfY/edit?usp=sharing
This formula will work in just the top left corner of your "opposing" results table as demonstrated in the new tab called MK.Help.
=ARRAYFORMULA(HLOOKUP(VLOOKUP(B18:B19&C17:F17,{B11:B14&D11:D14,E11:E14;B11:B14&E11:E14,D11:D14},2,0),C3:F5,SEQUENCE(ROWS(B18:B19),1,2),0))
You could try to put this formula on cell C18 and drag to down and right:
=ArrayFormula(VLOOKUP($B18,$B$4:$F$5,MATCH(INDIRECT(ADDRESS(MAX(IF($B18=$B$11:$B$14,(C$17=$D$11:$E$14)*ROW($D$11:$D$14),"")),IF(MAX(IF($B18=$B$11:$B$14,(C$17=$D$11:$E$14)*COLUMN($D$10:$E$10),""))=4,5,4))),$C$3:$F$3,0)+1,0))
I have already put the answer on your sample sheet.

VLOOKUP keeps giving #N/A

I am using VLOOKUP to do some looking up and I have all the values right but it keeps giving me #N/A. Here is what I am doing:
I have a data in 2 columns, Column A has names and column B has ID. I have copy and pasted the some details further down the columns and that is what I am searching. It keeps giving me #N/A when the data it is search is the same data I pasted.
The formula I am using is as follows:
VLOOKUP(B10,A30:B46,1,FALSE)
Any ideas why this is doing it?
When I use TRUE instead it gives me a really wrong match. nowhere close
I found the answer therefore just updating it here.
You can get around the error by using INDEX and MATCH functions. Especially if it includes massive tables and multiple sheets.
I used the following to solve my issue and hope it helps others too.
=INDEX('Users activity volumes'!A7:A367,MATCH('MH Users'!B8,'Users activity volumes'!B7:B367,0))

"Formula parse error" when querying different document

I am attempting to have a cell in Sheet B display data from a cell in External / Remote Sheet A, but it results in "Formula parse error." (ETA detail to aid searches: displaying data in one Google Spreadsheet from a different Google Sheet.)
My query:
=Query(SheetA,sheet1!A:I,"select I WHERE A=3")
I've also tried it this way:
=Query(SheetA,sheet1!$A:$I,"select I WHERE A=3",-1)
This answer courtesy of #AdamL (thank you, sir!). This was his answer that I found does work very well. When QUERY isn't directly referencing a range in the same spreadsheet, use Colx notation rather than column letters:
=QUERY(importrange("NameofGoogleSheet","SheetTabName!A:Z"),"select Col9 where Col1=3")
If referencing dynamically, use something like:
=QUERY(importrange("NameofGoogleSheet","SheetTabName!A:Z"),"select Col9 where Col1="&D19)
It is also important to note that you must first connect the sheets to each other. Until this is done, you will get column errors, etc. This is done by selecting a cell of the sheet that will display the data, and putting in an IMPORTRANGE on it, which opens a dialog for connecting them. More info: https://support.google.com/docs/answer/3093340?hl=en
I also realized (duh) that I was being stupid to have two separate files for each. I only need two sheets within the same document; 1 to serve as the database and the other to display the formatted data. I am using this for a pedigree application.
I had a Formula Parse Error problem. My mistake was that I had two brackets on my formula. I deleted one set, and it was fixed. I am not sure why, but it worked for me.
EXAMPLE:
=SUM((AB450,AB432,AB422,AB415,AB405)) - THIS GAVE ME A FORMULA PARSE ERROR.
=SUM(AB450,AB432,AB422,AB415,AB405) - THIS IS THE ONE THAT WORKED

Resources