Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Complicated Sorting Data Problem

Hello everyone,

I am trying to sort a list of temperatures to analyze a chillers operation.
The chiller turns on when the outside air temperature is 80, and turns off
when the outside air temperature is 70. I am trying to find the time when
the chiller is on (temperature was above 80 and didn't drop below 70) and the
temperature is between 70 and 75. All I need is excel to display a 1 if it
is on (and between 70-75) or 0 if off, because every 1 is a unit of time.

All the sorts I have tried are unable to look back and see if it was turned
on, because it may have been above 80 twenty cells ago and now is in the mid
70's.

Any help would be great thanks in advance.

Jim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Complicated Sorting Data Problem

You are trying to "filter" not sort is my guess.

=IF(AND(A169,A1<81),1,0) entered in B1 and copied down will place a 1 in
cells where cell value is between 69 and 81

=IF(AND(A169,A1<76),1,0) entered in C1 and copied down will place a 1 in
cells where cell value is between 69 and 76


Gord Dibben MS Excel MVP

On Wed, 2 Jun 2010 07:58:11 -0700, Jim
wrote:

Hello everyone,

I am trying to sort a list of temperatures to analyze a chillers operation.
The chiller turns on when the outside air temperature is 80, and turns off
when the outside air temperature is 70. I am trying to find the time when
the chiller is on (temperature was above 80 and didn't drop below 70) and the
temperature is between 70 and 75. All I need is excel to display a 1 if it
is on (and between 70-75) or 0 if off, because every 1 is a unit of time.

All the sorts I have tried are unable to look back and see if it was turned
on, because it may have been above 80 twenty cells ago and now is in the mid
70's.

Any help would be great thanks in advance.

Jim


  #3   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Complicated Sorting Data Problem

Thank you for your reply, but the solution you provided does not solve my
problem. I have tried what you suggested, but the problem is that for the
second "if" statement you have it doesn't know whether the temperature before
it was above 80 or not...

Example of my problem is say I have the following temperatures, the second
column is what the chiller would be doing, and the third column is the
information I would want from the if statement:

78 off 0
74 off 0
75 off 0
82 on 0
80 on 0
74 on 1
75 on 0
69 off 0
75 off 0
81 on 0
74 on 1

You can see the chiller can be on or off at the same temperature value based
on what happened before. Also, the value I want between 70-75 depends on
whether it is on or off. Although I see now I could use
"If(AND(B1="on",A1<75,A170),1,0) would populate the C row. I just need help
creating the on/off row. Thanks for any help.
"Gord Dibben" wrote:

You are trying to "filter" not sort is my guess.

=IF(AND(A169,A1<81),1,0) entered in B1 and copied down will place a 1 in
cells where cell value is between 69 and 81

=IF(AND(A169,A1<76),1,0) entered in C1 and copied down will place a 1 in
cells where cell value is between 69 and 76


Gord Dibben MS Excel MVP

On Wed, 2 Jun 2010 07:58:11 -0700, Jim
wrote:

Hello everyone,

I am trying to sort a list of temperatures to analyze a chillers operation.
The chiller turns on when the outside air temperature is 80, and turns off
when the outside air temperature is 70. I am trying to find the time when
the chiller is on (temperature was above 80 and didn't drop below 70) and the
temperature is between 70 and 75. All I need is excel to display a 1 if it
is on (and between 70-75) or 0 if off, because every 1 is a unit of time.

All the sorts I have tried are unable to look back and see if it was turned
on, because it may have been above 80 twenty cells ago and now is in the mid
70's.

Any help would be great thanks in advance.

Jim


.

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
Data Sorting Problem Dado Excel Discussion (Misc queries) 2 August 29th 09 10:10 PM
problem sorting data clcnewtoaccess Excel Discussion (Misc queries) 5 February 9th 09 08:00 PM
Sorting Complicated List by Two Columns - Excel 2003 WM_Unkonwn Excel Discussion (Misc queries) 1 September 20th 07 04:25 PM
Problem with Sorting Data reggiebu Excel Discussion (Misc queries) 2 June 9th 05 09:37 PM
data sorting problem Pong Excel Worksheet Functions 0 February 18th 05 05:45 PM


All times are GMT +1. The time now is 11:12 AM.

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"