Sorting a spreadsheet by strikethrough?

N

Nicol

I am wondering if you can sort as spreadsheet by the strikethrough's that are
in a column.

I know you can sort by color, alpha etc. But I have several strikethroughs
in a column and I would like those to be sorted as well.

Thanks
 
G

Gord Dibben

Sorting or Filtering?

I don't know how you would Sort by strikethrough since strikethrough has no
hierarchy to it.

Same with colors.............how would you sort by color unless you had a
helper column with the colorindex numbers?

To filter for cells that have strikethrough format you can use this UDF

Public Function IsStrike(rngRange As Range)
If rngRange.Font.Strikethrough = True Then
IsStrike = 1
End If
End Function

In a helper column enter =IsStrike(cellref)

Copy down the column and filter on 1 or 0


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top