Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using Time Criteria

I have the following worksheet and would like to have a current population count as well as extrapulate information to a worksheet with only the active population shown with all the information for each name

Name Sex DOB Date In Time In Date Out Time Out

The current population would be between 12:00 AM Time In and 12:00 AM Time Ou

12:00 AM and <12:00 AM for Time Ou


The first worksheet would be a history worksheet and the second would be current only
Thanks for any suggestions





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using Time Criteria

You should be able to do this with Data=Filter=Autofilter, then select
your criteria.

However, it seems like everyone would have come in after midnight and left
before midnight. I assume the date of the coming and going would be a
consideration. You might need to add a column with a formula to flag your
records, then set the filter value on that column.

In any event, once you have filtered the data, you can select all the data
and copy it. Only the visible rows will be pasted.

Once you have it all set up, turn on the macro recorder and repeat the
actions manually. then turn off the recorder. This will give you the basic
code you need to do this.

Another option is to look at using the Advanced filter which can copy the
filtered data to another location. (and you wouldn't need a macro)

--
Regards,
Tom Ogilvy

"KPM" wrote in message
...
I have the following worksheet and would like to have a current population

count as well as extrapulate information to a worksheet with only the active
population shown with all the information for each name.

Name Sex DOB Date In Time In Date Out Time Out

The current population would be between 12:00 AM Time In and 12:00 AM Time

Out

12:00 AM and <12:00 AM for Time Out


The first worksheet would be a history worksheet and the second would be

current only
Thanks for any suggestions.







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIFS-time criteria/month Petran Excel Worksheet Functions 5 November 6th 09 12:34 PM
How to do average turn around time with criteria BrettS Excel Discussion (Misc queries) 0 June 17th 08 02:59 PM
auto set time(now) if criteria=true with no later change Rafi Benami Excel Worksheet Functions 1 April 24th 07 05:57 AM
Can I filter a table on a time criteria? Tammie Carino Excel Discussion (Misc queries) 1 September 27th 05 11:44 PM
Summing cells based on run-time criteria Jim Martin Excel Programming 1 July 13th 03 01:24 AM


All times are GMT +1. The time now is 10:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"