PC Review


Reply
Thread Tools Rate Thread

Can a cell remember a number?...

 
 
Markv
Guest
Posts: n/a
 
      23rd Jun 2008
Hi all

If I generate a number in cell A1 for example, can cell B1 receive the value
and remember it when I re-generate a new number in cell A1, a new cell B2
should display the new number from A1, and B1 should still show the first
value generated from A1

Thanks for any help on this one
Hope it makes sense...
 
Reply With Quote
 
 
 
 
Nayab
Guest
Posts: n/a
 
      23rd Jun 2008
On Jun 23, 11:59*am, Markv <Ma...@discussions.microsoft.com> wrote:
> Hi all
>
> If I generate a number in cell A1 for example, can cell B1 receive the value
> and remember it when I re-generate a new number in cell A1, a new cell B2
> should display the new number from A1, and B1 should still show the first
> value generated from A1
>
> Thanks for any help on this one
> Hope it makes sense...


In case u wish the values generated by some formula in A1 to be
displayed in different cells as and when the inputs to A1 changes, u
can actually record a paste value code in the next blank cell in
column B and you can run this code on change in A1
 
Reply With Quote
 
Markv
Guest
Posts: n/a
 
      23rd Jun 2008
Hi thanks for the input, however I am only learning just how to work with
formulas in excell, so I would have no idea, how to set this up.
Can you help "Nayab"?

thanks mate

"Nayab" wrote:

> On Jun 23, 11:59 am, Markv <Ma...@discussions.microsoft.com> wrote:
> > Hi all
> >
> > If I generate a number in cell A1 for example, can cell B1 receive the value
> > and remember it when I re-generate a new number in cell A1, a new cell B2
> > should display the new number from A1, and B1 should still show the first
> > value generated from A1
> >
> > Thanks for any help on this one
> > Hope it makes sense...

>
> In case u wish the values generated by some formula in A1 to be
> displayed in different cells as and when the inputs to A1 changes, u
> can actually record a paste value code in the next blank cell in
> column B and you can run this code on change in A1
>

 
Reply With Quote
 
ARGT
Guest
Posts: n/a
 
      23rd Jun 2008
I have a similar requirement. A formula in a column of cells uses a number
from an input cell. When I change the input value after already completing
some calculations in the column, all the previous values in the column change
to the new inputted value.

I understand the "Special Paste Value" approach but how do I set up the cell
to do that automatically. This seems like other problems I have in attempting
to link a macro with a cell (I can link it to a "hot button" etc but not to a
cell) .... any advice?

thanks for any input.

ARGT

"Nayab" wrote:

> On Jun 23, 11:59 am, Markv <Ma...@discussions.microsoft.com> wrote:
> > Hi all
> >
> > If I generate a number in cell A1 for example, can cell B1 receive the value
> > and remember it when I re-generate a new number in cell A1, a new cell B2
> > should display the new number from A1, and B1 should still show the first
> > value generated from A1
> >
> > Thanks for any help on this one
> > Hope it makes sense...

>
> In case u wish the values generated by some formula in A1 to be
> displayed in different cells as and when the inputs to A1 changes, u
> can actually record a paste value code in the next blank cell in
> column B and you can run this code on change in A1
>

 
Reply With Quote
 
Gary''s Student
Guest
Posts: n/a
 
      23rd Jun 2008
Here is an example that keeps a running record of the computations in cell
A1. It is a worksheet event macro. As the value in A1 changes, each new
value is recorded in column B:

Private Sub Worksheet_Calculate()
Set a1 = Range("A1")
v = a1.Value
If IsEmpty(Range("B1").Value) Then
Range("B1").Value = a1.Value
Exit Sub
End If
n = Cells(Rows.Count, "B").End(xlUp).Row
If v = Cells(n, "B").Value Then Exit Sub
Cells(n + 1, "B").Value = v
End Sub

The macro should be installed in the worksheet code area, not a standard
module.
--
Gary''s Student - gsnu200793


"Markv" wrote:

> Hi all
>
> If I generate a number in cell A1 for example, can cell B1 receive the value
> and remember it when I re-generate a new number in cell A1, a new cell B2
> should display the new number from A1, and B1 should still show the first
> value generated from A1
>
> Thanks for any help on this one
> Hope it makes sense...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I make access remember a last unbound number efandango Microsoft Access Form Coding 1 8th Dec 2009 12:04 AM
Remember Last Cell ExcelSwede Microsoft Excel Programming 4 18th Feb 2008 03:30 PM
Random cell/number and dont repeat selected cell/number =?Utf-8?B?SGVjdG9yIFBS?= Microsoft Excel Misc 0 16th Oct 2006 05:02 PM
formatting cell number based on previous cell number =?Utf-8?B?UGFzcXVpbmk=?= Microsoft Excel Misc 3 20th Jun 2006 06:36 AM
Remember a cell scrabtree Microsoft Excel Programming 2 16th Sep 2004 10:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:28 PM.