Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default Happy Anniversary Flag?

Here is a formula that I have which works to produce a "Happy Anniversary"
flag:

=IF(AND(DAY(E4)=DAY(TODAY()),MONTH(E4)=MONTH(TODAY ())),"Happy Anniversary","")

The flag is triggered based upon the date entered into cell E4 (date of
original member registration). At the moment, the flag triggers annually, on
the members anniverary date, however it also triggers if I type in "todays"
date.

I'd like help in altering the formula somewhat so that the "Happy
Anniversary" flag does NOT appear when the actual date typed into cell E4 is
today (e.g. Jan 27, 2009), but only triggers annually on the actual date of
anniversary (e.g. Jan 27, 2010, Jan 27, 2011, etc).

In addition (if possible), I'd love for the flag to change with the years
(e.g Happy 1st Anniversary, Happy 2nd Anniversary, etc) if possible.

Thank you very much for any help given!
Best,

Dan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Happy Anniversary Flag?

Hi,

Try

=IF(E4=TODAY(),"",IF(AND(DAY(E4)=DAY(TODAY()),MONT H(E4)=MONTH(TODAY())),"Happy Anniversary",""))

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Danny Boy" wrote:

Here is a formula that I have which works to produce a "Happy Anniversary"
flag:

=IF(AND(DAY(E4)=DAY(TODAY()),MONTH(E4)=MONTH(TODAY ())),"Happy Anniversary","")

The flag is triggered based upon the date entered into cell E4 (date of
original member registration). At the moment, the flag triggers annually, on
the members anniverary date, however it also triggers if I type in "todays"
date.

I'd like help in altering the formula somewhat so that the "Happy
Anniversary" flag does NOT appear when the actual date typed into cell E4 is
today (e.g. Jan 27, 2009), but only triggers annually on the actual date of
anniversary (e.g. Jan 27, 2010, Jan 27, 2011, etc).

In addition (if possible), I'd love for the flag to change with the years
(e.g Happy 1st Anniversary, Happy 2nd Anniversary, etc) if possible.

Thank you very much for any help given!
Best,

Dan

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Happy Anniversary Flag?

Danny Boy wrote:
Here is a formula that I have which works to produce a "Happy Anniversary"
flag:

=IF(AND(DAY(E4)=DAY(TODAY()),MONTH(E4)=MONTH(TODAY ())),"Happy Anniversary","")

The flag is triggered based upon the date entered into cell E4 (date of
original member registration). At the moment, the flag triggers annually, on
the members anniverary date, however it also triggers if I type in "todays"
date.

I'd like help in altering the formula somewhat so that the "Happy
Anniversary" flag does NOT appear when the actual date typed into cell E4 is
today (e.g. Jan 27, 2009), but only triggers annually on the actual date of
anniversary (e.g. Jan 27, 2010, Jan 27, 2011, etc).

In addition (if possible), I'd love for the flag to change with the years
(e.g Happy 1st Anniversary, Happy 2nd Anniversary, etc) if possible.

Thank you very much for any help given!
Best,

Dan



=IF(AND(E4<TODAY(),DAY(E4)=DAY(TODAY()),MONTH(E4)= MONTH(TODAY())),
"Happy "&YEAR(TODAY())-YEAR(E4)&IF(AND(MOD((YEAR(TODAY())-YEAR(E4)),100)10,
MOD((YEAR(TODAY())-YEAR(E4)),100)<14),"th",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="1",
"st",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="2","nd",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="3",
"rd","th"))))&" Anniversary","")
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default Happy Anniversary Flag?

Thank you for the help Glenn.

What I'd also like to do is create a counting formula (in cell G3), that
would indicate how many occurances of Happy 1st Anniversary, Happy 2nd
Anniversary, etc. are present in Column G (cells G4:G3500). I tried the
formula below (as an array), but it didn't work. I also tried it without the
array, and that didn't work either.

Again, the formula below would be contained in cell G3 for the purpose of
counting the occurances of the various Happy Anniversary Flags (Happy 1st,
Happy 2nd, etc).

Thanks much for any suggetions!

Dan

=SUM(--(IF(ISNUMBER(VALUE(SUBSTITUTE(LEFT(G4:G3500,2),"-",""))),VALUE(SUBSTITUTE(LEFT(G4:G3500,2),"-","")),"")<=10))

"Glenn" wrote:

Danny Boy wrote:
Here is a formula that I have which works to produce a "Happy Anniversary"
flag:

=IF(AND(DAY(E4)=DAY(TODAY()),MONTH(E4)=MONTH(TODAY ())),"Happy Anniversary","")

The flag is triggered based upon the date entered into cell E4 (date of
original member registration). At the moment, the flag triggers annually, on
the members anniverary date, however it also triggers if I type in "todays"
date.

I'd like help in altering the formula somewhat so that the "Happy
Anniversary" flag does NOT appear when the actual date typed into cell E4 is
today (e.g. Jan 27, 2009), but only triggers annually on the actual date of
anniversary (e.g. Jan 27, 2010, Jan 27, 2011, etc).

In addition (if possible), I'd love for the flag to change with the years
(e.g Happy 1st Anniversary, Happy 2nd Anniversary, etc) if possible.

Thank you very much for any help given!
Best,

Dan



=IF(AND(E4<TODAY(),DAY(E4)=DAY(TODAY()),MONTH(E4)= MONTH(TODAY())),
"Happy "&YEAR(TODAY())-YEAR(E4)&IF(AND(MOD((YEAR(TODAY())-YEAR(E4)),100)10,
MOD((YEAR(TODAY())-YEAR(E4)),100)<14),"th",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="1",
"st",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="2","nd",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="3",
"rd","th"))))&" Anniversary","")

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Happy Anniversary Flag?



=COUNTIF(G4:G3500,"Happy*Anniversary")




Danny Boy wrote:
Thank you for the help Glenn.

What I'd also like to do is create a counting formula (in cell G3), that
would indicate how many occurances of Happy 1st Anniversary, Happy 2nd
Anniversary, etc. are present in Column G (cells G4:G3500). I tried the
formula below (as an array), but it didn't work. I also tried it without the
array, and that didn't work either.

Again, the formula below would be contained in cell G3 for the purpose of
counting the occurances of the various Happy Anniversary Flags (Happy 1st,
Happy 2nd, etc).

Thanks much for any suggetions!

Dan

=SUM(--(IF(ISNUMBER(VALUE(SUBSTITUTE(LEFT(G4:G3500,2),"-",""))),VALUE(SUBSTITUTE(LEFT(G4:G3500,2),"-","")),"")<=10))

"Glenn" wrote:

Danny Boy wrote:
Here is a formula that I have which works to produce a "Happy Anniversary"
flag:

=IF(AND(DAY(E4)=DAY(TODAY()),MONTH(E4)=MONTH(TODAY ())),"Happy Anniversary","")

The flag is triggered based upon the date entered into cell E4 (date of
original member registration). At the moment, the flag triggers annually, on
the members anniverary date, however it also triggers if I type in "todays"
date.

I'd like help in altering the formula somewhat so that the "Happy
Anniversary" flag does NOT appear when the actual date typed into cell E4 is
today (e.g. Jan 27, 2009), but only triggers annually on the actual date of
anniversary (e.g. Jan 27, 2010, Jan 27, 2011, etc).

In addition (if possible), I'd love for the flag to change with the years
(e.g Happy 1st Anniversary, Happy 2nd Anniversary, etc) if possible.

Thank you very much for any help given!
Best,

Dan


=IF(AND(E4<TODAY(),DAY(E4)=DAY(TODAY()),MONTH(E4)= MONTH(TODAY())),
"Happy "&YEAR(TODAY())-YEAR(E4)&IF(AND(MOD((YEAR(TODAY())-YEAR(E4)),100)10,
MOD((YEAR(TODAY())-YEAR(E4)),100)<14),"th",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="1",
"st",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="2","nd",IF(RIGHT((YEAR(TODAY())-YEAR(E4)),1)="3",
"rd","th"))))&" Anniversary","")

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Happy Birthday Formula Flag Needed Danny Boy Excel Worksheet Functions 15 January 26th 09 12:33 PM
next anniversary date pebbles Excel Discussion (Misc queries) 7 May 1st 08 01:03 PM
Please Reply to this Thanks to all - Merry Xmas!, Happy Chanukah!, Happy ID Stan Excel Discussion (Misc queries) 0 December 23rd 07 04:34 AM
anniversary dates Vicki Excel Discussion (Misc queries) 4 September 25th 07 06:14 PM
Calculating Anniversary Penny Excel Discussion (Misc queries) 5 October 7th 05 03:31 PM


All times are GMT +1. The time now is 06:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"