Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default complicated... not for the faint hearted

morning all.
this is a little complicated, i'll explain the situation.
i have a workbook, two worksheets, one for 2005, one for 2004.
there are 13 columns in each sheet, one column in each sheet relates to an
amount, and another column relates to a date.
so far i have managed to combine the sheets to sum the amount column and if
it reaches a certain amount, show a message to that effect.
the problem is that the way it is currently set up it takes amounts from
2004 and adds them to 2005 ytd.
what i really would like to be able to do is have a rolling twelve months.
i know that i need to link the date in there somewhere specifically in
mm/yyyy format.
if anybody has any suggestions on the code that i would use to do this, they
would be greatly appreciated.
thanks

mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default complicated... not for the faint hearted

the problem is that the way it is currently set up it takes amounts from
2004 and adds them to 2005 ytd.


What exactly you want to do?
Can you give a little more detail?


To Link a column with a date you can put MM and YYYY in different columns.

You can use "Validation" for assigning pre-defined values to those column


Regards,
Ankit



"mike" wrote in message
...
morning all.
this is a little complicated, i'll explain the situation.
i have a workbook, two worksheets, one for 2005, one for 2004.
there are 13 columns in each sheet, one column in each sheet relates to an
amount, and another column relates to a date.
so far i have managed to combine the sheets to sum the amount column and
if
it reaches a certain amount, show a message to that effect.
the problem is that the way it is currently set up it takes amounts from
2004 and adds them to 2005 ytd.
what i really would like to be able to do is have a rolling twelve months.
i know that i need to link the date in there somewhere specifically in
mm/yyyy format.
if anybody has any suggestions on the code that i would use to do this,
they
would be greatly appreciated.
thanks

mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default complicated... not for the faint hearted

I take it you've currently got an equation such ash
=sum('2005'!a:a)+sum('2004'!a:a), but the 2004 portion should be conditional
on the date. You can do that with SUMIF:
=sum('2005'!a:a)+sumif('2004'!b:b,""&today()-365,'2004'!a:a). You can
adjust the start date as needed. For instance if you want ALL of November
'04 even though today is late in the month, it might be
"="&date(2004,month(today()),1).

"mike" wrote:

morning all.
this is a little complicated, i'll explain the situation.
i have a workbook, two worksheets, one for 2005, one for 2004.
there are 13 columns in each sheet, one column in each sheet relates to an
amount, and another column relates to a date.
so far i have managed to combine the sheets to sum the amount column and if
it reaches a certain amount, show a message to that effect.
the problem is that the way it is currently set up it takes amounts from
2004 and adds them to 2005 ytd.
what i really would like to be able to do is have a rolling twelve months.
i know that i need to link the date in there somewhere specifically in
mm/yyyy format.
if anybody has any suggestions on the code that i would use to do this, they
would be greatly appreciated.
thanks

mike

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
Complicated Look-Up Greg Excel Discussion (Misc queries) 1 January 19th 10 05:05 PM
Faint cell highlighting in Excel 2007 JimAA Excel Discussion (Misc queries) 4 October 9th 09 04:18 PM
how do I change the colour of highlighted cells - too faint Alan Setting up and Configuration of Excel 1 April 3rd 09 05:06 PM
a little complicated Gaurav[_2_] Excel Worksheet Functions 7 March 18th 08 12:12 AM
Too Complicated For Me mehare Excel Discussion (Misc queries) 5 August 16th 06 02:57 PM


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