Hi Khurrum ,
Two points :
1. Please do not use complicated formulae if the same result can be got by using simpler means. This implies that we should use helper cells / rows / columns where ever possible , if possible ; if there is a genuine constraint that helper cells cannot be used , then the effort to get a single-cell formula is understandable ; otherwise , a blind insistence on single-cell formulae is not correct. In our daily lives , we use a multiplicity of gadgets where we admire simplicity ; we want all possible features but in the simplest form possible , but when it comes to Excel formulae we seem to think that bigger and more complex is better.
To take an example from your workbook , I see the following formula :
=AGGREGATE(9,3,(OFFSET($B2,0,1,1,COLUMNS($C2:$R2))))
I do not know what it does , nor am I interested.
Looking at the column header Totals , I put in the formula :
=SUM($C2:$R2)
and the results seem to be the same ; there may well be a reason to use the AGGREGATE function , but I am sure in the present case the same functionality can be achieved using the SUM function.
2. Can you not have your requirement in the form of conditional formatting ?
See the attached file and comment.
Narayan