Forum Discussion

anupambit1797's avatar
anupambit1797
Iron Contributor
Jun 18, 2025
Solved

Count U slots

Dear Experts,                      I have a case like below:- So, there's a Worksheet "Calc" below where we have Slots from 0~19 two times from Col (C~V) and (X~AQ); In ,Sheet2 we have the Log...
  • HansVogelaar's avatar
    Jun 18, 2025

    In AS2:

    =SUM(LEN(C2:V2)-LEN(SUBSTITUTE(C2:V2, "U", "")))+SUM(LEN(C2:V2)-LEN(SUBSTITUTE(C2:V2, "S", "")))/2

    In AT2:

    =SUM(LEN(X2:AQ2)-LEN(SUBSTITUTE(X2:AQ2, "U", "")))+SUM(LEN(X2:AQ2)-LEN(SUBSTITUTE(X2:AQ2, "S", "")))/2

    Fill down.

Resources