Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Multiplying non consecutive rows, then adding it.

Not sure what was posted in the other group, but since you have blanks
in one range, can't you just adjust the ranges in the formula to leave
out the top (bottom) cell, respectively? Then the desired factors are
aligned, and the blanks cancel the unwanted data.

= sumproduct(D3:D63*B2:b62)

works for me.

On Jul 4, 3:28 pm, RF wrote:
Hello,

I need your help here. I am trying to calculate a monthly progress of
planned vs. real. My "planned" formula is ok. The problem comes for the
"real" one.

Let's say I wanted to multiply the odd rows from D2:D63 * even rows from
B2:B63, then add the results. I have tried things like
=SUMPRODUCT((IF(MOD(ROW(D2:D63),2)=1,D2:D63,0)*IF( MOD(ROW(B2:B63),2)=0,B2:B63,0))) but it won't work, it will always display 0 as a result.

Odd rows from B2:B63 will be blank, and in D2:D63 we will have the "real"
progress on odd rows and "planned" progress on even rows.

I know it shouldn't be so difficult, but I'm stuck.

Thanks in advance.

Regards,

RF



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
Multiplying then adding Two Rows of Numbers BRob Excel Worksheet Functions 3 May 28th 08 01:52 PM
Consecutive No'ing WHEN ADDING/DELETING ROWS CMack Excel Discussion (Misc queries) 2 January 17th 08 03:08 PM
Multiplying non consecutive rows, than adding it. RF Excel Discussion (Misc queries) 13 July 6th 07 02:32 PM
Multiplying non consecutive rows, then adding it. RF Excel Worksheet Functions 8 July 4th 07 10:46 PM
Adding + Multiplying 2 Colums' Rows ruscak Excel Programming 1 August 22nd 05 06:32 PM


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