ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I filter for Birthdays/Anniversaries in Excell? (https://www.excelbanter.com/excel-discussion-misc-queries/1511-re-how-can-i-filter-birthdays-anniversaries-excell.html)

Woodkat

How can I filter for Birthdays/Anniversaries in Excell?
 
what if the dates in column A are stored as text in the YYYYMMDD format?

"Bill Martin" wrote:

I have a column of birthdays and would like to be able to filter only those
birthdays that occur in the next 14-21 days so we can mail cards. Is there a
way to do this?


How about this. Assume the birthdays are in column A in date format such as
9/23/1950. Then create a second column B where

B1 = if(mod(days360(today(),A1),360) < 21,"Send Card!","")

Then just copy that all the way down the B column.

Good luck...

Bill -- (Remove KILLSPAM from my address to use it)


JulieD

Hi Woodkat

Something along the lines of
=IF(AND(DATE(2004,MID(A1,5,2),RIGHT(A1,2))TODAY() +14,DATE(2004,MID(A1,5,2),RIGHT(A1,2))<TODAY()+21) ,"card","")

Cheers
JulieD

"Woodkat" wrote in message
...
what if the dates in column A are stored as text in the YYYYMMDD format?

"Bill Martin" wrote:

I have a column of birthdays and would like to be able to filter only
those
birthdays that occur in the next 14-21 days so we can mail cards. Is
there a
way to do this?


How about this. Assume the birthdays are in column A in date format such
as
9/23/1950. Then create a second column B where

B1 = if(mod(days360(today(),A1),360) < 21,"Send Card!","")

Then just copy that all the way down the B column.

Good luck...

Bill -- (Remove KILLSPAM from my address to use it)




Frank Kabel

Hi
try to convert them first to a real Excel date. e.g. with the formula
=--TEXT(A1,"0000-00-00")
format this cell as date and copy for all rows. Now use this helper
column

--
Regards
Frank Kabel
Frankfurt, Germany

"Woodkat" schrieb im Newsbeitrag
...
what if the dates in column A are stored as text in the YYYYMMDD

format?

"Bill Martin" wrote:

I have a column of birthdays and would like to be able to filter

only those
birthdays that occur in the next 14-21 days so we can mail cards.

Is there a
way to do this?


How about this. Assume the birthdays are in column A in date

format such as
9/23/1950. Then create a second column B where

B1 = if(mod(days360(today(),A1),360) < 21,"Send Card!","")

Then just copy that all the way down the B column.

Good luck...

Bill -- (Remove KILLSPAM from my address to use it)




All times are GMT +1. The time now is 12:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com