+ Reply to Thread
Results 1 to 5 of 5

Add values in a column to a number and then start again

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    3

    Add values in a column to a number and then start again

    Hi, I have a column of numbers and I need to find a way for the column beside it to add them up and stop at 1000 and then start again. For example:

    100
    24
    56
    320
    80

    I need to somehow add 100+24+56...up to 350 using a portion of the 320 (170 to get to 350) and then start again by applying the rest of the 320 amount of 150+80+...to get to 350 again.

    Is there a formula or do I need to use a code? I don't know how to use VBA.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,220

    Re: Add values in a column to a number and then start again

    Hi lilcheung and welcome to the forum.

    I think a MOD function will do your problem. See the attached with some random data. Column B is only for checking. Column C has the answer in it.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Add values in a column to a number and then start again

    Thank you MarvinP. This is great help. Another request...if I want to show the remaining amount to make up to 1000 (ie the 288 out of the 648 in your example), what function will I use? Would I put it in ColD? or is there a way to show it in Col C too? Thank you in advance for your help!!

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,220

    Re: Add values in a column to a number and then start again

    See if this is what you want in Col D
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-14-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Add values in a column to a number and then start again

    Thank you Marvin P. Really appreciate your help!! ;-)

+ 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