"Column A" has unique and sort functions on data imported from another sheet. How do I keep the rest of the columns on the sheet to stick together as the data in "Column A" is constantly changing?
After seeing the spreadsheet you provided.
I suggest the sheet RECEVING must be formulated differently as follows.
In the table on the left we can easily add "qty received"
And the table on right is calulated based on the table of orders in the sheet ORDER and the table on the sheet RECEIVING to get:
1 - Get Drop-down form ORDER!A2:A by utilizing Data validation, and entring list from range ORDER!A2:A.
2 - Product name as unique values on cell E2 paste this formula.
=SORT(UNIQUE(B2:B),1,1)
3 - To get "Total received" on cell F2 paste
=ArrayFormula(IF(E2:E="",,SUMIF(B2:B,E2:E,C2:C)))
4 - To get "Ordered" on G2 paste
=ArrayFormula(IF(E2:E="",,SUMIF(ORDER!A:A,E2:E,ORDER!B:B)))
5 - lastly "Outstanding" on H2 paste
=ArrayFormula(IF(F2:F="",,F2:F-G2:G))
Here is the example sheet, I hope that answers your question.
Related
Can someone help me with this?
As you can see, I want to display the top 10 products but must be in condition with the Name and Month dropdown. For Example, if I choose Name John and January as the month, it should display the top products which are located in Sheet 5. What formula or how should I do this? I'm thinking of using the VLOOKUP IF statement.
enter image description here
enter image description here
I'm not going to talk about proper database structure instead solving the problem as is.
1 - you need a helper columns for employees and monthes Like so highlighted with yellow.
2 - also a helper table to structure data and stack each type in a column.
In O2 cell paste this formula to stack all the tables into one table.
=QUERY({A2:A11,B2:D11;A2:A11,E2:G11;A2:A11,H2:J11;A2:A11,K2:M11;A13:A22,B13:D22;A13:A22,E13:G22;A13:A22,H13:J22;A13:A22,K13:M22})
3 - To get top 10 Results of products, in Sheet2 F11 cell paste this formula.
=SORTN(FILTER(Sheet5!$Q$2:$R,Sheet5!$O$2:$O=$B$3,Sheet5!$P$2:$P=$B$5),10,,4,0)
and you will get a result like this, red table is for verification only.
In Google Sheets, I want to grab the text value from a sheet and put it every three rows in a separate sheet. I want there to be blank spaces in the rows in between.
For example, say I have a list of names on a sheet called "Customer Info" In Column A. On a separate sheet, I am keeping track of interactions with customers, and that data takes 3 rows. Every third row, I want to grab the name of the next customer from my sheet "Customer Info" and put it in column A of my sheet "Transactions."
I've been trying to find a way to use something like ='Customer Info'!A(x), and use a formula to get the value of x. I thought some variation of MOD would work.
Say Sheet2 is like:
In Sheet3 cell A1 enter 1 and in A2 enter:
=IF(MOD(ROW(),3)=1,1+MAX($A$1:A1),"")
and copy downwards. In B1 enter:
if(A1="","",index(Sheet2!A:A,A1))
and copy downwards:
You can change the number of empty rows by changing the arguments to MOD().
try:
=INDEX(TRIM(FLATTEN(SPLIT(QUERY(INDIRECT("Customer Info!A2:A"&
COUNTA(A2:A)+ROW(A2)-1)&"♀ ♀ ♀",,9^9), "♀"))))
I'm trying to return the column headers for a row that is marked with an x. The row is selected from a name in the left column. I'm stuck here.
I can illustrate what I want to do by showing these images:
Start table
The result I want is this:
Outputs of the possibilities for the first sheet
I have put more information in my Example Sheet.
Link to editable example sheet
This formula should create a table (with a single formula) with the months in one column and the headers in the second column.
=ArrayFormula({A4:A15\ substitute(transpose(query(transpose(if(B4:G15="x";B3:G3&char(10);));;rows(A4:A15)));" ";)})
If you'd want to 'lookup' the months you manually type in you can wrap the above in a vlookup. Example:
=ArrayFormula(if(len(L4:L); vlookup(L4:L; {A4:A15\ substitute(transpose(query(transpose(if(B4:G15="x";B3:G3&char(10);));;rows(A4:A15)));" ";)}; 2; 0);))
You can check out both formulas in the copy of the sheet I've made in the spreadsheet you shared.
I have a student attendance data sheet in which I need each student's name to appear in Column A, but only where the row for that student contains a subject. As you can see, I'm nearly there. In cell A4 I typed:
=B3
and in cell A5 I typed:
=IF(B4="",A4,B4)
...then just autofilled down from there. However, cells A17 and A31 (where a new student name appears on Column B) are messing up a formula I have on another sheet that references Column A on this sheet. Therefore, I'd like to leave these particular cells blank if possible, but I'm not sure how to achieve this.
I duplicated the sheet in your shared spreadsheet and entered in cell A3 this formula:
=ArrayFormula(if(isblank(C3:C),,if(row(C3:C) <= max(row(C3:C)),vlookup(row(C3:C),filter({row(C3:C),B3:B},len(B3:B)),2),)))
that seems to deliver the expected output.
See if that works for you ?
I made another copy and entered this formula into A5: =IF(B5="", IF(B4="",A4,B4), "")
I have a google spreadsheet with 2 sheets. The first sheet contains data that has been input by a form. Each form response will input data for the following "Timestamp", "Zone", "NPC", "Faction", "Amount", "Faction2", "Amount2", "Faction3", "Amount3", "Faction4", "Amount4", "Faction5", "Amount5".
Row 1 contains the above category names for each response input. The way the form works unfortunately is that each response is put into it's own column based on what Zone is chosen at the beginning as each Zone has different possible responses for the category. So the data is spread out from Columns C to Columns HC. Each row will only have one response per category name, but the category names are repeated and spread out.
I have been using the following query in Sheet2 to pull the information from whichever "Zone" that is selected from the E1 dropdown in the sheet.
=if(len(E1)=0,"Please Select a Zone in E1",query('Form Responses'!A2:IS,"Select * Where B = """&E1&""" "))
The problem is that it returns the entire Row for the Selected zone so the following information doesn't line up. Is there any way for me to return only the information from the Rows that have data in the cell. This would then line up the data into the correct Column for Sheet2
Below is a link to the Form with some sample data in it, the Cobalt Scar selection lines up as the responses are in the corresponding columns in the data sheet, but Crystal Caverns and Western Wastes do not. You can change selected zone to view the results in Sheet2 E1.
Also the sheet is a copy and can be edited by the public.
https://docs.google.com/spreadsheet/ccc?key=0AqEFpZnTydP-dFNNOV9sRzNRSldDUXRJX1pqSFZRYkE&usp=sharing
I haven't found an elegant solution to this type of problem, but that doesn't mean it's not solvable.
The solution I created on your sheets is easily manageable (only have to update the sheet with the area / column table), but it does take up a little more memory.
How it works:
The ArrangedData tab is the first 2 columns from Form Responses, then the "appropriate" columns (based on the selection made on sheet2; it picks the columns from a lookup on sheet5).
Then ArrangedData is filtered (based on the selection on sheet2 again) into sheet2.
Let me know if you have any questions about it.