+ Reply to Thread
Results 1 to 2 of 2

whats wrong with if??

  1. #1
    Registered User
    Join Date
    01-25-2006
    Posts
    21

    whats wrong with if??

    i have a formula which is supposed to tell me wether a person is up to date with payments

    =IF((IF(U2>$AB$2,(Y2*(S2/W2))-0.5,0))<R2,"ok","late")


    where the first embedded function establishes if the contract has begun and returns how much they should have paid so far if it has,

    IF(startdate>today,(dayssofar*(totaldue/totaldays))-marginforerror,0)

    then if this is greater than how much they have paid then it tells me if they are ok or late. simple enough

    IF(result<totalrecieved,"ok",late")

    but it doesnt work, if a contract is 60 days in and they've only paid for 30 it still says they are ok??

    I've tried my arguments the other ways round but in my head this should work.


    HEEEELLLLLPPPPPP

  2. #2
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    Quote Originally Posted by duncan79
    i have a formula which is supposed to tell me wether a person is up to date with payments

    =IF((IF(U2>$AB$2,(Y2*(S2/W2))-0.5,0))<R2,"ok","late")


    where the first embedded function establishes if the contract has begun and returns how much they should have paid so far if it has,

    IF(startdate>today,(dayssofar*(totaldue/totaldays))-marginforerror,0)

    then if this is greater than how much they have paid then it tells me if they are ok or late. simple enough

    IF(result<totalrecieved,"ok",late")

    but it doesnt work, if a contract is 60 days in and they've only paid for 30 it still says they are ok??

    I've tried my arguments the other ways round but in my head this should work.


    HEEEELLLLLPPPPPP

    Your inner 'if' statement, try: if(startdate<today, ....)

    (You want to do the calculation if the start date is before today, ie. less than today.)

    Scott

+ 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