+ Reply to Thread
Results 1 to 6 of 6

Function considering time record and returning a grade

  1. #1
    Registered User
    Join Date
    12-17-2019
    Location
    Dublin, Ireland
    MS-Off Ver
    2016
    Posts
    3

    Function considering time record and returning a grade

    Hi everyone!
    I have problem with building up a function which return a grade for fitness test result but considering age band for each individual. There is 7 age bands and 4 different grades. Results of the fitness test (run) are written in following format - '15:35'. I need Excel to return a grade for a run for certain individual but considering age band. Someone suggested to do index and match but I am not proficient at it. I managed to build nested IF AND function with 28 conditions but because this result is in time format, the function doesn't recognize a numbers properly. Any suggestions? I really appreciate any help on this
    Attached Files Attached Files
    Last edited by AnnaS87; 12-17-2019 at 10:55 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Function considering time record and returning a grade

    As this is an Excel forum, it would be better to attach a sample Excel workbook, rather than a Word document.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon, as it does not work on this Forum.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-17-2019
    Location
    Dublin, Ireland
    MS-Off Ver
    2016
    Posts
    3

    Re: Function considering time record and returning a grade

    Hi Pete_UK
    Thank you for your reply. Please find attached sample of actual Spreadsheet.
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Function considering time record and returning a grade

    Hello AnnaS87. Welcome to the forum.

    Please try this formula in D7 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    B
    C
    D
    6
    Age Band
    3.2 Run
    Grade
    7
    C
    15:06
    1.00
    8
    A
    15:05
    3.00
    9
    G
    15:04
    1.00
    Dave

  5. #5
    Registered User
    Join Date
    12-17-2019
    Location
    Dublin, Ireland
    MS-Off Ver
    2016
    Posts
    3

    Re: Function considering time record and returning a grade

    Hi FlameRetired, Thank you for getting back to me. Function seems to work however I am after doing something with formatting my cells and this function does not want to work in my original workbook. I am not sure what I am doing wrong with it.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Function considering time record and returning a grade

    but because this result is in time format, the function doesn't recognize a numbers properly. Any suggestions? I really appreciate any help on this
    Quote Originally Posted by AnnaS87 View Post
    Hi FlameRetired, Thank you for getting back to me. Function seems to work however I am after doing something with formatting my cells and this function does not want to work in my original workbook. I am not sure what I am doing wrong with it.
    It sounds like you have not tried my formula. It will take care of that. It works at my end.

    If you are not aware of it dates and times are numbers. In the case of times they are decimal fractions of a day. The formatting is cosmetic only ... for human eyes. When times/numbers are entered as text (as yours are) they have a numeric value of 0. To coerce those text "numbers" into their underlying numeric values simply subject them to a math operation ... or ... precede them with "--" (a double unary). See the formula. It has those.

    =IFERROR(INDEX($F$9:$F$12,MATCH(--C7,INDEX(--SUBSTITUTE($G$9:$M$12,"<",""),,MATCH(B7,$G$7:$M$7,0)),1)),1)

    Of course it is always best to take pains to enter numbers including dates and times as numbers.

+ 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. [SOLVED] Returning the highest grade from a selection of cells
    By Jamidd1 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-24-2016, 04:51 PM
  2. [SOLVED] if function not returning value when in time format
    By HPIMICHAEL02 in forum Excel General
    Replies: 4
    Last Post: 12-09-2012, 08:31 AM
  3. [SOLVED] Time function appears to be returning valid values, but logic functions invalid
    By jcdegner in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2012, 07:54 PM
  4. Replies: 1
    Last Post: 01-17-2012, 10:47 AM
  5. looking up and returning more than one record
    By ychartra01 in forum Excel General
    Replies: 2
    Last Post: 11-12-2009, 03:53 PM
  6. Returning a grade.
    By melnikok in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2007, 11:08 AM
  7. Replies: 0
    Last Post: 08-25-2005, 03:03 AM

Tags for this Thread

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