+ Reply to Thread
Results 1 to 3 of 3

Having a cell subtract from another cell and then erase contents after

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    Atl, GA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Having a cell subtract from another cell and then erase contents after

    Hello

    Will someone please help me out? I am trying to have a cell subtract a cell from another cell and entering the result into a different box but is there a way to have it erase the contents from that box once it subtracts it? That probably doesn't make much sense so here's an example. It's an inventory sheet I am working on.

    Example: In cell H4 when I type a number to subtract it enters the result into cell
    M4 I have the formula =SUM(G4,-I4,)
    so then it calculates into cell M4 Is there a way to have it erase or change the number I entered into cell H4 to 0 after it subtracts it ?

  2. #2
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: Having a cell subtract from another cell and then erase contents after

    Hard to see the sense of removing the value once subtracted. (Assuming your formula in M4 actually refers to H4 and not I4!)

    Before erasing:
    G4 = 10
    H4 = 7
    M4 = 3

    After erasing:
    G4 = 10
    H4 = 0
    M4 = 10

    So what is the value of entering a value in H4?

    g

  3. #3
    Registered User
    Join Date
    03-31-2010
    Location
    Atl, GA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Having a cell subtract from another cell and then erase contents after

    Let me try to clear this up. G4 is the stock on hand. Subtract H4 from G4, H4 is the amount used in one day. We want the sum of this(G4-H4=M4) M4 to appear as the new stock on hand and replace G4 with M4 and clear or zero out the H4 & M4 cells. Then the new stock on hand total is the only cell that remains visible.

+ 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