I got the formula i.e.I mentioned YEAR END DATE AT "AB9".Formula:
Please Login or Register to view this content.
I got the formula i.e.I mentioned YEAR END DATE AT "AB9".Formula:
Please Login or Register to view this content.
Last edited by Dnyan; 01-08-2015 at 07:37 AM.
=IF(OR(A8="2010/2011",A8="2011/2012"),"NOT INSURED",IF((SUMPRODUCT(--(Data!$F$4:$F$1998=$A$1),--(Data!$B$4:$B$1998>=O8),--(Data!$B$4:$B$1998<=P8),Data!$C$4:$C$1998))=0,"Nil",SUMPRODUCT(--(Data!$F$4:$F$1998=$A$1),--(Data!$B$4:$B$1998>=O8),--(Data!$B$4:$B$1998<=P8),Data!$C$4:$C$1998)))
Thanks you very much for your help, but it will show only for particular year of 2010/2011 & 2011/2012. It should be calcuate as per Start Date mentioned in Data Sheet as 01/02/2012.
I'm not sure I understood exactly what you need, but try this one:
=IF(AND(Data!$G$1<41091,OR(A8="2010/2011",A8="2011/2012")),"NOT INSURED",IF((SUMPRODUCT(--(Data!$F$4:$F$1998=$A$1),--(Data!$B$4:$B$1998>=O8),--(Data!$B$4:$B$1998<=P8),Data!$C$4:$C$1998))=0,"Nil",SUMPRODUCT(--(Data!$F$4:$F$1998=$A$1),--(Data!$B$4:$B$1998>=O8),--(Data!$B$4:$B$1998<=P8),Data!$C$4:$C$1998)))
The Start Date =Data!G1, is change every time, and the year of insured also change every time in between five years. so it is not fixed that not insured for the particular period 2010/2011 & 2011/2012. If the Start is 01/02/2013 then the period not insured should be from 2010/2011, 2011/2012, and 2012/2013. it can be one year not insured or it will be inusred hole five years.
So the required conditions is as per Start date mentioned in Data sheet. Not insured year will be decide as per Start Date.
Ok, I got the formula for this,
Formula:
Please Login or Register to view this content.
Thank you very much for your help
see the attached file
B8=IF(YEAR(Data!$G$1)>=RIGHT(MD!A8,4)*1,"Not Insured",SUMPRODUCT(--(Data!$F$4:$F$1998=$A$1),--(Data!$B$4:$B$1998>=DATE(LEFT(A8,4)*1,MONTH(Data!$G$1),DAY(Data!$G$1))),--(Data!$B$4:$B$1998<=DATE(LEFT(A8,4)+1,MONTH(Data!$G$1),DAY(Data!$G$1)-1)),--(Data!$C$4:$C$1998>0)))
C8=IF(YEAR(Data!$G$1)>=RIGHT(MD!A8,4)*1,"Not Insured",SUMPRODUCT(--(Data!$F$4:$F$1998=$A$1),--(Data!$B$4:$B$1998>=DATE(LEFT(A8,4)*1,MONTH(Data!$G$1),DAY(Data!$G$1))),--(Data!$B$4:$B$1998<=DATE(LEFT(A8,4)+1,MONTH(Data!$G$1),DAY(Data!$G$1)-1)),--(Data!$C$4:$C$1998)))
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks