+ Reply to Thread
Results 1 to 3 of 3

ADD or SUBTRACT based on condition

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    2

    ADD or SUBTRACT based on condition

    **A-B--------C--D
    1 X empty 50 50. (because 1st row)
    2 Y empty 10 60. (D2=D1+C2 because B2=empty) addition
    3 Z 20 empty 40. (D3=D2- B3 because C3=empty) subtraction

    please write a formula to continue this conditional addition or subtraction.
    Last edited by ranjitbd; 11-29-2010 at 04:56 PM. Reason: positioning

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: ADD or SUBTRACT based on condition

    Try this:
    Please Login or Register  to view this content.
    Copy D2 down as far as you need

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: ADD or SUBTRACT based on condition

    solved but i want repeat the formula...so every cell i want to press just enter and get the execution of the formula to avoid copy and paste in each cell

+ 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