Sum Until A Colored Cell

Unexpc

Active Member
Joined
Nov 12, 2020
Messages
496
Office Version
  1. 2019
Platform
  1. Windows
Hi guys
i have a sheet that i have some customers and all customers continuous from the previous. for example customer 1 start from A1 that have customer name and colored and with a color and continue to A62 and a row afterthat that colored with a color that the role of the separator between customers.
i want SUM every customers that have range (start from name customer and end in that colored separate row before next customer name) in simple say, the range of every customer Start from the customer name and end before next customer name, or better say, how sum in range that between two text not specific cell?(because i added cells and this range not have fixed range)...
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Map3
ABI
1CustomerAmountSubtotal
2A10 
320 
430 
540 
650 
760 
870280
9B80 
1090 
11100 
12110 
13120 
14130 
15140770
16C150 
17160 
18170 
19180 
20190850
21
2219001900
Blad1
Cell Formulas
RangeFormula
I2:I20I2=IF(OR(ROW(A2)=ROW($A$20),A3<>""),SUM($B$2:INDIRECT("B"&ROW(A2)))-SUM($I$1:I1),"")
B22,I22B22=SUM(B2:B21)
 
Upvote 0
Map3
ABI
1CustomerAmountSubtotal
2A10 
320 
430 
540 
650 
760 
870280
9B80 
1090 
11100 
12110 
13120 
14130 
15140770
16C150 
17160 
18170 
19180 
20190850
21
2219001900
Blad1
Cell Formulas
RangeFormula
I2:I20I2=IF(OR(ROW(A2)=ROW($A$20),A3<>""),SUM($B$2:INDIRECT("B"&ROW(A2)))-SUM($I$1:I1),"")
B22,I22B22=SUM(B2:B21)
i have this sum like this cells (I8,I15,I20) in another sheet that front of customer name (for example costumer A in Cell A1 and sum in front of customer name and next, Customer B in A2 and sum in B2 and...) but in range of sum that added and not stable, you are doing corectly but i want just like this cells I8,I15,I20 in front of customer name that in another sheet...
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,545
Members
449,317
Latest member
chingiloum

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