Extracting Data from a Range that Excludes Blanks

taraajordan

New Member
Joined
Oct 16, 2019
Messages
2
Hello,

I have a spreadsheet with a range of dates based on fiscal years from 10/01/2019 through 09/30/2022. I'm trying to use a formula that looks at this list of dates in a column and then extracts only the dates that occur within fiscal year 2020 which is from 10/01/2019 through 09/03/2020. I've searched everywhere today and I keep seeing the formula that starts with =IFERROR(IF(DATE RANGE),SMALL(IF(DATE RANGE), ROWS (......), ETC. I've tried several different formulas, but none have worked for what I'm trying to do. I was able to use an IF formula to pull data based on the date range listed above, but it also listed blanks for data with a zero value, and I don't want the blanks; only the data relating to this fiscal year. Please help!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You could use the following, IFERROR with arrays is notorious for slowing sheets down so it's better to use a count to turn the array on & off.

With this setup you can control the date period, in Option 2 formula is an example of how you can incorporate the count test if you don't want the extra Counts helper cells.


Book1
ABCDEF
1DataEvent$StartCounts
202-10-19Event11001-10-194
3Finish
401-09-19Event 24530-09-20
505-10-19Event350
6
7
820-01-20Event660
902-02-20Event7100
10
1101-10-20Event 962
12
13Option 1
14ExtractEvent$
1502-10-19Event110
1605-10-19Event350
1720-01-20Event660
1802-02-20Event7100
19
20Option 2
2102-10-19Event110
Sheet1
Cell Formulas
RangeFormula
F2=COUNTIFS($A$2:$A$11,">="&$E$2,$A$2:$A$11,"<="&$E$4)
A15{=IF(ROWS(A$15:A15)>$F$2,"",INDEX(A$2:A$11,SMALL(IF($A$2:$A$11>$E$2,ROW($A$2:$A$11)-ROW($A$2)+1),ROWS(A$15:A15))))}
A21{=IF(ROWS(A$15:A15)>COUNTIFS($A$2:$A$11,">="&$E$2,$A$2:$A$11,"<="&$E$4),"",INDEX(A$2:A$11,SMALL(IF($A$2:$A$11>$E$2,ROW($A$2:$A$11)-ROW($A$2)+1),ROWS(A$15:A15))))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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