#1   Report Post  
Posted to microsoft.public.excel.misc
prhrmk
 
Posts: n/a
Default Formula help!


I am using the SUMPRODUCT formula which is working great - however, when
I copy and past it I have to manually change the dates which is going to
take me a lot of time to do so. I want a formula that will do this for
me when I copy it. If that makes sense? I have bolded the parts that
need to change.

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=--"*2006-01-01*"),--('[MyRecord
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=--"*2006-01-06*"))

Is there a formula - like OFFSET that would do this for me otherwise I
have to change the dates manually. The report is done on a weekly
basis so the dates would be the following:

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=--"*2006-01-09*"),--('[MyRecord
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=--"*2006-01-13*"))

so on and so forth.

Thanks for the help in advance!


--
prhrmk
------------------------------------------------------------------------
prhrmk's Profile: http://www.excelforum.com/member.php...o&userid=23934
View this thread: http://www.excelforum.com/showthread...hreadid=495193

  #3   Report Post  
Posted to microsoft.public.excel.misc
Amy Beth
 
Posts: n/a
Default Formula help!

I would suggest a cell reference that you can either change the date in the
one place manual each week, or use the formula "=today()" and the it would
change in the cell automatically.

AB

"prhrmk" wrote:


I am using the SUMPRODUCT formula which is working great - however, when
I copy and past it I have to manually change the dates which is going to
take me a lot of time to do so. I want a formula that will do this for
me when I copy it. If that makes sense? I have bolded the parts that
need to change.

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=--"*2006-01-01*"),--('[MyRecord
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=--"*2006-01-06*"))

Is there a formula - like OFFSET that would do this for me otherwise I
have to change the dates manually. The report is done on a weekly
basis so the dates would be the following:

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=--"*2006-01-09*"),--('[MyRecord
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=--"*2006-01-13*"))

so on and so forth.

Thanks for the help in advance!


--
prhrmk
------------------------------------------------------------------------
prhrmk's Profile: http://www.excelforum.com/member.php...o&userid=23934
View this thread: http://www.excelforum.com/showthread...hreadid=495193


  #4   Report Post  
Posted to microsoft.public.excel.misc
RagDyer
 
Posts: n/a
Default Formula help!

One way might be to place your dates in a datalist, and reference those
cells in your formula.

Y1 to Y52
1/2/06
1/9/06
1/16/06
.... etc.

Z1 to Z52
1/6/06
1/13/06
1/20/06
.... etc.

Then, your formula would be:

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=Y1),--('[MyRecord
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=Z1))

However, if you're *not* copying down sequential rows, but skipping a few,
say copying into every 5th row, 1, 6, 11, 16, ... etc., you could try
something like this with the same datalist in Y1 to Z52:

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=INDEX($Y$1:$Y$52,ROWS($1:5)/5)),--('[My
Record
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=INDEX($Z$1:$Z$52,ROWS($1:5)/5)))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"prhrmk" wrote in
message ...

I am using the SUMPRODUCT formula which is working great - however, when
I copy and past it I have to manually change the dates which is going to
take me a lot of time to do so. I want a formula that will do this for
me when I copy it. If that makes sense? I have bolded the parts that
need to change.

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=--"*2006-01-01*"),--('[MyRecord
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=--"*2006-01-06*"))

Is there a formula - like OFFSET that would do this for me otherwise I
have to change the dates manually. The report is done on a weekly
basis so the dates would be the following:

=SUMPRODUCT(--('[MyRecord Log
2006.xls]Rockford-06'!$L$2:$L$65536),--('[MyRecord Log
2006.xls]Rockford-06'!$N$2:$N$65536=--"*2006-01-09*"),--('[MyRecord
Log 2006.xls]Rockford-06'!$N$2:$N$65536<=--"*2006-01-13*"))

so on and so forth.

Thanks for the help in advance!


--
prhrmk
------------------------------------------------------------------------
prhrmk's Profile:

http://www.excelforum.com/member.php...o&userid=23934
View this thread: http://www.excelforum.com/showthread...hreadid=495193


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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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