Hi Ashish / Vishwas ,
The problem is that the months have not been entered in the same cell relative to the data ; the formula should not be modified to take such variations into account ; instead the data format should be standardised.
If the month April is in A1 , and the corresponding data is in A4 onwards , this is an offset of 3 ; this same offset should be maintained for all the months ; thus if the data for June is from A55 onwards , the month label itself should be in A52 , not in A51.
Otherwise , instead of using a MATCH function to get the starting cell of the data , we can use a lookup table , where the row numbers for the first data item are stored , in which case the separation between the month label and the data can vary.
Narayan