I think, what I am trying to do is pretty simply. But I cant seem to get it right.
I have 2 taps In one sheet.
Sheet 1 is an Overview of Sheet 2.
In Sheet 1 I have in column A the status for each pallet. In Sheet 2, I have the overview of the content of each pallet.
Now I just want to select once, the status (if Sold or Available) in Sheet 1 and it now automatically copies the status to Sheet 2, where the criteria of the pallet name is met.
EG: P-0011 is marked as sold in Sheet 1 - In Sheet 2 all rows who contain P-0011 will automatically copy the status to the cell.
I have tried
=if('Recap Pallets'!C:C,B2,'Recap Pallets'!A:A)
But it's not working.
I have also tried
=query('Recap Pallets'!A:C,"Select A where A='Sold' or A='Available'")
but also this seems wrong, because it just copies the row, and not the content regarding to the matching criteria.
What is the mistake?
Please see here example:
SHEET
delete everything in A column and use this in A1:
={"Status"; INDEX(IFNA(VLOOKUP(B2:B, {'Recap Pallets'!C:C, 'Recap Pallets'!A:A}, 2, 0)))}
Here's a quick and dirty solution:
=iferror(INDEX('Pallets Total'!A:A,MATCH(C3,'Pallets Total'!B:B,0)),"")
There's certainly more elegant ways, but this may work for the time being.
Related
I'll do my best to explain this. So, I want to use Arrayformula to autofill column based on a condition.
=IFERROR(QUERY(ARRAYFORMULA(IF((Research!$B$1:$B$100)="Yes",REGEXEXTRACT(Research!$A$1:$A$100,".*"),)),"WHERE Col1 is not null")).
It does what it's supposed to, but the problem comes if that condition changes at any point (so it's not true anymore) the value in the cell filled with the array will get deleted but will also offset all the other rows after it (same happens if I insert new row with 'Yes' value in between other rows, in my Research sheet from where I extract my data from).
Is there any way if I need to make changes to the condition in the sheet from where I extract data > and not offset everything else in the sheet where I use the array formula? (either delete the entire row if the value doesn't meet the condition anymore, or insert new row if it meets the condition (not just replace the value in previous cell in its spot, cuz then all the other fields are mismatched). I'm a beginner with excel, I hope that makes sense. Sheet ex
Condition in Main Sheet > Result in Array sheet
(these are the ok examples)
Changed value to yes for Agency 3 > Inserted in Agency's 5 place > and offsets everything after it
Please refer to the spreadsheet for my examples.
Method A: Separate the sheets of input and output
Method B: Input on Research and output on Initiative
Method C: Use Google Apps Script to 'avoid' offset upon change of Take? value. (example is not provided)
I have a sheet where the query formula used is very simple.
Here is the test sheet
It just have to display the conetents of the second sheet in the first. Unfortunately, at some point the cell values are merged into single cells.
The example below shows till Apple1 to Apple 10 the data is merged in row 1.
I need a reason for this error and please avoid answering like, delete the row 15 of fruits tab sheet to correct.
Any cause for this is really appreciated.
Sheet2
Sheet1
QUERY has several arguments. If you don't include them, they are assumed to be defaults (with the third argument being to try to make the first row into a header). Try this instead:
=query(Fruits!A3:F,"Select *",0)
or you can leave the middle argument blank in your case:
=query(Fruits!A3:F,,0)
I have 2 google workbooks. One is a rate sheet and the other is a vendor list with pricing.
I have the vendor list with pricing workbook linked to the rate sheet workbook via importrage command. This works great and everything updates as it should until you add a new line or remove a line to the rate sheet workbook. At this point the vendor workbook does not update the reference and just still points at the same lines it was originally, now displaying the incorrect data.
How can I dynamically have the vendor list workbook notice the addition or removal of lines in the rate sheet workbook and update the importrange formula?
Can this be done?
Any help is greatly appreciated.
EDIT: I have prepared 2 sample workbooks. They are Test sheet 1 - Rates and Test Sheet 2 Lanes
I have all of our rates in the first sheet. In the second we would have vendor lanes. This sheet consists of multie tabs all with an individual lane that is linked to 1 row in the rates sheet.
In the lanes sheet I have linked the two together via importrange in cell A8. Now this works and links properly, that is until you insert a new line in the rates sheet above the one the lane is linked to and then it doesn't update but shows what the new line information is.
Is there a way to have the lanes sheet dynamically update to the next line when a new line is inserted in the rates sheet?
two sheets links are as follows:
Rates
Lanes
Solution 1 - if you need to check only one condition
To achieve desired result you have to have something like an ID for every rate. For sake of this answer (based on your example sheets) I assume that this could be an Origin City. In Test Sheet 2 I have added new sheet - SheetTest where:
First step
I am looking for the row number where desire City reside in Rates sheet (in example - its Mcclellan city). The code for that is simple:
MATCH(A2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1JD45y-0-37Kh2KsHnRAMuB0quPtMVuLKuT1qjnNcm1Q/edit","Rates!B:B"),0).
This gives me -> 10
Second step
I use this result to dynamically generate final range - "Rates!A10:X10". The final result in A8 cell is (to make it clearer, I change an address of a sheet to -othersheeturl- :
=IMPORTRANGE(
"-othersheeturl-",
"Rates!A"&
MATCH(A2,IMPORTRANGE(-othersheeturl-","Rates!B:B"),0)
&":X"&
MATCH(A2,IMPORTRANGE("-othersheeturl-","Rates!B:B"),0)
)
Working example
Warning
I see that in your original sheet you use "take" Origin City from Rates sheet, so I remove this dependency in A2 to make it an ID. I hope this solves your problem.
Solution 2 - if you need to check many conditions
An approach is the same, but tools are different. Main goal is to find a row number that meets criteria - "From City" and "To City". Then this row number will be used to concatenate desire range.
First step - some cleaning
To better manage complex formulas its a good idea to divide them into smaller pieces - like in "ordinary" programing. So, we have:
From City in A5
New Albany
To City in B5
Calgary
Rate sheet (external sheet) url in B1:
1JD45y-0-37Kh2KsHnRAMuB0quPtMVuLKuT1qjnNcm1Q
You don't have to put whole URL, only this part is needed
Formula that counts row number that we are looking for in B2
=QUERY(
{IMPORTRANGE(B1,"A1:B"),
ArrayFormula(row(INDIRECT("A1:A"&ROWS(IMPORTRANGE(B1,"A1:B")))))},
"select Col3 where Col1='"&B5&"' and Col2='"&A5&"'
limit 1")
Above code:
Build an array from Rate sheet (external) - columns A1:B and virtual index that represents rows numbers
Then, show only column nr 3 (index) where Col1 matches our "To City" and Col2 matches "From City"
At the end is a limit to only one result (in case that there are more then one maches)
Desire range in B3
="Rates!A"&B2&":X"&B2
Final formula that renders desire data from external sheet in A11
=IMPORTRANGE(B1,B3)
Working example
Final thoughts
You can either hide rows 1-3 or you can pack all above formulas into one. Its up to you. I prefer the first approach.
This solution gives you freedom with as many conditions as you want
More info would be helpful.
A couple ideas:
Using named ranges instead of a static reference. For example, if you create a named range in the rate sheet called MY_DATA that references A2!C600, you can include "MY_DATA" in your importrange in the vendor sheet. Note that you'd still need to update MY_DATA every time you add a row.
If you're importing the entire sheet, perhaps omitting the end row would work (e.g. A2!C instead of A2!C600) - note that this means you need to use filter or query in the Vendor sheet to eliminate the blank rows.
I have a 2 worksheets within a single file. Col A in each sheet has a list of websites. When I enter a new website to col A of sheet 1, I need it to compare the entry to the list on sheet 2.
If the same website is listed on sheet 2, I need the new entry to be marked in some way - red background, bolded, whatever.
What it should look like:
Sheet 1:
https://i.gyazo.com/07667520bc0f58a1dd2547405545eb5e.png
Sheet 2:
https://i.gyazo.com/a524832a9cb96e35bd2981e95e5c1edf.png
Stackoverflow is listed on sheet 2, so when it's added to sheet 1 it's marked with red.
I've been Googling and checking SO threads for about an hour, but I can't even begin to figure this out. I have very little experience with this stuff.
Any help appreciated. Thanks!
It may be possible with Format>Conditional Formatting
then set a Rule for formatting, there are many options including cell value 'equal to'
It should work.
I have a google docs sheet that has 5 sheets. The first has all of the data and the other 4 are specific only to a particular name. The header fields are name, fruit, entree, salad dressing, dessert, and day. One of the names on the sheet is Jeremy. He has 7 different records, obviously and so do the other 3 people on the sheet. What I want to be able to do is look on Jeremy's sheet and and pull the dessert (Sheet 1 Column E) for a specific day (let's say Monday currently). I'll have 7 rows, so the value needs to change, but I want to look on the Overview Sheet and find the 1 dessert that has Jeremy listed for that specific day.
For each sheet you can add a filter function starting in row two such as :
=filter(Overview!A:F,Overview!A:A="Jeremy")
you can add multiple filter flags however you like for your conditions:
=filter(Overview!A:F,Overview!A:A="Jeremy",Overview!F:F="Wednesday")
or
=filter(Overview!E:E,Overview!A:A="Jeremy",Overview!F:F="Wednesday")
or you can pull in his name and the specified columns and split:
=split(filter(Overview!A:A&","&Overview!E:E,Overview!A:A="Jeremy",Overview!F:F="Wednesday"),",")