+ Reply to Thread
Results 1 to 11 of 11

Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    61

    Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Dear All,

    See attached file.

    I have Column F "Extra Hours". Now looking at this column i want some status description in Column H

    Here are the conditions:

    If Extra Hours is < 00:00 -- SHORT FALL
    If Extra Hours is between 05:00 and 10:00 -- > 5 Hr.
    If Extra Hours is between 10:00 and 20:00 -- > 10 Hr.
    If Extra Hours is greater than 20:00 -- > 20 Hr.

    Since column F in in HH:MM format i have tried to multiply it by 24 and tried to do the same with column G but no success.

    Please advise.
    Regards
    Mohammad
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    what about between 0 and 5 hr

  3. #3
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Please try this file.
    Attached Files Attached Files
    Last edited by ramananhrm; 09-13-2013 at 05:48 AM.
    Please click 'Add reputation', if my answer helped you.

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Zaid in your second uploaded file calculation is already done what else you want

  5. #5
    Registered User
    Join Date
    07-23-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    61

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Raman,

    Looks OK with 5, 10 & 20 Hr. logic but SHORT FALL logic is wrong. I want SHORT FALL wherever the Extra Hours is less than 00:00 ( For Ex. see row 13 , 155:45-180:00 is - 24:15 ).

    Please advise.

    Regards
    Mohammad

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Zaid if time is between 0 and 5 hour what you want

  7. #7
    Registered User
    Join Date
    07-23-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    61

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Hemesh,

    "Less than 5"

    Regards
    Mohammad

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Zaid, make your table like this

    Hrs Status
    -50 Short Fall
    0 less Than 5 Hrs
    5 5 Hrs
    10 10 Hrs
    20 20 Hrs

    If answer satisfy your query Click " * "

  9. #9
    Registered User
    Join Date
    07-23-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    61

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Hemesh,

    I am still confused, why you have mentioned -50 , Short Fall is for anything less than 0.

    Regards
    Zaid

  10. #10
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Zaid vlook searching the value in hr column if it is not finding the exact match it will look for the next lower value in the column and if is not finding that value than it will return error. So if valur is less than 0 in that case it will look for next lower value and that will be - 50


    If answer resolves your query click star and mark threa as solved

  11. #11
    Registered User
    Join Date
    07-23-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    61

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    Everything working perfect but it is not showing anything for negative values. You can try also.

  12. #12
    Registered User
    Join Date
    07-23-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    61

    Re: Confused with Formula and IF function - Need to Pull out report at 3 PM today :(

    One more error. For all the values in 20s it is showing "Less than 5 Hr". Don't know why ?

+ 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. Replies: 1
    Last Post: 08-22-2013, 05:11 PM
  2. Pull Various Data From Web XML file -Copy Of XML Attached- :confused:
    By Spyderz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2012, 04:28 PM
  3. [SOLVED] Macro executes but not giving results :confused::confused::confused:
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 10:49 AM
  4. Pull data from a matrix table into a report using 2 report conditions
    By bing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2008, 11:51 AM
  5. formula to pull pivot data into static report
    By travelguy_73 in forum Excel General
    Replies: 2
    Last Post: 06-21-2008, 04:07 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