LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Damaeus
 
Posts: n/a
Default Excel 97 - Adding Every 8th Row - Formula should work, but doesn't

Here's a formula I found online to add every 7th row:

=SUMPRODUCT(--(MOD(ROW(A1:A300)-1,7)=0),A1:A300)

I've modified it, of course, to fit the cells I'm working with and I
changed it to add every eighth row. (I'm actually working with cells T12 -
T428, but I made the cell range smaller for debugging purposes.)

=SUMPRODUCT(--(MOD(ROW(T412:T428)-1,8)=0),T412:T428)

It SHOULD start with T412 and add it to T420 and T428, but for some strange
reason, it adds T417 and T425 only and returns the result. Can anybody
understand why?



Now when I try the following:

=SUMPRODUCT(--(MOD(ROW(T421:T427)-1,2)=0),T421:T427)

It adds every other row just as it should (Sunday, Tuesday, Thursday,
Saturday)



This adds every third row (Sunday, Wednesday, Saturday)

=SUMPRODUCT(--(MOD(ROW(T421:T427)-1,3)=0),T421:T427)


So why does that formula work in the last two examples, but not in the
first? What I have on the spreadsheet is a row for every day of the week,
followed by a weekly total row. Then the formula should go through the
entire year of 2004 and add up the totals of each week, which is every
eighth row. The modified formula at the top SHOULD do this for the last
three weeks, but it doesn't. The totals for the last three weeks are 426,
269, and 365. But the formula returns a value of 102. That value is the
total of cells T417 (43) and T425 (59).

Why is this happening?

Thanks,
Damaeus
 
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
How do I view the actual numeric value of a formula in Excel 2002. Excel Function Help Excel Worksheet Functions 0 January 13th 05 10:07 PM
Need excel formula to display 28.50hrs in HRS & MINS? rbc Excel Worksheet Functions 4 January 6th 05 12:21 PM
What is the formula for adding mulitple numbers in one excel cell. Merlin_au Excel Discussion (Misc queries) 1 January 4th 05 10:50 AM
transfer an excel work sheet to Paint huong Excel Discussion (Misc queries) 1 December 10th 04 03:09 AM
transfer an excel work sheet to Paint [email protected] Excel Discussion (Misc queries) 0 December 10th 04 02:55 AM


All times are GMT +1. The time now is 07:09 AM.

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"