Share via

STRIKE THROUGH

Anonymous
2017-08-02T15:02:42+00:00

Q: STRIKE THROUGH

I HAVE A NUMBER OF EXCEL CELLS (A1:A4)WITH THE LETTER X.

SOME OF THE X HAVE A STRIKE THROUGH X.

I WANT CONDITIONAL FORMATING TO HIGHLIGHT CELLS WITH  X CHARACTER.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-08-02T15:44:40+00:00

Use this UDF in Conditional Formatting.

Function HasStrike(Rng As Range) As Boolean

Application.Volatile

      HasStrike = Rng.Font.Strikethrough

End Function

In CF select the range of cells then use a formula  =HasStrike(cellref)

UDF needs to be stored in regular module in your workbook.

Gord

Was this answer helpful?

0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-08-02T17:11:52+00:00

    With your workbook open hit Alt + F11 to go to Visual Basic Editor.

    CTRL + r to open Project Explorer if you don't see it.

    Select your workbook/project and right-click>insert>module.

    Paste the UDF into that module.

    Alt + q to return to the Excel window.

    In CF select A1:A10 then use a formula  =HasStrike(A1)

    Gord

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-08-02T16:33:51+00:00

    I need a step by step guidance of what to be done.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-08-02T16:02:45+00:00

    Do I use VBA i.e ALt 11 , Insert Module and paste:

    Function HasStrike(Rng As Range) As Boolean

    Application.Volatile

          HasStrike = Rng.Font.Strikethrough

    End Function

    ?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2017-08-02T16:00:42+00:00

    Can you guide me step by step using the following example:.

    Cell A2 has the strike through. I what conditional formatting to detect the strike through.

    What is the nest step?

    A<br><br><br>1x
    2x

    Was this answer helpful?

    0 comments No comments