Hi all
I need a help with one formula. I almost have it but need help with last condition.
Data2 is a defined name of column B to column BG. I use this with some other sumproduct formulas.
Current formula that I have is this
=TODAY()-MIN((INDEX(_Data2,0,8)))
So it is todays date (lets say 04/06/2011) minus minimum date from (INDEX(_Data2,0,8) which happens to be column I. Lets have an example
Column C --------------- Column I
1000137 ------- 05/06/2011
1003606 ------- 03/06/2011
1003606 ------- 03/06/2011
1003606 ------- 04/06/2011
1000137 ------- 01/06/2011
1000137 ------- 06/06/2011
1000137 ------- 07/06/2011
1000137 ------- 08/06/2011
1000137 ------- 09/06/2011
Minimum date on column I is 01/06/2011
so 04/06/2011 - 01/06/2011 would be 3 days.
Now I would like to add extra condition to my formula and I have not managed to get it right so far. I would like the formula to look at (INDEX(_Data2,0,2) which is Column C and (INDEX(_Data2,0,8) Column I together and check only rows where the Column C value is 1003606. So when looking the minimum date, it would look the red area only.
Lets have an example:
Column C --------------- Column I
1000137 ------- 05/06/2011
1003606 ------- 03/06/2011
1003606 ------- 03/06/2011
1003606 ------- 04/06/2011
1000137 ------- 01/06/2011
1000137 ------- 06/06/2011
1000137 ------- 07/06/2011
1000137 ------- 08/06/2011
1000137 ------- 09/06/2011
So the right answer would be:
Minimum date on column I is 03/06/2011
so 04/06/2011 - 03/06/2011 would be 1 day.
So how to change =TODAY()-MIN((INDEX(_Data2,0,8))) to suit my needs???
Any help is much appreciated.
Cheers
Rain
Bookmarks