+ Reply to Thread
Results 1 to 3 of 3

Thread: Divide an number of jobs without ending up with decimals

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    19

    Divide an number of jobs without ending up with decimals

    Hi all,

    First post but wont be my last great site!

    I'd appreciate some help with a little project I have been working on.

    My knowledge of VB is nil (at the moment)

    I'm trying to create a formula which will allow me to do the following

    1. Enter the number of jobs received
    2. Divide it by the staff available without ending up with decimals.

    As an example. Say I have 60 jobs to be allocated and there are 13 peeps to distribute them to I'm currently getting 4.62. What I need to do is make sure that the jobs are only issued as whole numbers. E.g 5 peeps gets 4 and 8 get 5. I also need to factor in jobs on hand etc but I have already cracked this.

    Hope that makes sense?

    Any help would be appreciated. Thanks.
    Last edited by valius; 04-03-2009 at 01:43 PM.

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,055

    Re: Divide an number of jobs without ending up with decimals

    If you have the number of jobs in A2 and the number of staff in B2 then you can use this formula in D2 to get the low number [of jobs]

    =INT(A2/B2)

    Then in D3 to get the high number [if there is one]

    =IF(MOD(A2,B2),D2+1,"")

    Then in E2 to get the number of people working the number of jobs in D2

    =B2-MOD(A2,B2)

    and in E3

    =IF(D3="","",B2-E2)

  3. #3
    Registered User
    Join Date
    04-02-2009
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Divide an number of jobs without ending up with decimals

    Smashing thank you for the quick reply!

    I'll give it a try tomorrow when I get it into work! (No excel on the home PC atm).


    Edit Worked a treat! Thanks again!
    Last edited by valius; 04-03-2009 at 01:43 PM.

+ 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.2.0