Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date problem

Hi,

I am trying to find out how to look at two dates and return a value in the
months the dates relate to.

Example

Jun-08 Jul-08 Aug-08 Sep-08 Oct-08 Nov-08 Dec-08 Jan-09
Start End
01/09/2008 30/11/2008 0 0 0 1 1 1 0 0

--
Steva
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Date problem

On Aug 27, 2:14*pm, David Stephenson
wrote:
Hi,

I am trying to find out how to look at two dates and return a value in the
months the dates relate to.

Example

* * * * * * * * Jun-08 *Jul-08 *Aug-08 *Sep-08 *Oct-08 *Nov-08 *Dec-08 *Jan-09
Start * End * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
01/09/2008 * * *30/11/2008 * * *0 * * * 0 * * * 0 * * * 1 * * * 1 * * * 1 * * * 0 * * * 0

--
Steva


Assuming the column heading dates are 1st of the month, but formatted
to 'mmm-yy' format, and the range shown above starts in A1 (so
'Jun-08' is in C1 and '01/09/2008' is in A3) put the following formula
in C3 and copy to wherever you wish ...

=IF(AND(C$1=$A3,C$1<=$B3),1,0)

Hope this helps,

Rob
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Date problem

Steva,
More details are needed to help you. Your question did not make sense
and the example did nothing to clear anything up. Please explain what you
are trying to do a little more clearly.

David Stephenson wrote:
Hi,

I am trying to find out how to look at two dates and return a value in the
months the dates relate to.

Example

Jun-08 Jul-08 Aug-08 Sep-08 Oct-08 Nov-08 Dec-08 Jan-09
Start End
01/09/2008 30/11/2008 0 0 0 1 1 1 0 0


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200808/1

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 Problem Nick C Excel Discussion (Misc queries) 4 March 4th 09 04:15 PM
date problem evilyn New Users to Excel 2 November 3rd 08 09:52 PM
Exel increment date problem wrt todays date. [email protected] Excel Worksheet Functions 1 November 11th 07 06:58 PM
Date Formula Problem - Leave date blank if Null Gayla Excel Worksheet Functions 5 April 24th 07 09:42 PM
Us date versus EU date problem Jan T. Excel Programming 7 October 2nd 06 07:06 PM


All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"