How do I pull dates which fall into the range from today until 30 days from to day?

guntar

New Member
Joined
Apr 23, 2009
Messages
1
Hello Excel experts,
I got this problem I can’t solve, maybe it is easy to solve, but I am fairly new to writing functions in excel.
I got a lot of different dates in single column, what I need is to pull the dates if they fall in to the range, from today till 30 days from now.
I understand it calls for array formula.
Please look at attached sample workbook “dates”.
Any good suggestions,
I thank you in advance!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I've been playing with it.. and VBA could definitely help.. but if you really don't want to use it.. this may help:

In column C, right next to your dates I added the formula:
=AND(B3>TODAY(),B3<TODAY()+30)
This will give me a TRUE or FALSE whether your date is within today and 30 days from now

Then to find the first date that falls into the range, I used:
=INDIRECT(ADDRESS(MATCH(TRUE,C$1:C$24,0),2))
This found the 04/29/09 date... which is good...

Now listing the next date within that range would require finding the row where this previous entry came from, then using the range from there.. so if this came from B6, then search for the next match between C7:C24
=INDIRECT(ADDRESS(MATCH(TRUE,C$7:C$24,0),2))
 
Upvote 0

Forum statistics

Threads
1,215,381
Messages
6,124,615
Members
449,175
Latest member
Anniewonder

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