Stack two tables on top of each other
=VSTACK(A2:C5,E2:G6)Excel · result on the sample sheet: 9 rows (I2:K10)
Describe what you need and get a working VSTACK formula for Excel and Google Sheets, tested on real data before you copy it. VSTACK stacks ranges on top of each other into one list, such as this month's orders under last month's or one region's reps under another's.
Each formula below was calculated on its own sample sheet. Open one to see the sheet, why it works, and to try it yourself.
=VSTACK(A2:C5,E2:G6)Excel · result on the sample sheet: 9 rows (I2:K10)
=UNIQUE(VSTACK(A2:A7,C2:C8))Excel · result on the sample sheet: 9 rows (E2:E10)
=VSTACK(A1:C1,FILTER(A2:C10,B2:B10=F1))Excel · result on the sample sheet: 5 rows (E3:G7)
=QUERY({A1:C6;E2:G6},"select Col1, Col3 order by Col3 desc",1)Google Sheets · result on the sample sheet: 11 rows (I1:J11)
={"Pay";ARRAYFORMULA(IF(A2:A="","",B2:B*C2:C))}Google Sheets · result on the sample sheet: 46 rows (D1:D46)
=SORT(VSTACK(EDATE(B1,SEQUENCE(B2,1,0))+14,EOMONTH(B1,SEQUENCE(B2,1,0))))Excel · result on the sample sheet: 6 rows (D2:D7)
You describe the task in plain English, and it writes the formula, using VSTACK where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.
VSTACK stacks ranges on top of each other into one list, such as this month's orders under last month's or one region's reps under another's.
Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the VSTACK function page has a practice exercise.