Google Spreadsheets: Alternating Background Color on Value Change?

前端 未结 6 932
别那么骄傲
别那么骄傲 2020-12-31 07:51

there are lots of topics about Conditional Formatting in Google Spreadsheets, but not one like what I\'m looking for.

All I want to do is set an alt

6条回答
  •  礼貌的吻别
    2020-12-31 08:40

    0 / 1

    Please try this formula on B1:

    ={1;ArrayFormula(IF(OFFSET(A2,,,COUNTA(A:A)-1)<>OFFSET(A2,-1,,COUNTA(A:A)-1),1,0))}

    will add one's when new value in a row occurs.


    Counter

    Next formula will make a counter for values in A:A.

    Paste it in C1:

    ArrayFormula(SUMIF(ROW(OFFSET(B1;;;COUNTA(A:A))); "<="&ROW(OFFSET(B1;;;COUNTA(A:A)));OFFSET(B1;;;COUNTA(A:A))))


    Formating

    Conditional formatting on range A:Z with the following formula: =isOdd($C1)

提交回复
热议问题