+ Reply to Thread
Results 1 to 3 of 3

Using Hours and Minutes as argument for IF function

  1. #1
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Using Hours and Minutes as argument for IF function

    Hey guys,

    So, I have both a start and end time that will produce a calc of total time taken. What I want to do is create the following if function (or a like-working one) to produce a 'score' based on duration.

    What I first wrote,
    =IF(m6<=4,40,IF(m6>=5:00<=5:59,30,IF(m6>=6:00<=6:59,20,IF(m6>=7:00,10,""))))
    The function gives me an error, but if I remove the ":00" from the numbers it'll work but not produce the correct answer. For instance, when attempted in a cell with the duration of 16:29 (over 7) it still popped out "0" for the score. It needs to be able to read minutes/hours.

    Suggestions?
    Thank you.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Using Hours and Minutes as argument for IF function

    Something like this?

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: Using Hours and Minutes as argument for IF function

    That did it, thank you Connie. I will mark answered.

+ 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. Excel 2007 : Convert number of minutes to hours and minutes
    By MikeFromIndy in forum Excel General
    Replies: 30
    Last Post: 06-05-2015, 08:10 AM
  2. Replies: 13
    Last Post: 05-03-2013, 08:42 PM
  3. [SOLVED] Function or macro to convert string with weeks, days, hours, minutes to Hours
    By kknb0800 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2012, 11:35 AM
  4. Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 AM
  5. [SOLVED] add hours & minutes to other hours & minutes to receive total hou.
    By Wes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2005, 08:06 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