VSTACK values based on a selected date range

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
303
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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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