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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |