Equation got to complicated for me

dmheller

Board Regular
Joined
May 26, 2017
Messages
142
Office Version
  1. 365
All,
Here is where I started.
=1440-SUM(IF(ISNUMBER('Line 3'!$D$4:$D$44903),IF(INT('Line 3'!$D$4:$D$44903)=INT('Line 3 calc Sheet'!B18),--(('Line 3 data copy'!$E$4:$E$44703>220)*ISNUMBER('Line 3 data copy'!$E$4:$E$44703)+('Line 3 data copy'!$F$4:$F$44703>220)*ISNUMBER('Line 3 data copy'!$F$4:$F$44703)+ ('Line 3 data copy'!$G$4:$G$44703>220)*ISNUMBER('Line 3 data copy'!$G$4:$G$44703)+('Line 3 data copy'!$H$4:$H$44703>220)*ISNUMBER('Line 3 data copy'!$H$4:$H$44703)>0))))
Now this isn't to bad as it looks up a date then finds the date and sums it in the date. So if any of E, F, G, or H are above 220 in that date, it sums that total and that's what I wont this equation to do and it works. Now I want to find how many times in that day the or state me changes but only changes from >220 to <220. I do not care if it goes from <220 to over 220. I don't know if that makes any since but I might have to throw in a dummy column to make this work. Let me know if you have any ideas.
thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Here would be an example, at 8:26 it goes from being over 220 to less than 220.
10/16/17 8:17:00 AM233.9905238.012243.9955249.9958
10/16/17 8:18:00 AM233.9905238.012243.9955249.9958
10/16/17 8:19:00 AM233.9905238.012243.9955249.9958
10/16/17 8:20:00 AM233.9905238.012243.9955249.9958
10/16/17 8:21:00 AM233.9905238.012243.9955249.9958
10/16/17 8:22:00 AM233.9905238.012243.9955249.9958
10/16/17 8:23:00 AM233.9905238.012243.9955249.9958
10/16/17 8:24:00 AM233.9905237.9968243.9955249.9958
10/16/17 8:25:00 AM233.9905237.9968243.9955249.9958
10/16/17 8:26:00 AM182.8891184.1762200.7086194.502
10/16/17 8:27:00 AM142.2131155.6269167.3712164.9063
10/16/17 8:28:00 AM125.5814137.6054150.6807148.9837
10/16/17 8:29:00 AM112.5205124.2124139.1186136.6748
10/16/17 8:30:00 AM102.2394113.7578129.8345126.7011
10/16/17 8:31:00 AM94.2112104.719121.7752118.3883
10/16/17 8:32:00 AM87.452997.67177114.8455110.6334
10/16/17 8:33:00 AM81.5892791.53004108.5879103.9354
10/16/17 8:34:00 AM76.7222486.50076102.95697.81688
10/16/17 8:35:00 AM72.425481.8886697.5343192.57902

<tbody>
</tbody><colgroup><col><col span="4"></colgroup>
 
Upvote 0
so if any one of the 4 columns goes from > 220 to < 220 OR < 220 to > 220 then you want to add all 4 numbers and do the same for any date_time where this happens ?
 
Upvote 0
No,
So currently, the way the equation works all 4 columns have to fall below 220 and this is also one min data. So with that said, I want any time all columns fall below 220 after the previous min were one was above 220. This I want to sum the number of times that happens in a given day.
 
Upvote 0
I think I understand now. Detect when all 4 columns fall below 220 for the first time. Then detect when all 4 columns rise above 220........and so on. Count the number of occurrencies per day.
 
Upvote 0
date_timeparam1param2param3param4
01/10/2017 01:0091199
01/10/2017 03:0091199NNNNNNNN
01/10/2017 05:001111911UNNUUNNU
01/10/2017 07:0011111111NNUNNNUN
01/10/2017 09:009999DDDDDDDDDOWN
01/10/2017 11:00911119NUUNNUUN
01/10/2017 13:001111911UNDUUNDU
01/10/2017 15:00119911NDNNNDNN
01/10/2017 17:001191111NNUNNNUN
01/10/2017 19:009999DNDDDNDD
01/10/2017 21:0011111111UUUUUUUUUP
01/10/2017 23:0099911DDDNDDDN
02/10/2017 01:0011111111UUUNUUUN
02/10/2017 03:009999DDDDDDDDDOWN
02/10/2017 05:00119119UNUNUNUN
02/10/2017 07:009999DNDNDNDN
02/10/2017 09:0011111111UUUUUUUUUP
02/10/2017 11:009999DDDDDDDDDOWN
02/10/2017 13:001111911UUNUUUNU
02/10/2017 15:00119911NDNNNDNN
02/10/2017 17:0011111111NUUNNUUN
02/10/2017 19:009999DDDDDDDDDOWN
02/10/2017 21:00111199UUNNUUNN
02/10/2017 23:009999DDNNDDNN
03/10/2017 01:0011111111UUUUUUUUUP
03/10/2017 03:0099911DDDNDDDN
03/10/2017 05:0099119NNUDNNUD
03/10/2017 07:009999NNDNNNDN
03/10/2017 09:0011111111UUUUUUUUUP
03/10/2017 11:00911911DNDNDNDN
03/10/2017 13:0011111111UNUNUNUN
03/10/2017 15:009999DDDDDDDDDOWN
03/10/2017 17:0011111111UUUUUUUUUP
03/10/2017 19:009999DDDDDDDDDOWN
03/10/2017 21:009111111NUUUNUUU
03/10/2017 23:009111111NNNNNNNN
UPDOWN
01/10/201711I think the best way is to use some helper columns
02/10/201713to find out whether each column is up or down
03/10/201732then concatenate the outcome
04/10/2017and detect instances of UUUU and DDDD
05/10/2017
06/10/2017an easy sumproduct table
does the daily analysis

<colgroup><col><col span="4"><col><col span="10"></colgroup><tbody>
</tbody>
 
Upvote 0
Thank you, that is the way I went, I had to add helper columns. Then just wroth the logic into the column then I did a sumif for the dates based on the helper columns. Thanks for your help and glad to see I wasn't going insane over something I couldn't do.
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,143
Members
449,363
Latest member
Yap999

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top