#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default filter data


Hi everybody,

I need to filter my data from a data base and the criteria for the
removal of such data points includes: (1) if the recorded values are
not within the temperature range 5 °C to 35 °C); (2) if consecutive
temperature data points deviate by 2°C.

The data looks like this:


Time Temperature (°C)

3:40:48 PM 25.5
3:40:49 PM 25.7
3:40:50 PM -42.8
3:40:51 PM 25.6
3:40:52 PM 25.7
3:40:54 PM 25.7
3:40:55 PM 30.8
3:40:56 PM 25.7
3:40:57 PM 25.5
3:40:58 PM 25.8
3:41:01 PM 28.5
3:41:02 PM 25.7
3:41:03 PM 25.7
3:42:01 PM 25.7
3:42:03 PM 25.7
3:42:05 PM 25.6
3:43:23 PM 25.7


The time intervals are not constant and every minute has a different
set of seconds (some times the 60 sec and some times just 3 seconds of
that particular minute).

Is there any formula to sort this?

Thank you very much!




--
Sharkies
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default filter data

Put this in C2:

=IF(OR(B235,B2<5),"remove","")

and this in C3:

=IF(OR(B335,B3<5),"remove",IF(ABS(B3-B2)2,"remove",""))

Copy the formula in C3 down the column to cover the data you have in
column B.

Apply autofilter to column C, and select "remove" from the pull_down.
Highlight the visible rows and Edit | Delete Row. Then select All from
the filter pull-down and delete column C.

Actually there is an anomaly in your statement of removing consecutive
cells where the temperature differs by more than 2 degrees. Suppose
you had 24.6, 25.0, 13, 24.5, 24.7 in consecutive cells - the third
and 4th value both vary from their predecessor by more than 2 degrees,
but it could also be argued that the 3rd value is spurious, so if that
is removed then the others do not have a difference greater than 2
deg.

Hope this helps.

Pete

On Apr 18, 3:31Â*am, Sharkies
wrote:
Hi everybody,

I need to filter my data from a data base and the criteria for the
removal of such data points includes: (1) if the recorded values are
not within the temperature range 5 �C Â*to 35 Â*�C); (2) if consecutive
temperature data points deviate by 2�C.

The data looks like this:

Time Â* Â* Â* Â* Â* Â* Â* Â*Temperature (�C)

3:40:48 PM Â* Â* Â*25.5
3:40:49 PM Â* Â* Â*25.7
3:40:50 PM Â* Â* Â*-42.8
3:40:51 PM Â* Â* Â*25.6
3:40:52 PM Â* Â* Â*25.7
3:40:54 PM Â* Â* Â*25.7
3:40:55 PM Â* Â* Â*30.8
3:40:56 PM Â* Â* Â*25.7
3:40:57 PM Â* Â* Â*25.5
3:40:58 PM Â* Â* Â*25.8
3:41:01 PM Â* Â* Â*28.5
3:41:02 PM Â* Â* Â*25.7
3:41:03 PM Â* Â* Â*25.7
3:42:01 PM Â* Â* Â*25.7
3:42:03 PM Â* Â* Â*25.7
3:42:05 PM Â* Â* Â*25.6
3:43:23 PM Â* Â* Â*25.7

The time intervals are not constant and every minute has a different
set of seconds (some times the 60 sec and some times just 3 seconds of
that particular minute).

Is there any formula to sort this?

Thank you very much!

--
Sharkies


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
Excell Data Filter Fails to Integrate New Data-rows Richard-44 Excel Discussion (Misc queries) 2 November 10th 07 03:30 AM
Filter data and fill only filtered data Thad Meyers[_2_] Excel Discussion (Misc queries) 1 August 30th 07 06:26 PM
Excel 2007 Data Filter - When using cut it clears all data SEF Excel Discussion (Misc queries) 2 June 20th 07 04:10 PM
in data/filter/auto filter sp8 Excel Worksheet Functions 2 May 12th 06 01:03 AM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 03:30 PM.

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

About Us

"It's about Microsoft Excel"