Easy way to highlight all cells that contain Formulas

gmooney

Active Member
Joined
Oct 21, 2004
Messages
252
Office Version
  1. 365
Platform
  1. Windows
I have a sheet with 100's of rows and columns, many of which contain formulas and many that just contain data.

I want to do conditional formatting to show any cell that is a formula vs data.

I know I can do the "show formulas" option but that doesn't work for me.

Can I create some sort of Conditional Formula to achieve this?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Code:
Sub Maybe()
    ActiveSheet.SpecialCells(xlCellTypeFormulas).Select
End Sub
 
Upvote 0
It's missing a .cells reference
Rich (BB code):
Sub Maybe()
    ActiveSheet.Cells.SpecialCells(xlCellTypeFormulas).Select
End Sub
 
Upvote 0
It's missing a .cells reference
Rich (BB code):
Sub Maybe()
    ActiveSheet.Cells.SpecialCells(xlCellTypeFormulas).Select
End Sub
Hi,

I just found out this works.

=ISFORMULA(A2) for conditional formatting formula and it works beautifully.

Thanks you!
 
Upvote 0
Solution
Thanks Michael.
You've got it through CF so all is well.
Good Luck
 
Upvote 0
I just found out this works.

=ISFORMULA(A2) for conditional formatting formula and it works beautifully.
Possibly is exactly what you want but with MS 365 and dynamic array formulas just check this circumstance is still what you want.

In the mini sheet below, it is true that cell A2 is the only cell that actually contains an entered formula but cells A3:A5 are not hard-coded values and do flow from the formula in A2.
If I select say A4, the formula bar does show a formula, though it is pale grey and cannot be edited in that cell.

1689052182354.png


23 07 11.xlsm
AB
1
211
322
433
544
6
CF Formulas
Cell Formulas
RangeFormula
A2:A5A2=SEQUENCE(4)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B6Expression=ISFORMULA(A2)textNO
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top