A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Filtering based on two different range criteria



 
 
Thread Tools Display Modes
  #1  
Old July 21st, 2004, 02:50 PM
Terry
external usenet poster
 
Posts: n/a
Default Filtering based on two different range criteria

Hey,

I've been set a test exercise on excel after having gone
from novice to supposed "power user" on an e-learning cd,
but I'm not feeling too much power at the minute. Here's
the problem:

I have a column titled "Time" and 400 records that are
all different moments of time that a speed camera took a
picure (just to give you the context). I want to (and it
sounds so simple), filter this column so that only photos
taken inbetween 7:00am and 9:30am OR 5:00pm and 6:30pm
are displayed. The autofilter doesnt allow two criteria
to be set and the advanced filter keeps telling me ""
and"" are invalid references.

Any help would be greatly appreciated.........

Terry
  #2  
Old July 21st, 2004, 03:26 PM
Max
external usenet poster
 
Posts: n/a
Default Filtering based on two different range criteria

One way ..

Assume Time is in col A, data in A2 down

Enter the 4 time limits, viz.: 7:00 am, 9:30 am, 5:00 pm and 6:30pm
in say D1:G1

Put in C2:

=IF(OR(AND(A2=$D$1,A2=$E$1),AND(A2=$F$1,A2=$G$ 1)),"Y","")

Copy C2 down

Now do an autofilter on col C, choose "Y" from the drop menu in C1

--
Rgds
Max
xl 97
--
Please respond, in newsgroup
xdemechanik atyahoodotcom
---
"Terry" wrote in message
...
Hey,

I've been set a test exercise on excel after having gone
from novice to supposed "power user" on an e-learning cd,
but I'm not feeling too much power at the minute. Here's
the problem:

I have a column titled "Time" and 400 records that are
all different moments of time that a speed camera took a
picure (just to give you the context). I want to (and it
sounds so simple), filter this column so that only photos
taken inbetween 7:00am and 9:30am OR 5:00pm and 6:30pm
are displayed. The autofilter doesnt allow two criteria
to be set and the advanced filter keeps telling me ""
and"" are invalid references.

Any help would be greatly appreciated.........

Terry



  #3  
Old July 21st, 2004, 03:32 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Filtering based on two different range criteria

Hi
use an Avanced filter
(http://www.contextures.com/xladvfilter01.html)


-----Original Message-----
Hey,

I've been set a test exercise on excel after having gone
from novice to supposed "power user" on an e-learning cd,
but I'm not feeling too much power at the minute. Here's
the problem:

I have a column titled "Time" and 400 records that are
all different moments of time that a speed camera took a
picure (just to give you the context). I want to (and it
sounds so simple), filter this column so that only photos
taken inbetween 7:00am and 9:30am OR 5:00pm and 6:30pm
are displayed. The autofilter doesnt allow two criteria
to be set and the advanced filter keeps telling me ""
and"" are invalid references.

Any help would be greatly appreciated.........

Terry
.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimum value based on a range Mick Worksheet Functions 2 June 30th, 2004 01:23 AM
Label SRIT General Discussion 2 June 22nd, 2004 09:42 PM
Display rows based on criteria Holly Worksheet Functions 3 June 1st, 2004 09:40 PM
Y-Axis maximum based on data range Jay Charts and Charting 3 January 14th, 2004 06:18 PM


All times are GMT +1. The time now is 08:10 AM.


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