Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to determine the value?

If today is the last day of this month, then return today+2, else today.
Does anyone have any suggestions on how to determine whether today is the
last day of this month or not?
Thanks in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default How to determine the value?

"Eric" wrote:
If today is the last day of this month, then return today+2, else today.
Does anyone have any suggestions on how to determine whether today
is the last day of this month or not?


Two ways....

=if(today()=eomonth(today(),0), 2+today(), today())

If you get a #NAME error, look at the Help page for EOMONTH for
instructions.

If you cannot or do not want to install the ATP (for Excel 2003, at least),
replace EOMONTH(TODAY(),0) with DATE(YEAR(TODAY()),1+MONTH(TODAY()),0).

Of course, you can avoid all the calls to TODAY() by putting =TODAY() into
some cell and referencing it instead in the formula above.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 464
Default How to determine the value?

=IF(A1=EOMONTH(A1,0),TODAY()+2,TODAY())

See help for EMONTH if returns #NAME as you may need to check the add-in.



--
Regards
Dave Hawley
www.ozgrid.com
"Eric" wrote in message
...
If today is the last day of this month, then return today+2, else today.
Does anyone have any suggestions on how to determine whether today is the
last day of this month or not?
Thanks in advance for any suggestions
Eric


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to determine the value?

Try this...

A1: =TODAY()

=A1+((A1=EOMONTH(A1,0))*2)

Note that the EOMONTH function requires the Analysis ToolPak add-in be
installed if you're using a version of Excel prior to Excel 2007. If you
enter the formula and get a #NAME? error look in Excel help for the EOMONTH
function. It'll tell you how to fix the problem.

--
Biff
Microsoft Excel MVP


"Eric" wrote in message
...
If today is the last day of this month, then return today+2, else today.
Does anyone have any suggestions on how to determine whether today is the
last day of this month or not?
Thanks in advance for any suggestions
Eric



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default How to determine the value?

Hello Eric,

I suggest to use the formula
=TODAY()+2*(MONTH(TODAY())<MONTH(TODAY()+1))

Regards,
Bernd
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
How to determine the value? Eric Excel Worksheet Functions 8 November 10th 08 02:51 PM
How to determine the value? Eric Excel Discussion (Misc queries) 1 November 7th 08 06:52 AM
How to determine the value? Eric Excel Discussion (Misc queries) 7 August 16th 07 01:42 AM
How to determine the value? Eric Excel Worksheet Functions 1 February 13th 07 04:17 AM
How to Determine 1st, 2nd & 3rd for a PWD Pete n PWD Land Excel Discussion (Misc queries) 3 February 17th 05 09:25 PM


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