copy-paste between Google sheets - google-sheets

I'm looking for a way to copy and paste data between 2 Google Sheets spreadsheets: in spreadsheet 1 I have a shared planner of 10 people, where each marks in his sheet personal commitments divided between morning and afternoon for each day. There are also two spaces M and P where everyone manually marks commitments with me.
In spreadsheet 2 I have the small jobs assigned to each of them with a summary line that tells me if they are free (they can do up to 3 jobs M and P).
I would like to copy the data in this row in the M and P columns in the sheet of each of them.

If you are looking to copy and paste data, you could use CTRL + C CTRL + V as suggested by #Jeremy Thille.
If you want to reference data from another sheet, you can do it this way : =NameOfYourSheet!A1, or ='Name Of Your Sheet'!A1 if the name contains spaces.
If the data is on a different spreadsheet, you have to use IMPORTRANGE function. Take a look at https://support.google.com/docs/answer/3093340.
Not sure about the javascript tag, google-sheets would have been more appropriate.

I was not able to explain it and so I send you an image of files.
I have to copy the row "Peter" in Sheet 2 and paste in sheet 1 following the date and sharing of M (morning) and P (afternoon). In suggested way it is too long, and so I thought to GS.
In image2 you find the result I would like to have
Meanwhile I find a formula that I put in Peter tab, cell marked M and P (1/10) and works very well
in B4 =transpose(query({Planning!A3:DT3};"Select "&ArrayFormula(join(", ";text(query(transpose({column(Planning!C3:BL3);mod(column(Planning!C3:BL3)-column(Planning!C3);2)});"Select Col1 where Col2=0");"Col0")))))
in C4 =transpose(query({Planning!A3:DT3};"Select "&ArrayFormula(join(", ";text(query(transpose({column(Planning!D3:BL3);mod(column(Planning!D3:BL3)-column(Planning!D3);2)});"Select Col1 where Col2=0");"Col0")))))
I have 25 people tabs with six month planning. At the end ok week I delete the related data.
How can I make automatic the work?

Meanwhile I find a formula that I put in Peter tab, cell marked M and P (1/10) and works very well in B4 =transpose(query({Planning!A3:DT3};"Select "&ArrayFormula(join(", ";text(query(transpose({column(Planning!C3:BL3);mod(column(Planning!C3:BL3)-column(Planning!C3);2)});"Select Col1 where Col2=0");"Col0")))))
in C4 =transpose(query({Planning!A3:DT3};"Select "&ArrayFormula(join(", ";text(query(transpose({column(Planning!D3:BL3);mod(column(Planning!D3:BL3)-column(Planning!D3);2)});"Select Col1 where Col2=0");"Col0")))))
I have 25 people tabs with six month planning. At the end ok week I delete the related data. How can I make automatic the work?

Related

Spreadsheet, result of multiple connected formulas depending on value from list

A little bit frustrating as I knew how to do it years ago and right now I can't event ask Google accurate question to find the answer so I'm comming here :)
The sample spreadsheet will be almost self explanatory:
https://ethercalc.net/onpoo16pjeld
Extremely simplified version would be:
A | B
1 | input: |100
2 | formula1 |=B1 * 1.5
3 | formula2 |=B2 + 20
4 | 90 |=result of B3 when B1 = A4
5 | 150 |=result of B3 when B1 = A5
6 | 200 |=result of B3 when B1 = A6
I need result of last formula in the chain basing on different initial values.
I'll appreciate Google Sheet formulas, thank you.
My interpretation of the question is that you are asking for something like Excel's 'Data Tables' function, where (given some sort of mathematical model where the logic is chained over multiple cells from 1 or 2 input cell(s) each containing a single value into one output cell) the user can define the input and output cells and then create a table where Excel feeds multiple values into the input cell(s) and records the output value for each one according to the model. Google Sheets doesn't natively support this; the add-on below claims to replicate the Data Table functionality (https://workspace.google.com/marketplace/app/whatif/430660745752) but I have no experience with it. The 'best' option is still probably to condense all the logic into one arrayformula as per Tedinoz's answer - if there's a concern that this will make the model more difficult to understand because the individual steps are no longer spread out over multiple cells then it should be possible to use LAMBDAs to label all the steps to make the arrayformula easier to follow.
This formula assumes that the value in Cell B2 = Cell B1 x 120%
Enter this formula in cell F2:
=arrayformula(((E2:E7+(E2:E7*2/5))*1.15)+ (IF((E2:E7*2/5)>150, 50, 80)))
Output

Matching Columns From Different sheets

There are many similar questions on here but I can not find the answer I am after.
I am working in Google Sheets and need to write a conditional formatting equation that will highlight the B:C columns if they match an entry on the second sheet in the B:C columns. I do not know any search criteria past that which is where I keep running into an error. All the other questions here know what they are searching for. My work is fluid and new entries come in that may match an old one and I need to know that!
I use this formula on the first sheet to match entries specifically on the first sheet,
=COUNTIF(ARRAYFORMULA($B$3:$B$389&$C$3:$C$389),$B2&$C2)>1
This formula works great. If Lexington, SC is in row 2 and Lexington, SC is added again later in row 100, BAM they both light up red. Love that. The second equation I need is not so simple.
my data is:
SHEET 1 - Column B and Column C
County
State
Lexington
SC
Douglas
KS
Chase
KS
Clay
OH
Greenwood
NY
SHEET 2 - Column B and Column C
County
State
Saratoga
NY
Douglas
KS
Chase
KS
Clay
OH
Greenwood
SC
In this example above, I need the new formula to highlight Douglas KS, Chase KS, Clay OH on sheet one, because these three counties exists on Sheet Two.
I have tried MATCH, INDEX, VLOOKUP, etc. I keep running into an issue when I want TWO columns to be compared to TWO columns. It needs to be county name AND state.
Thank you to the community for any help you can give. I will provide more information if it is needed! I think this sums up my issue though.
QUERY ATTEMPTS
=COUNTIF(ARRAYFORMULA($B$2:$B$20&$C$2:$C$20),$B2&$C2)>1
=COUNTIF(ARRAYFORMULA('Sheet 2'!$B$2:$B$20&$C$2:$C$20),$B2&$C2)>1
=COUNTIF(ARRAYFORMULA(indirect("Sheet1!$B$2:$B$C$2:$C"),indirect("Sheet2!$B2:$B&$C2:$C")))>1
=ARRAYFORMULA(IFERROR(VLOOKUP(B2:C,"Sheet 2!$B2:$C",2, FALSE),""))
=ARRAYFORMULA(INDEX(B2:B19, MATCH(1, FIND(E2, C2:C19)), 0))
=ARRAYFORMULA(INDEX(B2:C,MATCH(indirect("Sheet 2!$B2:$C"),0)))
=MATCH($B2&$C2,indirect('Sheet 2'!$B2:$B&'Sheet 2'!$C2:$C"),0)
=MATCH($B2,indirect("Sheet 2!$B2:$C"),0)
=MATCH("Sheet 1!$B2&$C2",indirect("Sheet 2!$B2:$C"),0)
=MATCH("Sheet 1!$B:$C"),indirect("Sheet 2!$B:$C"),0)
=MATCH((B2&C2),indirect("Sheet 2!(B2&C2)"),0)
=INDEX($B2:$C2,MATCH($B2&$C2,indirect("Sheet 2!$B2:$C"),0)
=INDEX(B:C,MATCH($B2&$C2,indirect("Sheet 2!$B2:$C"),0)
=INDEX(B2:C710,MATCH(0,(B:C="Sheet 2!$B:$C"),0))
The only query I have gotten to work only works on the B column
=match($B2,indirect("Ready to Start!$B2:$B"),0)
in conditional formatting (and data validation) whenever you want to refer to another sheet, that sheet's range needs to be INDIRECTed. if you got a joint range (like you do) both of them need to be wrapped in INDIRECT
try:
=COUNTIF(ARRAYFORMULA($B$3:$B$389&$C$3:$C$389),
INDIRECT("Sheet 2!B2")&INDIRECT("Sheet 2!C2"))>1
or:
=COUNTIF(ARRAYFORMULA(INDIRECT("Sheet 2!B3:B389")&INDIRECT("Sheet 2!C3:C389")),
$B2&$C2)>1
but note that this will work only if let's say B4&C4 on BOTH sheets are the same.
if one sheet compared to other has different sorting of the same values you will need a completely different formula...
if your sheets are named exactly:
Sheet 1
Sheet 2
try this in Sheet 1:
=($A2<>"")*REGEXMATCH($A2&$B2, TEXTJOIN("|", 1,
INDIRECT("Sheet 2!A2:A")&INDIRECT("Sheet 2!B2:B")))

Fetch Row of Value From Other Spreadsheet Google Sheets

I would like to access data from one Google Spreadsheet on another using strictly formulas.
Currently, I am able to import data using the =IMPORTRANGE(), but need to take this a couple steps further.
The data that I have looks like this:
Spreadsheet 1: Each sheet is for a different day, and has people and the number of fruits they pick from a farm (this is example data). However, the people are not necessarily organized exactly the same way on each day.
Spreadsheet 2: Each sheet is organized by person. Row A has the day (which will be used to lookup from the other spreadsheet), and a function exists in the second spreadsheet to find the persons name (=sheetName()).
What I have so far is [for Spreadsheet 2]:
=IMPORTRANGE(Master!A1, A2 & "!B2")
Where Master!A1 refers to the link of the other spreadsheet, A2 refers to the Day1. However, the part I am looking to replace is the 2 in the B2 to find the row of the person's name in the sheet Day1 from the first spreadsheet.
I feel like I have to do something like this:
=IMPORTRANGE(Master!A1, A2 & "!B" & MATCH(IMPORTRANGE(Master!A1,A2 & "!B1:B100"),sheetName(),0))
, but this gives me the error that it "Did not find value 'Apples' in match evaluation"
Here is the example folder with the two spreadsheets.
https://drive.google.com/drive/folders/0B8lJN2vmKeTBV1JYR2ZoZlVfQUU
All help is appreciated!
I can't find the sample data that you attached but here's what you need to do.
1. Link of the other spreadsheet
2. Name of the sheet to import from
3. =importrange(link,sheet!A:D) [for the sake of an example]
4. =query(importrange(link, sheet!A:D),"select * where Col1 = 'Person's_Name' ",1)
Share a sheet if you are not able to put it together on your data. Cheers!!

List records from 1 Google sheet into another google sheet based upon criteria

Let me start by saying this, I have very minimal Excel knowledge. If my question seems not proper for stack overflow, please guide me where else to look (or which terms to use to google).
I have two sheets. I want to access Sheet B and through columns A1:A32 per se. If Cell A1 contains 'yes', then I want to paste A1, B1, C1, D1 into Sheet A. So basically, if 16 cells out of the 32 in column A of Sheet B have 'yes', then there will be 16 records in Sheet A.
I don't know where to even begin to do this. I've googled a bit and stumbled across VLookup, but not 100% sure how to apply it.
EDIT:
Sheet A - Empty
Sheet B -
Columns: istrue,Name,X,Y
Do either of these two formulae work as you want:
=FILTER(Sheet2!A:D,Sheet2!A:A="yes")
=QUERY(Sheet2!A:D,"where A = 'yes'") (note that the 'yes' is case-sensitive)

Internal hyperlink to "Jump to 'Today'"

I have a sheet that was in Excel, but is now in Google Sheets. It had a HYPERLINK formula that would jump to the row with today's date in Column B (handy for daily logging of information). The formula was:
=HYPERLINK("#A"&MATCH("TODAY",A3:A629,0)+3&":A"&MATCH("TODAY",A3:A629,0)+3,"Jump to today")
It worked by looking for the cell in Column A containing TODAY, which is driven by an IF formula based on the date in column B. That HYPERLINK functionality doesn't work in Google Sheets.
Is there a way to fix it, or another way around it?
Please try:
=HYPERLINK("l i n k&range=B"&MATCH("TODAY",A1:A629,0),"Jump to today")
where l i n k is the full URL. Be careful with the quotes.

Resources