+ Reply to Thread
Results 1 to 2 of 2

Clear data but keep cell values

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-31-2004
    Posts
    160

    Question Clear data but keep cell values

    A2 Contains value1 say 10 for example B2 contains Value2 also 10 C2=A2+B2

    A2
    10

    B2
    10

    C2
    20

    I need to clear the values in A2 and B2 but keep the answer in C2 and transfer it to C3
    Next day new values are entered in A2 & B2 answer is in C2
    C4=C2+C3

    This is a simple example of a much larger project the problem I am having is when you clear the values in A2 and B2 the answer obviously has to be zero.

    Anyone know of a way to do this maybe with variables?

    Thanks
    Charles

  2. #2
    Forum Contributor
    Join Date
    02-23-2005
    Location
    England
    Posts
    110
    Since you haven't had any other responses, you might want to try this equation in C3 :
    =IF(AND(A2<>0,B2<>0),C2,C3)

    (C2 would have =A2+B2, as I believe you already have.)

    Now the equation in C3 has a circular reference, so an error message will come up referring to this circular reference. You will need to ignore this each time, or set the iteration option and number of iterations to 1 on the Tools|Options menu (tab - Calculation).

    I have tried this out and it seems to work, but you (or others) or your spreadsheet (something else might be thrown off by using iterations) may have objections to using iterations.

+ 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