sort by formula

BrutalLogiC

Active Member
Joined
Feb 26, 2006
Messages
274
Office Version
  1. 365
Platform
  1. Windows
hey I have a long list of formulas in a column, around 30k rows. I've noticed every so often some of the cells don't have a formula but are hard coded with data. Is there a way to sort by the formulas rather than the data showing?

e.g. I have a bunch of similar formulas like this:
=IF(C119<>"",LOOKUP(C119,ZoneDItems1!A:A,ZoneDItems1!C:C),"")

but then every so often someone has just typed the data
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Assume your data is in column A, then in Column B type =isformula(A2). Then sort on column B which will be True or False.
 
Upvote 0
Assume your data is in column A, then in Column B type =isformula(A2). Then sort on column B which will be True or False.

ah shoot, now I realise that on some occasions where there is a formula it is simply =D24504 which is just a random number and changes everytime I sort the data!..... anyway to sort this (i.e. the simple equals formula) from the =IF statements?
 
Upvote 0
Instead of sorting, maybe highlight the cells that are either true or false. Perhaps if you explained your logic for sorting there may be an alternate solution. As to your question of filtering our =If statements from = statements. I don't have an answer for that. It is either a formula or not.
 
Upvote 0
Instead of sorting, maybe highlight the cells that are either true or false. Perhaps if you explained your logic for sorting there may be an alternate solution. As to your question of filtering our =If statements from = statements. I don't have an answer for that. It is either a formula or not.
The true/false thing works great for spotting the cells missing formulas

My new query is how I spot the cells with different types of formulas, i.e. sort the column by the formulas. There's about 23k rows with formulas with =IF statements and perhaps 100 cells with formulas which are simply =D100, D24504, D600 etc.. all different. They all need changed but I need to check each one individually to see what it's looking at as it's probably wrong now. I can manually wade my way through all the formulas but perhaps there's a quicker way... I think control F and searching might work
 
Upvote 0
Thinking about this. Do your if statements return Text or Numbers? Do your direct equal statements return text or numbers? Looking at the =Type(reference) function and determining if that would work in your situation.

BTW: Ctl F will identify all the cells containing =IF.
 
Last edited:
Upvote 0
Thinking about this. Do your if statements return Text or Numbers? Do your direct equal statements return text or numbers? Looking at the =Type(reference) function and determining if that would work in your situation.

BTW: Ctl F will identify all the cells containing =IF.

they all text/words, they are all pretty similar to this:
C60 contains =IF(C60<>"",LOOKUP(C60,ZoneDItems1!A:A,ZoneDItems1!C:C),"")
C61 contains =C60
it's a nuisance as the formula in C61 is only good until the data is sorted about
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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