troubleshooting Question

How to sum pairs of numbers in an Excel column, even if separated by blank rows

Avatar of Wizzin
Wizzin asked on
Microsoft ExcelMicrosoft Applications
12 Comments1 Solution1141 ViewsLast Modified:
I need to add up pairs of numbers, even when they are separated by blank rows.  My spreadsheet looks like this:
      A      B
1      ST      73.8
2      SB      -71.24
3      -      
4      -      
5      -      
6      -      
7      ST      83.63
8      -      
9      SB      -76.11
10      ST      82.25
11      SB      -77.3
12      ST      80.92
13      SB      -77.81
14      -      
15      -      
16      -      
17      ST      90.35
18      SB      -85.77

The labels stand for Swing Top and Swing Bottom, so adding one SB and one ST yields the net price move of that swing. I want to put a formula into column C that will add up each ST and SB pair and put the sum in the row next to the lower item in the pair, like this:

      A      B             C      
1      ST      73.8      
2      SB      -71.24      2.56
3      -            
4      -            
5      -            
6      -            
7      ST      83.63      12.39
8      -            
9      SB      -76.11      7.52
10      ST      82.25      6.14
11      SB      -77.3      4.95
12      ST      80.92      3.62
13      SB      -77.81      3.11
14      -            
15      -            
16      -            
17      ST      90.35      12.54
18      SB      -85.77      4.58

I need the net prices lined up this way, so that I can associate them with the date of the swing end, and also so I can perform additional study -- adding up different ranges of swings.

Thank you in advance for your help!!

wizzin
ASKER CERTIFIED SOLUTION
Angelo Mileto

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros