+ Reply to Thread
Results 1 to 8 of 8

Excel formula if conition formula for 2 condition with consider timings

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Excel formula if conition formula for 2 condition with consider timings

    Hi dude

    i need urgent help of excel function formula if condition result hit or miss

    i have enclosed excel sheet

    "1 st condition is if start time less than 10:00:00 am end time is another day before 23:00:00.
    If its true result = ""hit project"", other wise ""miss""
    should consider saturday ,should not consider sunday.(mon-sat)"

    "2 nd condition is if start time greater than 10:00:00 am end time is another 2 day before 23:00:00 if its true result = ""hit project"", other wise ""miss""
    should consider saturday ,should not consider sunday.(mon-sat)"
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-07-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Excel formula if conition formula for 2 condition with consider timings

    hi dood,
    U can use sumproduct function and if condition i think result will come as for ur requirment.......

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel formula if conition formula for 2 condition with consider timings

    Hi Krishnaiah,

    Can you show how ?

    HI breadwinner, what if start time = 10:00 AM ?


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Excel formula if conition formula for 2 condition with consider timings

    Till 9:59 is first condition 10:00 is consider second condition

  5. #5
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Excel formula if conition formula for 2 condition with consider timings

    =IF(AND(A2="Tier 1",MOD(B2,1)<TIMEVALUE("10:00:00"),MOD(C2,1)<TIMEVALUE("23:00:59")),"HIT",IF(AND(MOD(B2,1)>TIMEVALUE("10:00:00"),MOD(C2,1)<TIMEVALUE("23:00:59")),"HIT",IF(AND(MOD(B2,1)<TIMEVALUE("10:00:00"),MOD(C2,1)<TIMEVALUE("23:00:59")),"HIT","MISS")))

    i try this formula check if any thing change to get acurate answer

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel formula if conition formula for 2 condition with consider timings

    I believe you need to check your criteria once again, see below results where I am getting different results;-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Exformula -HIt or Miss.xlsm

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Excel formula if conition formula for 2 condition with consider timings

    =if(and(hour(b3)<10,networkdays.intl(b3,c3,11)-1<=1,hour(c3)<23),"hit",if(and(hour(b3)>=10,networkdays.intl(b3,c3,11)-1=2,hour(c3)<23),"hit","miss"))

    #name? Error occured

    "here simple example
    if start time before 10:am (15/05/2013) end time can be till same day (15/05/2013)11:00 pm night=hit if its cross 11:00 pm miss
    if start time after 10:am (15/05/2013) end time can be till next day (16/05/2013) 11:00 pm night =hit if its cross 11:00 pm miss"

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel formula if conition formula for 2 condition with consider timings

    okay.. you got #name error since you are using Excel 2003 .. I followed the same logic in the formulas but the results are not matching with your manual entries in next column.. can you check once ? thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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