Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default CF for next month/this year

I recently got this formula from Dave, thanks :
=text(A1,"yyyymm")=text(today(),"yyyymm")
to use it in conditional formatting and color RED all dates for this month.
Now I need the "contraparte" for another worsheet :
CF to color GREEN all dates for next month, today is October, next month will
be November, Etc. Autoupdating like the above formula does.
THANKS in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default CF for next month/this year

computexcel wrote:
I recently got this formula from Dave, thanks :
=text(A1,"yyyymm")=text(today(),"yyyymm")
to use it in conditional formatting and color RED all dates for this month.
Now I need the "contraparte" for another worsheet :
CF to color GREEN all dates for next month, today is October, next month will
be November, Etc. Autoupdating like the above formula does.
THANKS in advance.



=DATE(YEAR(A3),MONTH(A3),1)=DATE(YEAR(TODAY()),MON TH(TODAY())+1,1)
^^

Works across year-ends as well.

Adjust the bit above ^^ to make this relative to any number of months.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default CF for next month/this year

Change today() to DATE(YEAR(Today()),MONTH(Today())+1,1)
--
David Biddulph

"computexcel" wrote in message
...
I recently got this formula from Dave, thanks :
=text(A1,"yyyymm")=text(today(),"yyyymm")
to use it in conditional formatting and color RED all dates for this
month.
Now I need the "contraparte" for another worsheet :
CF to color GREEN all dates for next month, today is October, next month
will
be November, Etc. Autoupdating like the above formula does.
THANKS in advance.



  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CF for next month/this year

.. CF to color GREEN all dates for next month ..

Think you could try:
=TEXT(A1,"yyyymm")=TEXT(DATE(YEAR(TODAY()),MONTH(T ODAY())+1,1),"yyyymm")
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,800 Files:359 Subscribers:56
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default CF for next month/this year

Like my cat says "Purrrfect".All three formulas.
Thanks smartin, David and Max
you are very kind.

"Max" wrote:

.. CF to color GREEN all dates for next month ..


Think you could try:
=TEXT(A1,"yyyymm")=TEXT(DATE(YEAR(TODAY()),MONTH(T ODAY())+1,1),"yyyymm")
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,800 Files:359 Subscribers:56
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default CF for next month/this year

computexcel wrote:
Like my cat says "Purrrfect".All three formulas.
Thanks smartin, David and Max
you are very kind.


Glad you found an answer.

My cat says "mwraowwwwr?", but he's a little touched.
  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CF for next month/this year

Welcome, thanks for feeding back.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,800, Files:359, Subscribers:56
xdemechanik
---
"computexcel" wrote in message
...
Like my cat says "Purrrfect".All three formulas.
Thanks smartin, David and Max
you are very kind.



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
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? misscrf Excel Discussion (Misc queries) 1 December 14th 07 02:59 PM
Sort month/date/year data using month and date only SMW820 Excel Discussion (Misc queries) 6 June 22nd 06 05:14 PM
trying to get day/month/year froamt while user enters year only RADIOOZ New Users to Excel 3 June 7th 06 05:30 AM
How to use month() and day() without considering year()? Eric Excel Discussion (Misc queries) 1 February 3rd 06 02:37 PM
Sum by month and year Steven Robilard Excel Discussion (Misc queries) 2 May 10th 05 03:22 PM


All times are GMT +1. The time now is 08:37 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"