Excel Calender mont...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Excel Calender month challenge.

4 Posts
3 Users
0 Reactions
87 Views
Posts: 0
Free Member
Topic starter
 

Ok.

User enters a date into a cell that is formatted for dd/mm/yy.

User received errors when:

Ther date that is entered, is greater than one calender month from the present day. i.e if the date is today (27/11/12) and a date later than 26/12/12 is entered, it will fail valadation.

Any thoughts? I'm stumped and quick google didn't help. (Excel 2002...yes, I know)

Thanks, Rich

EDIT: The bit I'm strugling with is the ability for excel to be able to count the approriate number of days, dependent on which months & how many days there are in each. I think simply, does excel have an inbuilt calender?!


 
Posted : 27/11/2012 11:17 am
Posts: 14711
Full Member
 

Depends on whether you want to count a month as 31 days but

=if(a1>TODAY()+31,"ERROR","")

Where A1 is the cell the person has entered the date in


 
Posted : 27/11/2012 11:24 am
Posts: 1361
Free Member
 

i'm using excel 2010 so this might not work

the formula

=DATE(YEAR(TODAY()),MONTH(TODAY())+1,DAY(TODAY()))

will give you the date one month from today

so if you want a message to pop up, highlight the cell then under data validation select 'Date' and if you have the option of an end date paste the formula above in

if it needs a start date just put 01/01/1900

EDIT: The data validation will prevent someone entering the wrong date


 
Posted : 27/11/2012 11:29 am
Posts: 0
Free Member
Topic starter
 

Spawnofyorkshire. Ten points and an early finish for you!

Thanks, worked perfectly 🙂


 
Posted : 27/11/2012 11:40 am
Posts: 1361
Free Member
 

happy to help


 
Posted : 27/11/2012 11:46 am

6 DAYS LEFT
We are currently at 95% of our target!