produce a list from cells based on dates in adjacent cells

kevdob

New Member
Joined
Jul 27, 2018
Messages
2
Hi all, Ive used this forum for a while and it has always answered my queries by reading, this is my first post as I cant seem to find the answer. Any help would be greatly appreciated.

I have a database of people with dates along side. I would like a live list that populates a cell based on the date, for example:

List of people with their dates of births in adjacent cell. I would like another cell that would populate a list of people who's birthday is this week (or less then 7 days days from today())

I hope this makes some sense!

Thanks in advance
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Welcome to the Board!

One way to do this would be to add a "helper" column with a formula that checks to see if their birthday is with 7 days.
Then, use Filters to only show the "True" values.
Here is a formula (which checks to see if the date is within 7 days, before or after today):
Code:
=IF(ABS(TODAY()-DATE(YEAR(TODAY()),MONTH(B1),DAY(B1)))<=7,TRUE,FALSE)
 
Upvote 0
Thanks Joe4. Ive tweaked it a little to make it fit but that's pretty good.
Just for curiosity, what is the ABS for at the start?

Thanks again.
 
Upvote 0
You are welcome.

Just for curiosity, what is the ABS for at the start?
That is the Absolute Value function. See: https://www.techonthenet.com/excel/formulas/abs.php

That way if the date subtraction returns a negative number of days, it would make it a positive number (I don't care if it is less than 7 days before or after, just that it is within 7 days).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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