Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2007

Tip: Looking for answers? Try searching our database.

Sorting based on IF statement *please help me!*

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mikey C - 18 Sep 2007 09:44 GMT
Hi

I'm trying to create a macro which will sort a table 1st based on an
IF statement and then by a due date. What I'm trying to do is sort the
table so that any complete tasks (signalled by a "Yes" in the
designated column) will be pushed to the bottom of the list and the
most overdue to the top.

My IF statement displays a True or False in a hidden column if the
task is complete or not. Then I tried sorting by that column first and
then the due date afterwards. That didn't work either though because
the complete items are pushed right to the bottom of the sheet -
leaving hundreds of empty rows between!

I'm sure there must be an easier way. Can anyone help?
Pete_UK - 18 Sep 2007 11:14 GMT
Can't your macro just delete the blank rows?

It sounds as if you are allocating your hidden formula to many more
rows than you need, and the blank rows are indicating that the task
has not been completed. You could refine the formula so that it does
not respond to blank rows, or you could ensure that it only applies to
rows with data in them, or you could adjust your sort range to ensure
that only rows with data in are included.

So many possibilities !! It would help if you pasted your macro here.

Pete

> Hi
>
[quoted text clipped - 11 lines]
>
> I'm sure there must be an easier way. Can anyone help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.