VSTACK values based on a selected date range

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
301
Office Version
  1. 365
On sheet A I have columns containing names which are created using SPILL formulas. The header for each column is a date.

2/5/232/12/232/19/232/26/233/5/23
Petr Blincko
Avram Lukas
Erinna Fossord
Juana Cater
Forrest Spencers
Myrle Cossar
Ashlen Tremonte
Frayda Bottrill
Emlyn Limpenny
Ephraim Ganley
Thorsten Eastmead
Erhart Zanassi
Joanie Adrienne
Sharona Borgesio
Ariadne Kilbourne
Joshuah Douberday

On sheet B I want to VSTACK these names according to a range of dates I specify. I want to do this by selecting the start and end dates off to the side somewhere on sheet B.

So if I want to stack the names from 2/12/23 to 2/26/23, I should get this:
Avram Lukas
Ashlen Tremonte
Erhart Zanassi
Ariadne Kilbourne
Erinna Fossord
Frayda Bottrill
Joanie Adrienne
Juana Cater
Emlyn Limpenny
Sharona Borgesio
Joshuah Douberday

I can VSTACK them, but I need help with how to implement the date range.

Any ideas, please?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How about
Fluff.xlsm
ABCDEFGH
105/02/202312/02/202319/02/202326/02/202305/03/2023
2Petr BlinckoAvram LukasErinna FossordJuana CaterForrest Spencers12/02/2023Avram Lukas
3Myrle CossarAshlen TremonteFrayda BottrillEmlyn LimpennyEphraim Ganley26/02/2023Ashlen Tremonte
4Thorsten EastmeadErhart ZanassiJoanie AdrienneSharona BorgesioErhart Zanassi
5Ariadne KilbourneJoshuah DouberdayAriadne Kilbourne
6Erinna Fossord
7Frayda Bottrill
8Joanie Adrienne
9Emlyn Limpenny
10Sharona Borgesio
11Joshuah Douberday
Lists
Cell Formulas
RangeFormula
A2:A4,C2:C4A2=N2:N4
B2:B5,D2:D5B2=O2:O5
E2:E3E2=R2:R3
H2:H11H2=TOCOL(IF((A1:E1>=G2)*(A1:E1<=G3)*(A2:E10<>""),A2:E10,1/0),3,1)
Dynamic array formulas.
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,160
Messages
6,129,215
Members
449,493
Latest member
JablesFTW

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top