• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

highlighter 4 consecutive

hello, can someone please help me solving this?

i am trying to highlight 4 cells starting with the cell that contains the word "da". i tried to make it from the conditional formating tools but it only highlight the cell that contains the cell with that text. i attached 2 pictures for a better understanding, one is how it is with conditional cormating rool and the othes is how i would like to be

thank you in advanceWhatsApp Image 2024-01-13 at 06.07.19_31e5fb72.jpgWhatsApp Image 2024-01-13 at 06.05.27_f951977d.jpg
 
See the conditional formatting in the attached for cells E3:O16
Slightly different CF for cells B3:D16.
1705147693463.png
 

Attachments

  • Chandoo55841.xlsx
    9.3 KB · Views: 9
See the conditional formatting in the attached for cells E3:O16
Slightly different CF for cells B3:D16.
View attachment 86173
Nice! Well spotted on the wrapping problem.
My attempt to create one condition was something of a nuclear option when simply used to drive a conditional format.
Code:
= TestPriorCellsλ(count, string)

=OR(
    MAP(
        SEQUENCE(1, n, 0, -1),
        LAMBDA(k, LET(
            testCell, OFFSET(currentCell, 0, k),
            IFERROR(testCell = string, FALSE))
        )
    )
)
1705262292523.png
The values to the right define the block length and the key values to be highlighted.
 

Attachments

  • Chandoo55841.xlsx
    18.9 KB · Views: 3
Back
Top