#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
boardmaker
 
Posts: n/a
Default date function


Sometimes I feel stupid. I've been trying to create a formula for hours
and never thought to look for a forum. Is there a way that if I enter a
date in say A1 as 5/4/06 that excel will then in A2 subtract that date
from the end of it's month to give me the remaining days. But the
formula needs to work for all months. So if I enter that date it will
go to the month of may and subtract. But, my next date may be 2/4/04.
So it need to work with all months. Is this even possible? Thanks for
the help and I know I will have a lot more questions for everyone.


--
boardmaker
------------------------------------------------------------------------
boardmaker's Profile: http://www.excelforum.com/member.php...o&userid=34854
View this thread: http://www.excelforum.com/showthread...hreadid=546019

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default date function

One way

=DATE(YEAR(A1),MONTH(A1)+1,0)-A1

format result as general


Regards,

Peo Sjoblom


"boardmaker" wrote:


Sometimes I feel stupid. I've been trying to create a formula for hours
and never thought to look for a forum. Is there a way that if I enter a
date in say A1 as 5/4/06 that excel will then in A2 subtract that date
from the end of it's month to give me the remaining days. But the
formula needs to work for all months. So if I enter that date it will
go to the month of may and subtract. But, my next date may be 2/4/04.
So it need to work with all months. Is this even possible? Thanks for
the help and I know I will have a lot more questions for everyone.


--
boardmaker
------------------------------------------------------------------------
boardmaker's Profile: http://www.excelforum.com/member.php...o&userid=34854
View this thread: http://www.excelforum.com/showthread...hreadid=546019


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
Date function in Excel that updates only when a doc is changed? torino0020 Excel Worksheet Functions 1 January 5th 06 03:00 AM
Date Function Khangura Excel Discussion (Misc queries) 1 December 21st 05 09:33 AM
date format and the RIGHT function Rich Hayes Excel Worksheet Functions 0 December 19th 05 11:06 AM
Date function Dee Excel Worksheet Functions 2 July 13th 05 03:32 PM
Is there a function to show future date taxmom Excel Worksheet Functions 2 March 4th 05 09:23 PM


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