PC Review


Reply
Thread Tools Rate Thread

Complications with formulas

 
 
andrew
Guest
Posts: n/a
 
      26th Jun 2008
Firstly, i'd like to thank everyone who has helped me in solving the various
queries posed. You guys are simply the best!

Please bear with me while i try to explain in detail. I'm currently working
on a project which consist of 10 worksheets (sandwiched between Start and End
sheets) and a Summary sheet at the beginning. All 10 sheets are formatted the
same, all consisting of the following table BUT updated on a weekly basis
(i.e. rows keep increasing until week 52).

A B C D
Y -0.5 0 2
W 0.5 0 2
W 0.5 1 1
X -1 2 1
Y 0.5 1 2
Y 0.5 0 1
W -0.5 1 0
W 0.5 1 0
X 0 0 0
X 0 0 0
W -0.5 2 1
Y -0.5 1 2
W 0.5 2 1
W 0.5 2 2
Y 0.5 0 2
Y 0.5 0 1

Using the above table (note: A-D does not count as row), the formula cell
will check for the following conditions:
1) SEQUENCE OF TWO (2) ZEROS (WITH POSITIVE RESULT)
a) two (2) consecutive 0s are met in column C, then if match;
b) checks the following row (row 12 for above) if cell B12 is negative digit
(-0.5 in this case), then if match;
c) it takes (C12-D12)+B12 ,i.e. in example above is (2-1)+(-0.5) = +0.5;
d) if value returned is positive (as above) then it counts as 1 occurence.
As the row keeps adding, and whenever conditions (a) to (c) are met, the
formula cell will keep counting to the total times it returned a positive
value.

Currently i have this formula but it doesn't seem to work at times
(returning #N/A or missing some counts on some of the worksheets):

=SUM(IF((FREQUENCY(IF(T7:T45=0,ROW(T7:T45)),IF(T7:T45<>0,ROW(T7:T45),0))=2)*(1-FREQUENCY(2,--T7:T45)),(S7:S45<0)*(T7:T45-V7:V45+S7:S45>0)))


2. SEQUENCE OF TWO ZEROES (TOTAL)
a) two (2) consecutive 0s are met in column C, then if match;
b) checks the following row (row 12 for above) if cell B12 is negative digit
(-0.5 in this case), then if match;
c) count the occurence of the sequence as 1. As the rows keep adding and
conditions (a) and (b) are met, it will just add to the total count.


 
Reply With Quote
 
 
 
 
andrew
Guest
Posts: n/a
 
      26th Jun 2008
Forgot to add that assuming if there are three 0s, the formula will still
only look for the first two 0s occurences. (i.e. if C12 is 0).

"andrew" wrote:

> Firstly, i'd like to thank everyone who has helped me in solving the various
> queries posed. You guys are simply the best!
>
> Please bear with me while i try to explain in detail. I'm currently working
> on a project which consist of 10 worksheets (sandwiched between Start and End
> sheets) and a Summary sheet at the beginning. All 10 sheets are formatted the
> same, all consisting of the following table BUT updated on a weekly basis
> (i.e. rows keep increasing until week 52).
>
> A B C D
> Y -0.5 0 2
> W 0.5 0 2
> W 0.5 1 1
> X -1 2 1
> Y 0.5 1 2
> Y 0.5 0 1
> W -0.5 1 0
> W 0.5 1 0
> X 0 0 0
> X 0 0 0
> W -0.5 2 1
> Y -0.5 1 2
> W 0.5 2 1
> W 0.5 2 2
> Y 0.5 0 2
> Y 0.5 0 1
>
> Using the above table (note: A-D does not count as row), the formula cell
> will check for the following conditions:
> 1) SEQUENCE OF TWO (2) ZEROS (WITH POSITIVE RESULT)
> a) two (2) consecutive 0s are met in column C, then if match;
> b) checks the following row (row 12 for above) if cell B12 is negative digit
> (-0.5 in this case), then if match;
> c) it takes (C12-D12)+B12 ,i.e. in example above is (2-1)+(-0.5) = +0.5;
> d) if value returned is positive (as above) then it counts as 1 occurence.
> As the row keeps adding, and whenever conditions (a) to (c) are met, the
> formula cell will keep counting to the total times it returned a positive
> value.
>
> Currently i have this formula but it doesn't seem to work at times
> (returning #N/A or missing some counts on some of the worksheets):
>
> =SUM(IF((FREQUENCY(IF(T7:T45=0,ROW(T7:T45)),IF(T7:T45<>0,ROW(T7:T45),0))=2)*(1-FREQUENCY(2,--T7:T45)),(S7:S45<0)*(T7:T45-V7:V45+S7:S45>0)))
>
>
> 2. SEQUENCE OF TWO ZEROES (TOTAL)
> a) two (2) consecutive 0s are met in column C, then if match;
> b) checks the following row (row 12 for above) if cell B12 is negative digit
> (-0.5 in this case), then if match;
> c) count the occurence of the sequence as 1. As the rows keep adding and
> conditions (a) and (b) are met, it will just add to the total count.
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sum complications =?Utf-8?B?ZWxsZWJlbGxl?= Microsoft Excel Worksheet Functions 0 18th Jul 2007 01:32 PM
Sum complications =?Utf-8?B?TGFuYQ==?= Microsoft Access Reports 2 7th Feb 2006 06:27 PM
Explorer.exe complications =?Utf-8?B?U2hlaXN0eQ==?= Windows XP Help 21 14th Nov 2005 11:23 PM
complications Thomas Lioces Microsoft Access 1 2nd Jun 2004 05:32 PM
complications since DSL install Dan Fagnant Microsoft Outlook Discussion 0 14th Oct 2003 06:19 PM


Features
 

Advertising
 

Newsgroups
 


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