Any way to filter cells containing formulas ?

gaftalik

Well-known Member
Joined
Feb 6, 2003
Messages
521
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I need to filter cells with formulas and not to select them , is that possible by a simple or advanced filter ?
Thank you .
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
First place this code into your workbook module...

1) Tools > Macro > Visual Basic Editor or press ALT+F11

2) Insert > Module

3) Copy and paste the following into the module...

Function IsFormula(rng As Range) As Boolean
IsFormula = rng.HasFormula
End Function

4) 'Close and Return to Microsoft Excel' or pess ALT+F11

Then, assuming that A1:B10 contains your data, and Column B contains your constants and formulas, try the following...

C1: leave empty

C2: =(1-isformula(B2))

Select/highlight A1:B10

Data > Filter > Advanced Filter

List Range: $A$1:$B$10

Criteria Range: $C$1:$C$2

Click Ok

Hope this helps!
 
Upvote 0
it didnt work with me :cry: , it didnt filtered rows which contains formula .
 
Upvote 0
gaftalik said:
it didnt work with me :cry: , it didnt filtered rows which contains formula .

Would you like me to email you a sample?
 
Upvote 0
After running across the same post here, it seems that you actually want to display rows containing formulas, not constants. In this case, change the formula for C2 to...

=isformula(B2)
 
Upvote 0

Forum statistics

Threads
1,206,834
Messages
6,075,134
Members
446,123
Latest member
junkyardforme

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