+ Reply to Thread
Results 1 to 7 of 7

Incremental Division [Almost there]

  1. #1
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Incremental Division [Almost there]

    I have hours in columns extended out several years by month. For this example it starts at A1. In another spreadsheet I have those months split with 2 dates for every month. What I need to do is to come up with a formula that will allow me to divide each month evenly to spread across the 2 dates for the correlating month on the spreadsheet with two dates for each month. I have hundrunds of line items that span over 10 years so a formula will help tremendously. Also, if someone has a better recommendation for a title of this thread please let me know.


    January-12 February-12 March-12 April-12
    100 100 100 100
    1/8/2012 1/26/2012 2/10/2012 2/23/2012 3/6/2012 3/20/2012 4/10/2012 4/28/2012
    50 50 50 50 50 50 50 50
    Last edited by kgibson20; 02-28-2012 at 01:35 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Incremental Division

    Can you upload an example spreadsheet (Go Advanced > Manage Attachments)? That would help.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Incremental Division

    Hope this helps. I want the formula to go into the cells with the 50s. As you can see Im simply dividing the hours from the monthly row evenly into 2 bimonthly date cells below. I need to do this for 10 years.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Incremental Division

    Try this in A4 dragged to the right. If the monthly number is odd, it adds 1 to the first monthly value (i.e. if the total is 81, you'll get 41 and 40)

    Please Login or Register  to view this content.
    Does this work for you?

  5. #5
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Incremental Division

    It works for the cell I originally type the formula in, but I'm getting a #N/A when I try to copy it into other cells in the same row. I don't this problem on the example sheet. It works fine. Is there something I should look out for that would cause this issue?

    =AP11+(IF(MONTH(AQ2)=MONTH(AR2),ROUNDUP(HLOOKUP(AQ2,Sheet1!L1:$BQ$5,5)/2,0),ROUNDDOWN(HLOOKUP(AQ2,Sheet1!L1:$BQ$5,5)/2,0)))

  6. #6
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Incremental Division

    Never mind, it was the $ sign on the first portion of the range of the Hlookup.
    Last edited by kgibson20; 02-28-2012 at 01:09 PM.

  7. #7
    Registered User
    Join Date
    01-29-2008
    Posts
    68

    Re: Incremental Division

    It appears that I'm having a rounding issue at the end. On my first line item I was off 57 on 3000+ hours. Anyway to correct this?

+ 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