#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Dates

I have a list of the 12 months. At the end of each month information is
entered for the corresponding month.

I have a seperate report that picks up on the YTD information from the input
data. At the top of this report I show the date ie: Feb-2007, meaning the
report is YTD up to February.

What I would like to do is read from the original data how many months have
information in them. I thought I could use =COUNTIF(C60:N60,"<0"), it seems
to work. However, I can't figure out how to incorporate that outcome of 2
and combine it with the current year to come up with something that will
display as a date.

Thank you for any help you can send my way.

Cindy.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Dates

Hello
I entered the months into the range P1:P13 (Just type "January-2007"
into P1 and then fill down)
Then I used the following formula:
=INDEX($P$1:$P$12,COUNTA(C60:N60)+1)
If you try to use more than 12 months here, it will cause an error (so
if you want to continue for multiple years, you'll have to extend the
dates in P1:P13
If the year isn't as important, you could use the following
=INDEX($Q$1:$Q$12,MOD(COUNTA(C60:N60)+1,12))
and it will wrap around to January after december (you can always add
the year on later by using & or Concatenate)
=INDEX($Q$1:$Q$12,MOD(COUNTA(C60:N60)+1,12)) & " 2008"
I hope that helps.

On Mar 9, 3:37 pm, Jordan wrote:
I have a list of the 12 months. At the end of each month information is
entered for the corresponding month.

I have a seperate report that picks up on the YTD information from the input
data. At the top of this report I show the date ie: Feb-2007, meaning the
report is YTD up to February.

What I would like to do is read from the original data how many months have
information in them. I thought I could use =COUNTIF(C60:N60,"<0"), it seems
to work. However, I can't figure out how to incorporate that outcome of 2
and combine it with the current year to come up with something that will
display as a date.

Thank you for any help you can send my way.

Cindy.



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
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


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