+ Reply to Thread
Results 1 to 8 of 8

IF Formula with Dates

  1. #1
    Registered User
    Join Date
    04-04-2011
    Location
    VA
    MS-Off Ver
    Excel 2016
    Posts
    43

    Unhappy IF Formula with Dates

    Please help (inexperience with dates) (see attachment)

    Basically I would like to say


    Balance remaining X11 = IF B4 Date is 7 days more/after I11 then I would like for the subtraction P11 - W 11 to have incurred Labor hours , basically the task is done, we shouldnt need the labor hours in with "balance remaining"

    Balance remaining X11 currently = $585.68

    I would like if the statement is true, the number should be $194.60

    If the statement is False, then we can just do P11 - W11 $585.68

    thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: IF Formula with Dates

    the follwing may be helpfull

    =$B$4---TRIM(SUBSTITUTE(RIGHT(I11,10),"-",""))
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  3. #3
    Registered User
    Join Date
    04-04-2011
    Location
    VA
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: IF Formula with Dates

    Bump for more help

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: IF Formula with Dates

    you need to try explaining again, you seem to be saying either way if the statement is True or False P11=W11

    maybe break it down to if True show what you want
    if False show that
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: IF Formula with Dates

    maybe this but i'm not making sense of what you want i fear

    =IF(B4-(TRIM(RIGHT(I11,9))+0)>11,194.6,(P11-W11))

  6. #6
    Registered User
    Join Date
    04-04-2011
    Location
    VA
    MS-Off Ver
    Excel 2016
    Posts
    43

    Exclamation Re: IF Formula with Dates

    Quote Originally Posted by scottylad2 View Post
    maybe this but i'm not making sense of what you want i fear

    =IF(B4-(TRIM(RIGHT(I11,9))+0)>11,194.6,(P11-W11))
    very close!!! I need an actually formula though, not just the $194.60 number, so the formula should get me the $194.60...if that makes sense.

  7. #7
    Registered User
    Join Date
    04-04-2011
    Location
    VA
    MS-Off Ver
    Excel 2016
    Posts
    43

    Unhappy Re: IF Formula with Dates

    Quote Originally Posted by scottylad2 View Post
    you need to try explaining again, you seem to be saying either way if the statement is True or False P11=W11

    maybe break it down to if True show what you want
    if False show that
    sorry for confusion,

    If Statement is false, then P11 - W11 which in the excel formula, it should get me : $585.68


    IF The statement is True, that the B4 date is 7+ days more, then take (L11 * K11) + SUm(Q11:U11) so you get that number, we'll call it XX

    then take P11 - XX which will


    give me the formula for X11

  8. #8
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: IF Formula with Dates

    use

    =IF($B$4-TRIM(SUBSTITUTE(RIGHT(I11,10),"-",""))>7,P11-(L11*K11+SUM(Q11:U11)),P11-W11)

+ 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