+ Reply to Thread
Results 1 to 9 of 9

subtracting cells from next value

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    40

    subtracting cells from next value

    Hey everyone,

    I have a spreadsheet with 3 columns.. Amount, base, paid

    The amount is total produced

    Base-- base pay (draw)

    Paid-- amount comm paid

    A B C
    100,000 1000 14,000-(B1)

    BLANK 1000 BLANK

    100,000 1000 35,000-(B2+B3)


    FOR EVERY BLANK.. I am wanting to sum each 1,000, including the next 1,000 on a non-blank row and subtract from the next "paid" amount

    I am having trouble coming up with the concept..

    any help would be appreciated

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: subtracting cells from next value

    Could you use this....
    Please Login or Register  to view this content.
    Change the ranges to suit your needs. This will get you the sum of the 1000 with blanks, but will not give the subtract from part of it as I do not know the range to subtract.
    Last edited by gmr4evr1; 04-03-2015 at 10:36 AM.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    07-08-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    40

    Re: subtracting cells from next value

    This may work but...

    Not sure

    I want the following to happen

    If column a has an amount then column c will have an amount
    And that amount will subtract column b

    Column a | column b | column c
    100,000. |. 1000. | 17,000 (cell C1- B1)
    Blank. |. 1000. |. Blank
    Blank. |. 1000. |. Blank
    100,000. |. 1000. | 31,000. (Cell C4 - sum(Cell B2:B4)
    Blank. |. 1000. | blank.
    100,000. |. 1000. |35,000. (Cell C6 -sum(B5:B6)

    Thanks for your help!

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: subtracting cells from next value

    If I understand correctly, you want to subtract the value in column C with the value in column B, BUT, depending on how many blanks there are before each non-blank row, will determine which cells in column B will be used to subtract from column C? If this is correct, then I have no clue how to go about doing that.

  5. #5
    Registered User
    Join Date
    07-08-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    40

    Re: subtracting cells from next value

    That's correct... Thanks

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: subtracting cells from next value

    Hopefully one of the infamous guru's/experts can help you out.

  7. #7
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    606

    Re: subtracting cells from next value

    Hi, hopefully the attached worksheet will do what you're looking for.
    Cells in column D need to be entered as an array (Ctrl-Shift-Enter).
    And Row 1 needs to be empty.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-08-2014
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    40

    Re: subtracting cells from next value

    BEamernsw,

    Thank you for the doc.. it almost works.. I had to add some column to my table and I am getting the following...

    A LITTLE CONFUSED AS TO WHY THIS IS HAPPENING.

    Thanks for your help!!
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    606

    Re: subtracting cells from next value

    Hi, its because my formula is checking if the cell in column F is blank, but you have a 0 in there.

    So change the first "" to 0 and if you wish to have a 0 in column G as well then also change the last "" to 0.
    Please Login or Register  to view this content.

+ 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. Subtracting from different cells
    By nkitchen31 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-22-2014, 05:14 PM
  2. Replies: 0
    Last Post: 05-08-2012, 12:42 PM
  3. Subtracting cells
    By rkaiser in forum Excel General
    Replies: 3
    Last Post: 04-20-2007, 12:21 PM
  4. Subtracting From 2 Cells
    By scw1217 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2006, 08:56 PM
  5. Subtracting 2 Now() Cells
    By rich in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2006, 04:15 PM

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