Alphabetizing data from the filter function [closed] - google-sheets

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have data from multiple tabs in Google Sheets that I am combining into one master tab. I would then like the data on the master tab to be alphabetized based on the last name in one column automatically if more information is added. Here is the formula I used to combine the multiple tabs onto the master tab:
={filter(tab1!A5:Z, tab1!B5:B<>"");FILTER(tab2!A5:Z, tab2!B5:B<>""); FILTER(tab3!A5:Z, tab3!B5:B<>""); FILTER(tab4!A5:Z, tab4!B5:B<>"");FILTER(tab5!A5:Z, tab5!B5:B<>""); FILTER(tab6!A5:Z, tab6!B5:B<>"")}
I have not been able to find anything that would work when I google "how to sort data in abc order from a filter function google sheets".

You can use SORT() and there's even an example in its documentation that applies to your situation:
SORT({1, 2; 3, 4; 5, 6}, 2, FALSE)
So if the last name is in column B, which is the second column you could write (formatted for clarity)
=SORT(
{
FILTER(tab1!A5:Z, tab1!B5:B<>"");
FILTER(tab2!A5:Z, tab2!B5:B<>"");
FILTER(tab3!A5:Z, tab3!B5:B<>"");
FILTER(tab4!A5:Z, tab4!B5:B<>"");
FILTER(tab5!A5:Z, tab5!B5:B<>"");
FILTER(tab6!A5:Z, tab6!B5:B<>"")
},
2,
TRUE
)

Related

How to reference to a previous row within a column with Arrayformula in Google Sheets [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 months ago.
Improve this question
i'm working on a schedule tool, but can't figure something out. I'd like to use the arrayformula function in Google Sheets. It should sum up two values from the previous row.
At the moment I'm using this, but i'd like to convert it into an arrayformula. I've tried several things, but end up with the 'Circular dependency detected' message.
=iferror(IF(REGEXMATCH(C5;"DAY");E5;index(G:G;ROW(G5)-1;1)+H6);index(G:G;ROW(G5)-1;1)+H6)
Here's the doc:
https://docs.google.com/spreadsheets/d/15jXayEN_vjK3nMRjLjaiLspT_rh_rBD_WX_LAZETRSU/
try:
=INDEX(IF(IFERROR(REGEXMATCH(C3:C; "(?i)DAY")); E3:E; SCAN(E3; H3:H; LAMBDA(x; y; x+y))))
Use the sumif(row()) pattern in cell G4, like this:
=arrayformula(
if(
isnumber(H4:H);
E3 + sumif(row(H3:H); "<=" & row(H3:H); H3:H);
iferror(1/0)
)
)
Format cell G4 as hh":"mm. You should turn off File > Settings > Calculation > Iterative calculation.

Fill a cells value based sequence every new row in Google Sheets [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Is it possible that each time a new row is added, the value of a cell is automatically filled based on a sequence that repeats indefinitely?
What I need to do is fill in the Sales Rep name in a column (there are only 6 sales reps in the list) every time a new cell is added.
Here is the spreadsheet I'm working with (the expected result is on "Leads Desired Outcome" and the formula I tried is on "Failed test".
https://docs.google.com/spreadsheets/d/1wvA7t7-S5agwDNEy_N5eIe58YPT1-9vZY8uWwB4sUZQ/edit?usp=sharing
Any help is appreciated!
use in E1:
={"Sales Rep"; INDEX(VLOOKUP(ARRAY_CONSTRAIN(FLATTEN(
SEQUENCE(ROUNDUP(ROWS(A:A)/MAX('Sales Reps'!A:A)), MAX('Sales Reps'!A:A))-(
SEQUENCE(ROUNDUP(ROWS(A:A)/MAX('Sales Reps'!A:A)), 1, 0)*MAX('Sales Reps'!A:A))),
ROWS(A:A)-1, 1), 'Sales Reps'!A:B, 2, 0))}

Write a text based on the numbers of another cell [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
So I have this data with a lot of different PINs. Each PIN corresponds with a product, so PIN 1205463MB means a product. I want to write the PIN in a cell and automatic write the product name in the next column.
I tried the VLOOKUP function and didn't work , any suggestions?
I already tried this formula I found in a Stack Overflow post, but didn't work either.
=INDEX($B$4:$K$9;MATCH($A$17;$A$5:$A$9;0);COLUMN(A4))
Also in a near future another PIN will be added and then the answer to my problem need to be an easy one to adapt.
You can use the VLOOKUP as it is exactly what you are asking to do:
In this image you can see on the left I have the table with the pins and its product names.
Then on the right, I put another column where I will manually insert the PIN. The column next to it has a dynamic formula (which means that it will fill in the rows below if necessary) that will look for the value you put on the left.
=ArrayFormula( if( len(D2:D), VLOOKUP($D2:D, A2:B16, 2, false),))
^^^^^ ****** ^ *****
arguments: || || | ||
1. column with manually inserted pin----| || | ||
2. whole table you are looking for the value---| | ||
3. number of column you want to retrieve (prod name)-| ||
4. flag to say the table is not sorted---------------------|
This means, every PIN that you will have on the left will have the product name automatically setup on the column with the formula. The dynamic formula as you can see fills the whole column, as I put a random pin on the cell D6 and it filled the product name as well.

QUERY function with Count [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have this data from a sheet1 where I need to just show up in sheet2 col A,B,C,D,E,F and the latest date from col F and the value of that row from col E then add a column for charges to count items from Sheet1.
How can I pull that using QUERY? I will apply it to a 3k+ data. So the output is not limited to just 3.
Sharing the file for what needs for the output:
https://docs.google.com/spreadsheets/d/1NbA7tInyoYTYPPqj6yKbAMdSpzaOpY0Vlj-gM7du_Nk/edit?usp=sharing
You can use Query to accomplish your goal:
=query(Sheet1!$A$1:$F,"Select A,B,C,D,MIN(E),MAX(F),count(E)-1 WHERE A IS NOT NULL GROUP BY A,B,C,D ORDER BY A desc")
In a new tab in cell A1 try
=query(ArrayFormula(vlookup(unique(Sheet1!A2:A&Sheet1!B2:B&Sheet1!C2:C&Sheet1!D2:D), sort({Sheet1!A2:A&Sheet1!B2:B&Sheet1!C2:C&Sheet1!D2:D, Sheet1!A2:F, countif(Sheet1!A2:A&Sheet1!B2:B&Sheet1!C2:C&Sheet1!D2:D, Sheet1!A2:A&Sheet1!B2:B&Sheet1!C2:C&Sheet1!D2:D)-1}, 7, 0), {2,3,4,5,6,7,8}, 0)), "where Col1 <>''")
and see if that works?

Searching one Google Sheet to add a row of data to another [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I searched and was able to find some similar questions like this, but I wasn't able to find exactly what I'm looking for and I wasn't able to use the formulas in the other questions to make this work. So sorry in advance if this has been asked before!!
Basically, I have multiple Google Sheet files (about 12 in total). Here I'll call them "Master", "Client1", Client2" and so on. For simplicity, I've just named the sheets within the files to be "Sheet1" :)
The column headers in each spreadsheet are "Brand" "Client Name", "Client Location", "Client Email", , etc... In the "Client1", Client2", etc... workbooks the first column will always be the same as the filename.
The "Master" workbook contains information on all of the clients and what "Brand" they work for (or in some cases, which Brands they work for, which makes this tricky).
Here is a picture of the "Master" workbook as an example
As pictured, some have multiple Brands, all are different clients, locations, emails.
This is what the Client1 workbook looks like currently
but I need a formula to insert into the Client1 workbook and search the first column of Master workbook and then display data if column A in Master contains "Client1"
So basically here is what Client1 would need to look like when all is said and done
I've tried things like =IFERROR, =vlookup, =RegExMatch and can't get any of them to work. I know it has to be something simple that I'm doing wrong, but I'm at my wit's end.
Any and all help would be AMAZING!!!!!
if this is your master:
then:
={TRANSPOSE(SPLIT(REPT("client1 ", COUNTA(
QUERY(QUERY(master!A2:D, "select *", 0),
"select Col2,Col3,Col4
where Col1 contains 'client1'", 0))/3)," ")),
QUERY(QUERY(master!A2:D, "select *", 0),
"select Col2,Col3,Col4
where Col1 contains 'client1'", 0)}

Resources