Add all prior values of last cell is >0

NewbSauce

New Member
Joined
Sep 13, 2016
Messages
2
Please help as I have spent several hours trying to figure these out. Thanks so much in advance. Will offer compensation if you can help, hope this is allowed.
———
Issue 1

I have a row of 12 numbers indicating forecasted hours (row 18)

I have a row of actual hours (row 19)

I want to add all of roe 18 until there is a value in row 19 then stop.

Currently doing sumif(c19:eek:19,,”>0”,c18:eek:19)

The challenge is if c19 is zero and d-f19 has a value then it naturally only adds if the d-f.

What formula can I write to tell it if F greater then 0 then add c-f.

————————-
Issue 2

I’m using the average and nesting it with a product.

I want to average a row of 12 numbers only by the amount of values greater then zero.

Example:
I have c-d with random values e-h with zero. I want it to find the average of c-d without taking into consideration e-h.

Ultimately adding c-d and dividing by two and not the 4 zeros in e-h.

Is this possible?
 
Last edited by a moderator:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
This is the answer to issue 1 but it doesn't make sense that you would have actual values in the end with blanks at the beginning.

=SUMIF(C19:O19,"",C18:O18)

Issue 2 is simple if your version of Excel includes AVERAGEIF (2007+)

=AVERAGEIF(C19:O19,">0")
 
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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