+ Reply to Thread
Results 1 to 6 of 6

Limiting value in cell and adding remainder in another cell

Hybrid View

  1. #1
    Registered User
    Join Date
    12-12-2011
    Location
    Philadelphia, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Limiting value in cell and adding remainder in another cell

    What I need is to limit the numerical value in one cell and add anything over that limit in another cell.

    Suppose cell A1 uses the sum formula to get its value. I want the sum to be no higher than 50. The balance remaining, whatever it may be, I want added in another SUM formula in cell A2. How can I do that?

    Thanks in advance!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Limiting value in cell and adding remainder in another cell

    For A1 try

    =MIN(50,Sum_formula)

    and in A2

    =MAX(0,Sum_formula-50)
    Audere est facere

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

    Re: Limiting value in cell and adding remainder in another cell

    Hi Shooter66 and welcome to the forum,

    See if the attached does what you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    12-12-2011
    Location
    Philadelphia, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Limiting value in cell and adding remainder in another cell

    Thank you both so much!

    Marvin, that is very close to what I need. How would I add another range to the result you have in B1? For instance whatever my balance is in B1, say I want to add A20:A25 to that?

    Thanks!

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

    Re: Limiting value in cell and adding remainder in another cell

    Hi Shooter66,

    I was thinking that you could use my example and tweak it to fit your exact problem. You can extend the range of cells that get summed in my example to fit your data. If you need another column to be summed you could add it to the right of Col B and subtract A1 and B1. I'd need to see your exact data and problem to give a better answer. I'm thinking you can figure it out from here and then modify it to fit your data.

  6. #6
    Registered User
    Join Date
    12-12-2011
    Location
    Philadelphia, Pa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Limiting value in cell and adding remainder in another cell

    I just need to know the syntax to add another range sum to this =SUM(A2:A20)-A1

    If I have to use another cell and then add them, I'll do that. You got me on the right track, I'll figure something out. Thanks!

+ 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