# How do a add a group of numbers in reverse until a condition is met?

#### Water Billing

##### New Member
I am trying to add a group of numbers together until I reach a 0 in a cell; however, I am starting with the last number in a column and going in reverse.

 100 200 300 0 450 200 600

<tbody>
</tbody>

i.e. I would like to start with the last number (600) and add until I reach a zero (600+200+450). Can someone help me? Thank you.

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

#### Marcelo Branco

##### MrExcel MVP
Welcome to Mr Excel forum

Try

 A​ B​ C​ 1​ Numbers​ Formula​ 2​ 100​ 1250​ 3​ 200​ 4​ 300​ 5​ 0​ 6​ 450​ 7​ 200​ 8​ 600​

Formula in C2
=SUM(INDEX(A2:A8,LOOKUP(2,1/(A2:A8=0),ROW(A2:A8)-ROW(A2)+1)):A8)

Hope this helps

M.

Replies
5
Views
93
Replies
4
Views
71
Replies
1
Views
359
Replies
1
Views
266
Replies
1
Views
116

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,764
Messages
5,833,568
Members
430,220
Latest member
SarasotaSlim

### 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?

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