summary of several google sheets in one another sheet - google-sheets-query

Hi have several sheet in a single google sheet for each of the months with some data. I want t have a summary sheet (annual) with some info I am after.
For example, in a sheet called Jan I have the following
Cell A B C
Date Cat Amount
05/01/16 Shop 100
10/01/16 Other 50
In another sheet (called Feb) in the same file, I have
Cell A B C
Date Cat Amount
07/02/16 Shop 200
11/02/16 Other 500
Now, I want to have another sheet, preferably in the same file, the following.(which is accumulation of all data in the two sheets above for just one category)
05/01/2017 Shop 100
07/02/16 Shop 200
my question is what is the formulae I good use to get above (I do not want to copy paste)

=query({Jan!A:F;Feb!A:F},"select *")
Try changing A to *. You could also try to use Col1 Col2 instead of A or B. I think it would work.

Try the below in sheet 3 in A1
={IMPORTRANGE("Sheet1!A1:D");IMPORTRANGE("Sheet2!A2:D")}
It will combine sheet1 data and sheet2 data in sheet3

Related

G-Sheet Function support to Match Date, name and Other Point

Its Pleasurer if you can support me to write function to preform google sheet.
https://docs.google.com/spreadsheets/d/1uwbFcdkN3VHkzpHyx73LSTbPwltZrH5R_n7jsLe-iuU/edit?usp=sharing
Solution starting from cell D7 (D7:AH14)
Need to Factors
For Sheet Working Indika -
Date row 6,
Facility Column C
Plan or Actual - Cell F3 (F3:J3)
Need to Capture Information from Sheet Facility Schedule
Date - Row 2
Facility Column B
Plan or Actual - Column C
Best regard
Indika
let me know if this is useful:
In D7 use this formula and copy then to the entire range:
=index('Facility Schedule'!$1:$962,match($C7,'Facility Schedule'!$B$1:$B$18,0)+if($F$3="Actual",1,0),match(D$6,'Facility Schedule'!$2:$2,0))
Here I upload a picture of your own spreadsheet with Plan and Actual displayed:
Look how Facility A changes (which is the only one different by now)

Copy cells from exported sheet to MainSheet filtered by Dates with a one click-button

I am very new to Google sheets and need help :-) Thnx in advance. :-)
Info: Google Table with 2 sheets
Sheet1: 'BackBuffer':
header 1
header 2
-
-
22.11.2022
23.11.2022
Sheet2: 'Export':
MSN-No
Quality Date
Handover Date
12345
25.11.2022
23.11.2022
67890
23.11.2022
27.11.2022
11123
23.11.2022
27.11.2022
My Problem to solve:
I want to programm a button which picks the MSN Number from Sheet2 and copies it to the corresponding Cell above the matching Date in Sheet1. The Quality Dates should be copied in nonbold and the Handover Dates in bold. This means in cells of Sheet1 Row1 there can be multiple MSN Numbers which i want to be stacked on top of each other or lined up with a comma. MSN-No should not be just replaced (Maybe it is also possible to sort the MSNs and display the bold MSNs below the not bold ones).
For example one Cell in SHeet1 Row1 can look like this:
header 1
header 2
-
67890, 11123, 12345
22.11.2022
23.11.2022
Also the Dates of MSNs in Sheet2 'Export' can change from week to weeek. So when i load in the new Data and click the button, i want the MSN-Numbers in Sheet1 to be updated to the correct Date in Row1 and delete the old obsolete Date which doesnt match to the new Data in Sheet2.
I hope you can understand my problem and can help me out. Many many thanks in Advance.
BR Musti
I am unfortunately a noob in google sheets programming.

How to copy new data in Googlesheet in the same sequence

I have two googlesheets, In one google sheet (let's call it A) I am uploading the data using R cron and in another sheet (let's call it B) I'm importing the data from A using importrange formula.
In B, I am importing the data in sheet1 but I want to automatically copy the data from Sheet1 in Sheet2 whenever the Sheet1 gets updated. Also, I want to ensure that the new updated data gets append in Sheet2 without changing the sequence of previous records.
For Example,
If in B, Sheet1 has 5 records as mentioned below then copy it in new tab as Sheet2 and if in Sheet1 new data gets upload (suppose now there are 10 records in sheet1) then new uploaded five records should get appended in Sheet2 without changing the sequence and anything updated against records 1-5.
ID Name Date
1 ABC 2020-01-01
2 ART 2020-01-02
3 XUZ 2020-01-03
4 AFI 2020-01-03
5 SSR 2020-01-02
Sheet - https://docs.google.com/spreadsheets/d/1pY5dvlrEf39ul7sqmzyBI1Hwoplh9_7eNGveeVfUQZA/edit?usp=sharing
I've added a tab, Sheet2-GK, to your sheet. This demonstrates using the ID value as an index in Sheet2, to allow manual data to be entered alongside dynamic data, which is updated from Sheet1 by formula.
The key formula, in Sheet2!B2, would be:
=ARRAYFORMULA(VLOOKUP(A2:A6,Sheet1!A$1:C,{2,3},0))
Without more sample data, I can't test the results, but let me know if this works for you, as you add fresh data to Sheet1.

Google sheets Script with 2 conditions to move row to new sheet

I am trying to figure a google sheets problem. I have a master sheet (which is a form response sheet) And I need to copy data to indivdual contractors pages (there are 22 or more individual contractors) Line 22 or next available after line 22) IF Move is selected in F column. I could do this with a query Importrange. The problem is I want this to stay on the sheet it is moved to. So not copied actually moved from the master sheet to the contractor sheet. When the contractors name is selected AND Move is selected in the F column. I do not know how to do that. But I am guessing since there are so many contractors I will need something on the contractors sheet or? a single script for each contractor? or I am over thinking this.
Master Sheet:
https://docs.google.com/spreadsheets/d/1PqXc1XDyhg3nGSia4klxsuoKQtmPcBiDBrgJQr5uwyE/edit?usp=sharing
Contractor Page
https://docs.google.com/spreadsheets/d/1k3as6E30cytNfkzHC55clEH5Jik90aIXOrkgsjRXgEs/edit?usp=sharing
I have tried:
=QUERY(IMPORTRANGE("ID HERE","IN Order!A1:B"),"SELECT * WHERE Col1 = 'Grace'")

Merging Google sheets based on a common column

I'm looking for a Google Apps Script to merge data in two sheets based on one common column (email) in Google Sheets. Example:
Sheet 1
Name Email Address
A a#abc.com abc
B b#dgh.com ghc
C f#abc.com sdf
Sheet 2
Email Quantity Size
b#dgh.com 3 5
I'm looking for (emails in sheet 2 are a subset of emails in sheet 1):
Sheet 3 (or new spreadsheet)
Email Name Address Quantity Size
b#dgh.com B ghc 3 5
I've looked into VLOOKUP but I couldn't figure out how to use it to merge 2 sheets very large in size.
=ARRAYFORMULA ({Sheet2!A2:A3,VLOOKUP(Sheet2!A2:A3,{Sheet1!B2:C,Sheet1!A2:A},{3,2},0),Sheet2!B2:B3, Sheet2!C2:C3})