PS: Using Google Sheets
I have a Google Sheet that is populated by Google forms, and I'm looking to use this data to make a new sheet with the values when the column type is a particular value.
For ex, here are a few rows of my data:
Name Date Type Reference No
John 10/11/2022 SSS 551200550
Peter 10/11/2022 Transfer 510568810
John 10/11/2022 SSS 5105688415
Peter 10/11/2022 Other 510568851
Now, I have 1000s of rows, and I want to make a new sheet for each 'type' (In the example it's SSS and Transfer, but I have a few different types)
Ex 1: For SSS, here is the sheet, and accordingly for other values in 'Type', it should go into another sheet
Name Date Type Reference No
John 10/11/2022 SSS 551200550
John 10/11/2022 SSS 5105688415
Essentially, I want to pull data from the master data and want to create a new sheet for each different type. I'm not sure if I'm supposed to be using =ARRAYFORMULA(Sheet!A:A, IF(...)) or if I'm meant to use it with VLOOKUP.
Any ideas? Thanks for any help!
Tried with =ARRAYFORMULA(Sheet!A:A, IF(..)) but didn't get anywhere, looking for any help
Related
it's nice to be here and join this forum.
I have an issue which I would like to solve.
I have a database, where I would like to input multiple locations, and then, to have displayed the IDs and region of multiple clients next to it.
Say, for example, that I have a sheet with the info of clients.
Searcher
ClientID
City
Region
Caracas
01
Berlin
Europe
Berlin
02
Monaco
Europe
03
Caracas
LatAm
I would like to copy and paste the names of my cities in the cells under the Searcher column and that only the cities displayed there are shown under the results.
In the above example, I would like my sheet to show both the info of Client #1 and Client #3.
The closest which I have made it to the solution of this problem can be seen in this spreadsheet.
Database Link
But sadly, it only works with one value. In the sheet I shared, I would like to have the info show the same fiels for both "Upper Marlboro" and "Darlington".
The sheet above can be edited to test this.
Resume:
Is there a way to solve this issue a create a multiple value searching machine in Google Sheets?
I have tried before with the FILTER and SEARCH formulas, like this:
=FILTER($P$3:$Z,SEARCH(B4,$Y$3:$Y))
And with Sheet Queries, like this:
=QUERY(CityDB,"SELECT * WHERE J = 'Fairfax'")
But sadly, it only has allowed me to search for just one value.
use:
=FILTER(H3:J, REGEXMATCH(I3:I, TEXTJOIN("|", 1, B4:B)))
or:
=QUERY(H3:J, "where I matches '"&TEXTJOIN("|", 1, B4:B)&"'", )
following problem:
I have a column with wrong Ids
Now I want to watch those wrong Ids with another sheet where I have same Ids and the correct link I want to match with those Ids:
So what I same up with is the following ->
=IFERROR(VLOOKUP(A2,'extract base'"B:F),"")"))
But obviously doesn't work haha. So basically very easy -> if the Id from Sheet 1 matches with the Id from Sheet two put in the second column (in my example custom_label) the value of sheet two column 2
Any help is appreciated, thank you so much!
Your current VLOOKUP formula is not structured correctly at all, and your sheet reference 'extract base'"B:F is also not written correctly. Have you read the basic documentation on VLOOKUP usage and syntax?
Delete B2:B entirely.
Then place the following in B2:
=ArrayFormula(IF(A2:A="",,IFERROR(VLOOKUP(A2:A,'extract base'!B:F,5,FALSE))))
This formula should provide results, if any, for all rows (assuming that your second sheet is, in fact, called exactly extract base).
I have separate two sheets (let's call them Sheet AA and Sheet BB).
Sheet AA is for a particular type of items whereas Sheet BB is an inventory of everything. The items on Sheet AA have the same ID as they do on Sheet BB.
I'm trying to insert the total revenue column from Sheet BB into Sheet AA so that the new revenue column will update alongside Sheet BB as revenues change, matching by the item ID.
I'm having trouble with writing the matching part, and also confused as to whether I should use VLOOKUP or QUERY, etc with IMPORTRANGE after looking at other guides. Thank you!
Are these sheets in the same Google Spreadsheet or are they in separate Spreadsheets? If both sheets are in the same Spreadsheet file you could probably do this with a sumif formula. For example, if the id is in column A of AA and quantity is in column B of AA the formula in BB to match column A in BB would be =sumif(AA!A$2:A24,A2,AA!B$2:B)
Figured it out with: =VLOOKUP(cell# I want to match with, IMPORTRANGE("URL","SheetName",Cells"), column I wanted the data from, FALSE)
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!!
I have been working on how I budget and keep track of my finances. In the process, I put together this Google Sheet which I am happy to share a dummy version of (includes dummy data).
I use a Google Form to input new entries which are recorded in the 'Log' page.
From here, I use a few SUMIFS to pull in the totals of any given income/expense category based on the category name (referenced in the cell adjacent), the month (B3), and the year (C3).
What I now want to do is add a table (currently in columns O:Q) that calls in itemised log records based on the category selected (O2) and the month and the year. On the reference sheet these are cells (B3) and (C3) respectively and in the log, these are columns (F) and (G).
I've gotten as far as using an INDEX / SMALL array formula combination to pull in all spending as per the category selected in (O2), but what I cannot seem to figure out is how to then restrict results to only those that also match the month and year. I've tried using a MATCH formula but am unsure how to append this within the current formula string, if it is even possible?
Once working, this would (for example) mean that only rows 4 and 5 in columns O, P, and Q would be populated as these are the records for the selected month, June 2016.
Is what I want to do possible through a more complex formula? Can anybody help?
Thank you in advance.
Link to my Google Sheet: https://docs.google.com/spreadsheets/d/1_GGgFCfMtB5ROkTmpx4Fn4nZZbBIvBa4vpOwqswH5E0/edit?usp=sharing
The following should do the trick.
Delete everything in O4:Q14
In cell O4, write: =FILTER(Log!H2:H, Log!B2:B=O$2, Log!G2:G=C$3, Log!F2:F=B$3)
In cell P4, write: =FILTER(Log!E2:E, Log!B2:B=O$2, Log!G2:G=C$3, Log!F2:F=B$3)
In cell Q4, write: =FILTER(Log!D2:D, Log!B2:B=O$2, Log!G2:G=C$3, Log!F2:F=B$3)
(By the way, you can generate columns F, G and maybe E from column A in the Logs sheet. For example, just remove the data that is already in column G and in G2 write: =ARRAYFORMULA(YEAR(A2:A))
Link to spreadsheet with fixes:
https://docs.google.com/spreadsheets/d/1iIplXRa28L7FdmqI91RbjApO3g-GU5uk6rTQLqi7vFw/edit#gid=0