Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

How to clear all 0 values from range except for one 0 value preceding data?

$
0
0

I have a table in a Google sheet that looks like this:

The data updates daily with a new column added after Column "Date" and is intended to track how quickly my team moves through projects. I am wanting to chart the data as a scatterplot so that I can add Linear Trendlines for each series. However, these lines are affected by all of the 0 values. I would like them to start with the last 0 value that precedes the first non-zero data point. The easiest solution I can see would be to use a macro to clear 0 values from the table. I am struggling with how to

  • A) run the trendline through 0 in google sheets as there isn't really an option I can see; or
  • B) delete all 0 values except for where the cell to the left is greater than 0.

This is currently where I am at with Row C.

But would like it to look like the following:

With the table potentially looking like this (Note highlighted the row with a zero preceding a value >0):


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>