SumProduct Question

smitpau

Board Regular
Joined
Apr 2, 2020
Messages
167
Office Version
  1. 365
Platform
  1. Windows
I'm not sure if this is possible using Sumproduct but believe it should be possible generally, from the example below I'd like to sum values of n rows apart, but before they are summed are multiplied by a fixed value (the FX rate). It's this multiplication part I'm not sure how to do, the target values are below.

Hope that explains it clearly.

Thanks,

Paul


SumProduct Question.xlsx
BCD
1Mar-20Apr-20
2
3FX1.31.2
4Company 1
5Revenue1010
6COS66
7Profit44
8
9FX1.41.6
10Company 2
11Revenue1212
12COS77
13Profit55
14
15
16Consolidation
17Revenue2222
18COS1313
19Profit99
20
21
22Target Version
23Revenue3031
24COS1818
25Profit1213
Sheet2
Cell Formulas
RangeFormula
C7:D7,C13:D13C7=C5-C6
C17:D19C17=(SUMPRODUCT(--(MOD(ROW(C5:C13)-ROW(C5),6)=0),C5:C13))
C23:D25C23=(C5*C$3)+(C11*C$9)
 
Yes, offsetting the ranges in a SUMPRODUCT (or sometimes a SUMIF) is a useful trick to know. It took me a bit to think of it this time though. Incidentally, I could have made the formulas the same by putting $ signs on the B3:B9 range. More second thoughts. Anyway I'm glad it works for you.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top