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

How to get the max number in a column up to a cell Google Sheets and excel

$
0
0

This code would be in B8:

=if(C8="","",1+max(C5:C7))

Then in B9 I would have this:

=if(C9="","",1+max(C5:C8))

and eventually ending with:

=if(C8="","",1+max(C5:C365)) 

I copied the code to each cell but it auto changes the C5 to correspond with the new cell.

I started manually changing each cell so the MAX Function will range from C5 and up but by the time I got to row 40, I found myself on this page. All cells need the max function to start at C5 and then stop at the cell to the right and above.

Is there a better way than copying the code cell by cell and changing the C# and changing it to a C5?


Viewing all articles
Browse latest Browse all 9843

Trending Articles



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