Sort Cells with formulas in 2007?

RickM

Board Regular
Joined
Dec 5, 2007
Messages
84
I am trying to sort cells that have formulas in them but I only want to sort those that have values. The cell formual is =IF(Input!C10="","",Input!C10). I need to sort on this column Only if there is a value not a formula. Now when I sort all the blank "" cell show up on top and the cell that have actual values are on the bottom of the sort. Any Suggestion?
Thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Where would you want the blanks to go? Blanks do sort to the top.
Posting examples of what you want will help get a better answer here.

Are you saying you have formulas AND values in Col C?
Or is it that you have formulas all the way down and some evaluate to values while others evaluate blank?

You could set up a helper column in D and put =If (C1<>"", D1=1,D1=2) then use col D as your first sort key.
 
Upvote 0
Thanks for the reply:
This is what the data looks like where the formula returned values
Below 8/12/2011 Meals there are approx. 30 more rows where the formula returned blank.

ColA ColB ColC
Date Expense Type Amount
8/7/2011 Car Allowance $12.00
8/8/2011 Mobile phone $23.00
8/9/2011 Entertainment $33.00
8/9/2011 Park / Tolls $13.00
8/12/2011 Auto Costs $32.00
8/12/2011 Meals $321.00

I need to sort the cells that return values from range A3:C40
By Col B [Expense Type] first then by Col A (Date) next.
It should look like this:

8/12/2011 Auto Costs $32.00
8/7/2011 Car Allowance $12.00
8/9/2011 Entertainment $33.00
8/12/2011 Meals $321.00
8/8/2011 Mobile phone $23.00
8/9/2011 Park / Tolls $13.00
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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