+ Reply to Thread
Results 1 to 9 of 9

to calculate credit days based on time slabs

  1. #1
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    to calculate credit days based on time slabs

    hii.. attached here is query image..

    Kindly help me with the required formula.. I think mod function will work but how to use it with time is a bit tricky task for me..

    Thanks..
    Attached Images Attached Images

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: to calculate credit days based on time slabs

    Well, based on your file the logic appears straightforward however I'd like to know how negative time will be recorded?

    In general terms, unless you're running a Mac or have specifically set your date system to 1904 you can't enter negative time (in time format), so you would need to format as general / number
    e.g. -12:00 = -0.5

    I'll just assume the above is the case... in which case:

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

  3. #3
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Re: to calculate credit days based on time slabs

    yes i have set to 1904 date system

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: to calculate credit days based on time slabs

    OK, understood, in which case the prior suggestion should work for you -- that question was to check to see if you were planning to enter negative time as text (e.g. '-8:30)

  5. #5
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Re: to calculate credit days based on time slabs

    Working fine for positive time but wrong results for negative time..kindly check & revert..

    Instead of -1,-1 & 2 ..0,0 & -1 should be the answer..
    Attached Images Attached Images

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: to calculate credit days based on time slabs

    apologies! perhaps

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

  7. #7
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Re: to calculate credit days based on time slabs

    Excellent..but 1 more small issue noticed now..

    The formula provided for slabs:

    Hours Credit
    < 8 0
    >=8 <16 1
    >=16 < 24 2
    >=24 < 32 3

    I wanted slabs as follows:

    Hours Credit
    upto 8 0
    >8 to 16 1
    >16 to 24 2
    >24 to 32 3

  8. #8
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: to calculate credit days based on time slabs

    OK, so perhaps:

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

  9. #9
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Re: to calculate credit days based on time slabs

    Perfect!! Thanks a lot Xlent..

+ 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] How to get sum of overdue payment based of given credit days period
    By devawad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2018, 02:16 AM
  2. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  3. Calculate time same day and multiple days
    By effendrew in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-30-2015, 01:52 PM
  4. Replies: 0
    Last Post: 06-11-2015, 03:12 AM
  5. [SOLVED] If Conditions to calculate slabs - URGENT
    By manojsamuel2003 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2015, 06:31 AM
  6. Add to total credit by 30, 60, 90 days
    By ianmb in forum Excel General
    Replies: 7
    Last Post: 01-18-2011, 11:53 AM
  7. Calculation of tax based on tax slabs
    By vikesh in forum Excel General
    Replies: 5
    Last Post: 01-15-2005, 01:11 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