Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Complications with formulas

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:S450)))


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.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Complications with formulas

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:S450)))


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
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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
sum complications ellebelle Excel Worksheet Functions 0 July 18th 07 01:32 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
Complications Entering numbers in a cell Ms Xtine Excel Discussion (Misc queries) 2 August 16th 06 10:00 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


All times are GMT +1. The time now is 12:49 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"