+ Reply to Thread
Results 1 to 7 of 7

Conditional Formulas

  1. #1
    Forum Contributor
    Join Date
    07-22-2011
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    185

    Question Conditional Formulas

    I got the formula i.e.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I mentioned YEAR END DATE AT "AB9".
    Attached Files Attached Files
    Last edited by Dnyan; 01-08-2015 at 07:37 AM.

  2. #2
    Registered User
    Join Date
    01-23-2014
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    54

    Re: Conditional Formulas

    =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)))

  3. #3
    Forum Contributor
    Join Date
    07-22-2011
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    185

    Re: Conditional Formulas

    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.

  4. #4
    Registered User
    Join Date
    01-23-2014
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    54

    Re: Conditional Formulas

    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)))

  5. #5
    Forum Contributor
    Join Date
    07-22-2011
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    185

    Re: Conditional Formulas

    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.

  6. #6
    Forum Contributor
    Join Date
    07-22-2011
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    185

    Re: Conditional Formulas

    Ok, I got the formula for this,
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thank you very much for your help

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Conditional Formulas

    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)))
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with Conditional Formulas
    By KellyGates06 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2014, 02:12 AM
  2. Conditional Formulas
    By dizjackson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-14-2013, 02:54 PM
  3. Conditional Formulas
    By Mikisunshine in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2012, 12:15 PM
  4. Conditional Formulas
    By smilegirl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2008, 02:54 PM
  5. conditional formulas
    By Paul Sheats in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2005, 04:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1