+ Reply to Thread
Results 1 to 6 of 6

Fixed figure resulting from a time range

  1. #1
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Question Fixed figure resulting from a time range

    I need please a formula that will achieve the following result for the time range provided below:

    If cell K60 sum time value is less than 62:24 = 0
    62:24-67:00 = 1121
    67:01-70:54 = 1682
    70:55-74:48 = 2524
    74:49-78:00 = 3365
    Above 78:00 = 4207

    Example:
    If cell K60 sum time value is 73:01, needed formula result should be 2524.[/B][/B]

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Fixed figure resulting from a time range

    Hi

    One way is to use reference cells and IF(AND...... functions...

    Example E1=70:55 E2=74:48

    =IF(AND(K60<F52,K60>=E52),2524,0)

    This gives you 2524

    Same way add the others conditions..

    =IF(AND(K60<F52,K60>=E52),2524,if(and.......)

    Is this works for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Re: Fixed figure resulting from a time range

    Cell C59=62:24 D59=67:00 E59=70:54 C60=74:48 D60=78:00

    =IF(AND(K60<C59),0,IF(AND(K60>C59,K60=D59),1121,IF(AND(K60>D59,K60=E59),1682,IF(AND(K60>E59,K60=C60),2254,IF(AND(K60>C60,K60=D60),3365,IF(AND(K60>D60),4207,0))))))

    K60 SUM Time value is 63:55

    The formula resulted in 0.00 insted of 1121!

    What did i do wrong please.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Fixed figure resulting from a time range

    see this

    =IF(AND(K60<C59),0,IF(AND(K60>C59,K60<=D59),1121,IF(AND(K60>D59,K60=E59),1682,IF(AND(K60>E59,K60=C60) ,2254,IF(AND(K60>C60,K60=D60),3365,IF(AND(K60>D60),4207,0))))))

    Same and for the others conditions. K60 must be >= or <= from times in Columns c-d-e

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Fixed figure resulting from a time range

    TRy this

    =INDEX({0,1121,1682,2524,3365,4207},MATCH(K60,{0,2.6,2.79,2.95,3.12,3.25}))

  6. #6
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Re: Fixed figure resulting from a time range

    It working just fine now, thank you all.

+ 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