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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Filtering data based on historical values



 
 
Thread Tools Display Modes
  #1  
Old June 3rd, 2010, 11:02 PM posted to microsoft.public.excel.misc
Jim
external usenet poster
 
Posts: 1,404
Default Filtering data based on historical values

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.

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",A175,A170),1,0) would populate the C row. I just need help
creating the on/off row. Thanks for any help.

  #2  
Old June 4th, 2010, 09:31 AM posted to microsoft.public.excel.misc
steve
external usenet poster
 
Posts: 28
Default Filtering data based on historical values

in cell b1 you should manually enter "off"
then in cell b2 enter the formula

=IF(B1="off",IF(A2=80,"on","off"),IF(A270,"off", "on"))

And copy/fill that down as you need it.

Regards
Steve

"Jim" wrote in message
...
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.

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",A175,A170),1,0) would populate the C row. I just need
help
creating the on/off row. Thanks for any help.



 




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


All times are GMT +1. The time now is 09:56 PM.


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