Sum values in a row till blank cell

GLOJACK

New Member
Joined
Sep 16, 2020
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello, hoping someone can help, there have been similar questions for a formula such as this, but I haven't seen it in row form. I am looking to achieve the # in column answer. The rows #'s for the date in which they appear, I only want to count in sequence from the start # i the last cell (9/14) to the last # before the blank cell. Please can anyone assist?

Row Labels
9/8/2020​
9/9/2020​
9/10/2020​
9/11/2020​
9/12/2020​
9/13/2020​
9/14/2020​
ANSWER
A
1​
0
B
1​
1​
2​
1​
1​
1​
2​
C
1​
1​
1​
1​
1​
1​
4​
D
1​
1​
1​
0​
E
1​
1​
1​
0​
F
1​
1​
1​
1​
G
1​
1​
1​
1​
1​
1​
3​
H
1​
1​
1​
I
1​
1​
1​
1​
1​
1​
1​
7​
J
1​
0​
K
1​
1​
1​
0​
L
1​
1​
1​
1​
2​
 
In that case how would the formula know which cell to start counting in?
You wanted a formula that would return 0 if the last column was blank, which is what it does.
Correct and the forumla does just that, very thankful for your help. I just wonder if there is a way to have it update when a new column is added w/o needing to change the range. Maybe there is a way to do a vba to update a formula range when ran?
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
If you stick with the layout you showed in your op, then when you insert a new column before the answer column, the formula will change to reflect that.
 
Upvote 0
If you stick with the layout you showed in your op, then when you insert a new column before the answer column, the formula will change to reflect that.
OK thank you, i changed the format a bit to accompany addtional data but will try to revert.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
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