Forum Discussion
HB Energy
Mar 10, 2018Copper Contributor
Daily average,skipping cells
I’m attempting to make a formula that can use in our pump stations. The formula as currently written functions properly when I am at the station DAILY (The meters are gallons, and “/42” is added to co...
- Mar 10, 2018
Hi,
that could be like
=IF(B3<>"", (B3-LOOKUP(2,1/($B$2:B2<>""),$B$2:B2))/42 /(A3-LOOKUP(2,1/($B$2:B2<>""),$A$2:A2)), "")
if put the formula in B3 and drag it down. LOOKUP finds the value of the previous non-empty cell in the column B (first LOOKUP) and value of the related cell in A (second LOOKUP)
Please see attached
SergeiBaklan
Mar 10, 2018MVP
Hi,
that could be like
=IF(B3<>"", (B3-LOOKUP(2,1/($B$2:B2<>""),$B$2:B2))/42 /(A3-LOOKUP(2,1/($B$2:B2<>""),$A$2:A2)), "")
if put the formula in B3 and drag it down. LOOKUP finds the value of the previous non-empty cell in the column B (first LOOKUP) and value of the related cell in A (second LOOKUP)
Please see attached
HB Energy
Mar 11, 2018Copper Contributor
Wow you really know your stuff; that works perfect. Thanks. When I use “fill” down, it works just right, but when I try and copy/paste it to column D, it’s not working. Should I not use copy paste? (Im not sure how to fill to the next columns. I’m using an iPad btw). Please see attached. Thank you!
- SergeiBaklanMar 12, 2018MVP
I adjusted absolute and relative references
=IF(B3<>"", (B3-LOOKUP(2,1/(B$2:B2<>""),B$2:B2))/42 /($A3-LOOKUP(2,1/(B$2:B2<>""),$A$2:$A2)), "")
now you may copy/paste to next column.
Please see attached.
- HB EnergyMar 12, 2018Copper ContributorPerfect. Thanks again!