Sum variable number of rows with formula

malisesaucier

New Member
Joined
Aug 13, 2013
Messages
2
I would like to be able to copy formula down to sum amounts in COL B based on how many text values in COL A. I have searched to no avail. Is this possible without VBA and without array (would prefer to avoid volatile functions if at all possible)? (Can't use these when uploaded to secondary program) This is simple example of problem.

TIA,
malise

abc110
def2
ghi3
jkl4
abc16
def2
ghi3
abc13
def2

<tbody>
</tbody>
 
Can your formula be modified to only sum the text, without an array formual?

Maybe this...


A
B
C
1
Text/Num​
Value​
Sum​
2
abc​
1​
10​
3
def​
2​
4
ghi​
3​
5
jkl​
4​
6
44​
5​
7
8
abc​
1​
8​
9
12​
2​
10
def​
3​
11
ghi​
4​
12
13
14
abc​
1​
3​
15
def​
2​
16
4​
3​
17
18
19
10​
1​
27​
20
abc​
2​
21
def​
3​
22
ghi​
4​
23
jkl​
5​
24
mno​
6​
25
pqr​
7​

Formula in C2 copied down
=IF(AND(A2<>"",OR(A1="Text/Num",A1="")),SUMPRODUCT(--ISTEXT(A2:$A$1000),B2:$B$1000)-SUM(C3:$C$1000),"")

M.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,216,089
Messages
6,128,760
Members
449,466
Latest member
Peter Juhnke

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