Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 39
Default update the same cell into another column forming a list on opening

hi there,
i have made a spreadsheet to enter data and then view the resulting
statistics that are generated, i have one cell that changes in value after
entering the data, and i would like to keep a record of what values this cell
has been, i was after a formula that would update that single cell's value
into a column forming a list each time the spreadsheet was opened or the
value in the cell changed, like a field perhaps, this would fill up the
column with a list of results from which to generate more stats and a graph
etc.

any help would be great, thank you
--
thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,071
Default update the same cell into another column forming a list on opening

This macro executes whenever the active sheet is calculated. The macro
looks at F1 of the active sheet and compares it to the last entry in Column
A of a sheet named "Record". If the two values are not the same, the macro
places the value in F1 of the active sheet into the first blank cell in
Column A of the "Record" sheet. Note that nothing is done if the 2 values
are the same. Date and/or time values are not placed in "Record" because
you didn't mention wanting that. This macro is a sheet event macro and must
be placed in the sheet module of the sheet with the changing F1 cell. You
can access that module by right-clicking the sheet tab and selecting View
Code. HTH Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1) = Range("F1")
End With
End Sub

"Morgan" wrote in message
...
hi there,
i have made a spreadsheet to enter data and then view the resulting
statistics that are generated, i have one cell that changes in value after
entering the data, and i would like to keep a record of what values this
cell
has been, i was after a formula that would update that single cell's value
into a column forming a list each time the spreadsheet was opened or the
value in the cell changed, like a field perhaps, this would fill up the
column with a list of results from which to generate more stats and a
graph
etc.

any help would be great, thank you
--
thanks


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 39
Default update the same cell into another column forming a list on ope

thanks it works great, you mentioned the date and it sounded like a good
idea, what would the code be to have the date in column A and the entries in
column B?
--
thanks


"Otto Moehrbach" wrote:

This macro executes whenever the active sheet is calculated. The macro
looks at F1 of the active sheet and compares it to the last entry in Column
A of a sheet named "Record". If the two values are not the same, the macro
places the value in F1 of the active sheet into the first blank cell in
Column A of the "Record" sheet. Note that nothing is done if the 2 values
are the same. Date and/or time values are not placed in "Record" because
you didn't mention wanting that. This macro is a sheet event macro and must
be placed in the sheet module of the sheet with the changing F1 cell. You
can access that module by right-clicking the sheet tab and selecting View
Code. HTH Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1) = Range("F1")
End With
End Sub

"Morgan" wrote in message
...
hi there,
i have made a spreadsheet to enter data and then view the resulting
statistics that are generated, i have one cell that changes in value after
entering the data, and i would like to keep a record of what values this
cell
has been, i was after a formula that would update that single cell's value
into a column forming a list each time the spreadsheet was opened or the
value in the cell changed, like a field perhaps, this would fill up the
column with a list of results from which to generate more stats and a
graph
etc.

any help would be great, thank you
--
thanks


.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,071
Default update the same cell into another column forming a list on ope

Note that I chose a date format of 14-Mar-09. That is just my preference.
You can record a macro and format a cell to your preference and change the
code accordingly. The date format comes after "NumberFormat" in the code.
Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1) = Range("F1")
Dest.Offset(1, 1) = Date
Dest.Offset(1, 1).NumberFormat = "d-mmm-yy"
End With
End Sub

"Morgan" wrote in message
...
thanks it works great, you mentioned the date and it sounded like a good
idea, what would the code be to have the date in column A and the entries
in
column B?
--
thanks


"Otto Moehrbach" wrote:

This macro executes whenever the active sheet is calculated. The macro
looks at F1 of the active sheet and compares it to the last entry in
Column
A of a sheet named "Record". If the two values are not the same, the
macro
places the value in F1 of the active sheet into the first blank cell in
Column A of the "Record" sheet. Note that nothing is done if the 2
values
are the same. Date and/or time values are not placed in "Record" because
you didn't mention wanting that. This macro is a sheet event macro and
must
be placed in the sheet module of the sheet with the changing F1 cell.
You
can access that module by right-clicking the sheet tab and selecting View
Code. HTH Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1) = Range("F1")
End With
End Sub

"Morgan" wrote in message
...
hi there,
i have made a spreadsheet to enter data and then view the resulting
statistics that are generated, i have one cell that changes in value
after
entering the data, and i would like to keep a record of what values
this
cell
has been, i was after a formula that would update that single cell's
value
into a column forming a list each time the spreadsheet was opened or
the
value in the cell changed, like a field perhaps, this would fill up the
column with a list of results from which to generate more stats and a
graph
etc.

any help would be great, thank you
--
thanks


.

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,071
Default update the same cell into another column forming a list on ope

Sorry about that. I didn't catch the sequence you said (date in A and entry
in B). The following works like you want. Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1, 1) = Range("F1")
Dest.Offset(1) = Date
Dest.Offset(1).NumberFormat = "d-mmm-yy"
End With
End Sub


"Morgan" wrote in message
...
thanks it works great, you mentioned the date and it sounded like a good
idea, what would the code be to have the date in column A and the entries
in
column B?
--
thanks


"Otto Moehrbach" wrote:

This macro executes whenever the active sheet is calculated. The macro
looks at F1 of the active sheet and compares it to the last entry in
Column
A of a sheet named "Record". If the two values are not the same, the
macro
places the value in F1 of the active sheet into the first blank cell in
Column A of the "Record" sheet. Note that nothing is done if the 2
values
are the same. Date and/or time values are not placed in "Record" because
you didn't mention wanting that. This macro is a sheet event macro and
must
be placed in the sheet module of the sheet with the changing F1 cell.
You
can access that module by right-clicking the sheet tab and selecting View
Code. HTH Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1) = Range("F1")
End With
End Sub

"Morgan" wrote in message
...
hi there,
i have made a spreadsheet to enter data and then view the resulting
statistics that are generated, i have one cell that changes in value
after
entering the data, and i would like to keep a record of what values
this
cell
has been, i was after a formula that would update that single cell's
value
into a column forming a list each time the spreadsheet was opened or
the
value in the cell changed, like a field perhaps, this would fill up the
column with a list of results from which to generate more stats and a
graph
etc.

any help would be great, thank you
--
thanks


.



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 39
Default update the same cell into another column forming a list on ope

thanks Otto



"Otto Moehrbach" wrote:

Sorry about that. I didn't catch the sequence you said (date in A and entry
in B). The following works like you want. Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1, 1) = Range("F1")
Dest.Offset(1) = Date
Dest.Offset(1).NumberFormat = "d-mmm-yy"
End With
End Sub


"Morgan" wrote in message
...
thanks it works great, you mentioned the date and it sounded like a good
idea, what would the code be to have the date in column A and the entries
in
column B?
--
thanks


"Otto Moehrbach" wrote:

This macro executes whenever the active sheet is calculated. The macro
looks at F1 of the active sheet and compares it to the last entry in
Column
A of a sheet named "Record". If the two values are not the same, the
macro
places the value in F1 of the active sheet into the first blank cell in
Column A of the "Record" sheet. Note that nothing is done if the 2
values
are the same. Date and/or time values are not placed in "Record" because
you didn't mention wanting that. This macro is a sheet event macro and
must
be placed in the sheet module of the sheet with the changing F1 cell.
You
can access that module by right-clicking the sheet tab and selecting View
Code. HTH Otto
Private Sub Worksheet_Calculate()
Dim Dest As Range
With Sheets("Record")
Set Dest = .Range("A" & Rows.Count).End(xlUp)
If Range("F1") < Dest Then _
Dest.Offset(1) = Range("F1")
End With
End Sub

"Morgan" wrote in message
...
hi there,
i have made a spreadsheet to enter data and then view the resulting
statistics that are generated, i have one cell that changes in value
after
entering the data, and i would like to keep a record of what values
this
cell
has been, i was after a formula that would update that single cell's
value
into a column forming a list each time the spreadsheet was opened or
the
value in the cell changed, like a field perhaps, this would fill up the
column with a list of results from which to generate more stats and a
graph
etc.

any help would be great, thank you
--
thanks

.

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help forming a list Stig - tame racing driver Excel Discussion (Misc queries) 0 February 12th 09 04:53 PM
Data Validation lists update orginal cell with list update [email protected] Excel Worksheet Functions 3 July 11th 08 07:56 AM
Forming a trend line Aaron Excel Worksheet Functions 6 June 29th 07 01:46 PM
Forming a binary column from a more complicated column of diagnostic codes MMD Excel Discussion (Misc queries) 1 March 12th 07 06:14 PM
forming a new column by using the other column pinar Excel Worksheet Functions 7 November 5th 04 12:30 PM


All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"