+ Reply to Thread
Results 1 to 5 of 5

logical and time calculation problem

  1. #1
    Registered User
    Join Date
    07-01-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    3

    logical and time calculation problem

    Hello,

    I'm new to Excel programming, but a very experienced Access-programmer.

    I want to do some time calculation in Excel, but am already stuck with the if syntax.hat is the syntax for the following expression ?


    If (timevalue in cell B6 > 17:45 then (17:45 minus timevalue in B2) else (timevalue in cell B3 minus timevalue in cell B2))

    Any help will be greatly appreciated.

    Thanks,

    W

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: logical and time calculation problem

    You get better help if you post an Excel-example of your workbook, without confidential information.

    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.

    Use BEFORE/AFTER sheets if that helps make it clearer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: logical and time calculation problem

    Try using =IF(B6>A1,A1-B2,B3-B2) I put the 17:45 in cell A1 so it can be used as a varible.

  4. #4
    Registered User
    Join Date
    07-01-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: logical and time calculation problem

    Dank voor uw antwoord. Om niet te veel elektronische post te genereren zal ik eerst de tip van BarryTSL volgen.

    W

  5. #5
    Registered User
    Join Date
    07-01-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: logical and time calculation problem

    Quote Originally Posted by BarryTSL View Post
    Try using =IF(B6>A1,A1-B2,B3-B2) I put the 17:45 in cell A1 so it can be used as a varible.
    Thanks for your fast reply. I'll give it a try and I'll come back to you with the result.

    W

+ 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