Romi Kishore
New Member
- Joined
- Jul 29, 2011
- Messages
- 5
I am trying to find out Minimum or Maximum of a column on each of the rows where the particular number on the row is excluded from the calculation. The actual theme of my endeavor is the following...
A Non-Null Column FROM Date TO Date Conditionally Format if either FROM or TO Date
falls In Any Other Range
------------------ -------------- ---------- ----------------------------------------------
Project A 05/28/2013 06/15/2013 Yes
Project B 05/28/2013 06/01/2013 Yes
Project C 06/26/2013 07/09/2013 No
Project D (blank) (blank) No
Project E 07/17/2013 08/02/2013 No
Project F 05/27/2013 05/27/2013 No
Project G 04/24/2013 05/29/2013 Yes
Can anybody please suggest some ideas? I came up with a formula to give me non-contiguous ranges that I can put in Indirect and can find the Minimum and Maximums for each row; but it apparently doesn't work in Conditional Formatting and it's too long. I may also add that I did try Min(IF...) thing but it doesn't work ... fails for that blank date. Changed the formula to Array formula but the comparison with each row doesn't seem to work either. Min(IF($B:$B<>$B2,$B:$B)) ... $B2 stays stagnant if I apply this as an array formula.
'Textual Ranges - JUST to obtain POC (Proof of Concept)...
=IF(OR(ROW()=2,ROW()=COUNTA($A:$A)),IF(ROW()=2,IF(COUNTA($A:$A)>1,"$B3:$B"&COUNTA($A:$A),"$B2:$B2"),IF(COUNTA($A:$A)>1,"$B2:$B"&COUNTA($A:$A)-1,"$B2")),IF(COUNTA($A:$A)>1,"$B2:$B"&ROW()-1&",$B$"&ROW()+1&":$B$"&COUNTA($A:$A),"$B2"))
'Actual formula for finding Minimum...
=MIN(IF(OR(ROW()=2,ROW()=COUNTA($A:$A)),INDIRECT(IF(ROW()=2,IF(COUNTA($A:$A)>1,"$B3:$B"&COUNTA($A:$A),"$B2:$B2"),IF(COUNTA($A:$A)>1,"$B2:$B"&COUNTA($A:$A)-1,"$B2"))),IF(COUNTA($A:$A)>1,(INDIRECT("$B2:$B"&ROW()-1),INDIRECT("$B$"&ROW()+1&":$B$"&COUNTA($A:$A))),INDIRECT("$B2"))))
'Actual formula for finding Maximum...
=MAX(IF(OR(ROW()=2,ROW()=COUNTA($A:$A)),INDIRECT(IF(ROW()=2,IF(COUNTA($A:$A)>1,"$C3:$C"&COUNTA($A:$A),"$C2:$C2"),IF(COUNTA($A:$A)>1,"$C2:$C"&COUNTA($A:$A)-1,"$C2"))),IF(COUNTA($A:$A)>1,(INDIRECT("$C2:$C"&ROW()-1),INDIRECT("$C$"&ROW()+1&":$C$"&COUNTA($A:$A))),INDIRECT("$C2"))))
A non-conventional out of the box formula is the need of the hour, as I can imagine. Please help.
A Non-Null Column FROM Date TO Date Conditionally Format if either FROM or TO Date
falls In Any Other Range
------------------ -------------- ---------- ----------------------------------------------
Project A 05/28/2013 06/15/2013 Yes
Project B 05/28/2013 06/01/2013 Yes
Project C 06/26/2013 07/09/2013 No
Project D (blank) (blank) No
Project E 07/17/2013 08/02/2013 No
Project F 05/27/2013 05/27/2013 No
Project G 04/24/2013 05/29/2013 Yes
Can anybody please suggest some ideas? I came up with a formula to give me non-contiguous ranges that I can put in Indirect and can find the Minimum and Maximums for each row; but it apparently doesn't work in Conditional Formatting and it's too long. I may also add that I did try Min(IF...) thing but it doesn't work ... fails for that blank date. Changed the formula to Array formula but the comparison with each row doesn't seem to work either. Min(IF($B:$B<>$B2,$B:$B)) ... $B2 stays stagnant if I apply this as an array formula.
'Textual Ranges - JUST to obtain POC (Proof of Concept)...
=IF(OR(ROW()=2,ROW()=COUNTA($A:$A)),IF(ROW()=2,IF(COUNTA($A:$A)>1,"$B3:$B"&COUNTA($A:$A),"$B2:$B2"),IF(COUNTA($A:$A)>1,"$B2:$B"&COUNTA($A:$A)-1,"$B2")),IF(COUNTA($A:$A)>1,"$B2:$B"&ROW()-1&",$B$"&ROW()+1&":$B$"&COUNTA($A:$A),"$B2"))
'Actual formula for finding Minimum...
=MIN(IF(OR(ROW()=2,ROW()=COUNTA($A:$A)),INDIRECT(IF(ROW()=2,IF(COUNTA($A:$A)>1,"$B3:$B"&COUNTA($A:$A),"$B2:$B2"),IF(COUNTA($A:$A)>1,"$B2:$B"&COUNTA($A:$A)-1,"$B2"))),IF(COUNTA($A:$A)>1,(INDIRECT("$B2:$B"&ROW()-1),INDIRECT("$B$"&ROW()+1&":$B$"&COUNTA($A:$A))),INDIRECT("$B2"))))
'Actual formula for finding Maximum...
=MAX(IF(OR(ROW()=2,ROW()=COUNTA($A:$A)),INDIRECT(IF(ROW()=2,IF(COUNTA($A:$A)>1,"$C3:$C"&COUNTA($A:$A),"$C2:$C2"),IF(COUNTA($A:$A)>1,"$C2:$C"&COUNTA($A:$A)-1,"$C2"))),IF(COUNTA($A:$A)>1,(INDIRECT("$C2:$C"&ROW()-1),INDIRECT("$C$"&ROW()+1&":$C$"&COUNTA($A:$A))),INDIRECT("$C2"))))
A non-conventional out of the box formula is the need of the hour, as I can imagine. Please help.