PC Review


Reply
Thread Tools Rate Thread

button to seach columns for blank cells, then sort by two columns

 
 
plfiredis
Guest
Posts: n/a
 
      28th Apr 2008
I'm using excel 2007. We have a schedule that we have to follow to call
overtime in. Is there a way to create a button that when clicked would
search the columns for blank cells, then sort first by the column that it
finds a blank cell in, and then sort by another column that has the employees
number in it, search for next column with blank cell, sort and continue the
process until page range as been sorted. So it would look like this once
sorted:

Emp Emp#
Wilma 127 12/2/2006
Larry 139 8/19/2002 *10/15/02
Barney 122 2/15/2002 9/12/2002 10/3/2002
Fred 124 6/13/2002 7/27/2002 9/29/2002
Betty 121 11/2/2002 3/17/2004 5/11/2004 8/13/04


 
Reply With Quote
 
 
 
 
Mike H.
Guest
Posts: n/a
 
      29th Apr 2008
Insert a column between EMP# and the first date. In that column place this
calculation: (Assuming it is column C)

=COUNTIF(D1:AK1,">01/01/1900")

Make sure D1:AK1 will be a big enough range to take care of all your dates
you might enter for an individual. Then just sort in ascending order on this
column.



"plfiredis" wrote:

> I'm using excel 2007. We have a schedule that we have to follow to call
> overtime in. Is there a way to create a button that when clicked would
> search the columns for blank cells, then sort first by the column that it
> finds a blank cell in, and then sort by another column that has the employees
> number in it, search for next column with blank cell, sort and continue the
> process until page range as been sorted. So it would look like this once
> sorted:
>
> Emp Emp#
> Wilma 127 12/2/2006
> Larry 139 8/19/2002 *10/15/02
> Barney 122 2/15/2002 9/12/2002 10/3/2002
> Fred 124 6/13/2002 7/27/2002 9/29/2002
> Betty 121 11/2/2002 3/17/2004 5/11/2004 8/13/04
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort 4 of columns by matching cells mazin.j@gmail.com Microsoft Excel Programming 1 20th Dec 2006 09:01 PM
Button to sort a range, and sorting 12 columns tinyguppie@hotmail.com Microsoft Excel Worksheet Functions 2 19th Oct 2006 04:14 AM
Sort Cells/Columns Ed O'Brien Microsoft Excel Discussion 6 5th Sep 2006 11:19 PM
Sort columns containing merged cells. =?Utf-8?B?Um9u?= Microsoft Excel Misc 1 4th May 2005 01:08 PM
Xcel or Access sort columns of names so that I remove the intersect between 2 columns from one of the columns? William.R.Reisen Microsoft Access External Data 2 20th Dec 2003 02:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 PM.