Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
S S
 
Posts: n/a
Default Help with date formula

The formulas below are used to return a date in 2 seperate boxes on my
spreadsheet how can i get the year 1900 to read 2006

=IF(AND(E7=2006,D7=0,C7=0),DATE(2006,1,1),DATE(E7, D7,C7)) This returns
31st July 2006, which is correct

=IF(AND(I7=2006,H7=0,G7=0),DATE(2006,1,1),DATE(EI7 ,H7,G7)) This returns
20th August 1900, should be year 2006

I am not good with formulas so cant for the life of me see whats wrong,

Can someone spot the mistake for me.

thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Help with date formula

Just a small typo:

=IF(AND(I7=2006,H7=0,G7=0),DATE(2006,1,1),DATE(EI7 ,H7,G7))

probably should be:

=IF(AND(I7=2006,H7=0,G7=0),DATE(2006,1,1),DATE(I7, H7,G7))

--
Gary''s Student


"S S" wrote:

The formulas below are used to return a date in 2 seperate boxes on my
spreadsheet how can i get the year 1900 to read 2006

=IF(AND(E7=2006,D7=0,C7=0),DATE(2006,1,1),DATE(E7, D7,C7)) This returns
31st July 2006, which is correct

=IF(AND(I7=2006,H7=0,G7=0),DATE(2006,1,1),DATE(EI7 ,H7,G7)) This returns
20th August 1900, should be year 2006

I am not good with formulas so cant for the life of me see whats wrong,

Can someone spot the mistake for me.

thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
S S
 
Posts: n/a
Default Help with date formula

Spot on, Many thanks for helping me.


"Gary''s Student" wrote in message
...
Just a small typo:

=IF(AND(I7=2006,H7=0,G7=0),DATE(2006,1,1),DATE(EI7 ,H7,G7))

probably should be:

=IF(AND(I7=2006,H7=0,G7=0),DATE(2006,1,1),DATE(I7, H7,G7))

--
Gary''s Student


"S S" wrote:

The formulas below are used to return a date in 2 seperate boxes on my
spreadsheet how can i get the year 1900 to read 2006

=IF(AND(E7=2006,D7=0,C7=0),DATE(2006,1,1),DATE(E7, D7,C7)) This returns
31st July 2006, which is correct

=IF(AND(I7=2006,H7=0,G7=0),DATE(2006,1,1),DATE(EI7 ,H7,G7)) This returns
20th August 1900, should be year 2006

I am not good with formulas so cant for the life of me see whats wrong,

Can someone spot the mistake for me.

thanks





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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Trending Formula Results by Date sony654 Excel Worksheet Functions 0 January 2nd 06 02:33 AM
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


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