+ Reply to Thread
Results 1 to 3 of 3

Using IF & AND Formula to Calculate the Balance Days

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    Doha
    MS-Off Ver
    Excel 2007
    Posts
    3

    Using IF & AND Formula to Calculate the Balance Days

    Dear

    I am Using IF & AND formula to calculate the Balance days as on a Day.
    However it seems some error as when the date is Equal to or Less than the Day to be calculated is showing Wrong.
    Row 275 & 276 in Sheet 1

    Secondly in other sheet:-
    In row U169 It has the same error.
    IN row No 167 to 171, the Balance days has to be calculated from Two Feilds Namely U & X, however the result should be what is mentioned.

    Thanks

    Shekar
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Using IF & AND Formula to Calculate the Balance Days

    I think this part of the IF statement is incorrect
    AND(($AJ$2-P275))<0
    theres only ONE condition for AND , also the test is outside the AND, and so in the example sheet its false*

    =IF(
    AND(($AJ$2-P275)>0,(($AJ$2-P275)>1825))
    ,0,
    IF(
    AND(($AJ$2-P275))<0
    ,1825,1825-($AJ$2-P275)
    )
    )
    Last edited by etaf; 03-12-2013 at 06:33 AM.

  3. #3
    Registered User
    Join Date
    03-11-2013
    Location
    Doha
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Using IF & AND Formula to Calculate the Balance Days

    HI,

    The Formulas at Both Locations AJ275 & AJ276 are Different,,.. Because the Formulae at AJ275 if Applied at AJ276 it gets result which is wrong, and Vice Versa..
    I need single formula, to fix both crieteria.

    Can u please help.

    Thanks

    Shekar

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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