Sum of values with irregular row intervals. for Sierra Charts

mescalante48

New Member
Joined
Sep 15, 2021
Messages
29
Office Version
  1. 2007
Platform
  1. Windows
Good day everyone, this is for the uni.

the values on columns (A) and (B) are generated at irregular intervals, I would need to sum the most recent non zero value in the (B) column to the most recent non zero value in column (A) and return the sum of that to the (C) column.

no arrays, no VBA

see the example below.
what would be the formula in (C)?



e696857b9594afb3994da311e49a8a61.png
 
Last edited by a moderator:
I made a few assumptions, but here's another option:

Book1
ABC
101641516419.82
2000
3000
44.8200
5016414.516419.32
64.8200
7000
801641716421.82
9000
104.8200
Sheet13
Cell Formulas
RangeFormula
C1:C10C1=IF(B1=0,0,B1+INDEX(A:A,MIN(IF(A1:A10,ROW(A1:A10)))))
Press CTRL+SHIFT+ENTER to enter array formulas.
Eric,

SC support replied.

my understanding from their response is that the IF function's calculation logic and/or default behavior might differ from software to software, that being said; could you please explain what IF(A1:A10,ROW(A1:A10)) is doing within your formula?, maybe I can replace it with something that'll do the same but different.

thx!
 
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).
I think I need to tap out at this point. What that section does is look at each value in A1:A10, and if it's non-zero, puts the row in an array, which the MIN later evaluates. Since you said array formulas don't work in SC, we're out of luck. There are some array enabled functions in Excel, like SUMPRODUCT or LOOKUP, but I don't know if they behave the same way in SC, or even if they exist. I have no way to test, so I'll just wish you good luck.
 
Upvote 0
I think I need to tap out at this point. What that section does is look at each value in A1:A10, and if it's non-zero, puts the row in an array, which the MIN later evaluates. Since you said array formulas don't work in SC, we're out of luck. There are some array enabled functions in Excel, like SUMPRODUCT or LOOKUP, but I don't know if they behave the same way in SC, or even if they exist. I have no way to test, so I'll just wish you good luck.
Well yeah, I put it on the first post. NO ARRAY.
thank you for the help.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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