ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF, Else function (https://www.excelbanter.com/excel-worksheet-functions/167372-if-else-function.html)

sby

IF, Else function
 
Hi

I am a bit stuck, I want to update a worksheet but keep previous data in
another column but I am stuggling to find a way.
What i want to do is, A1 has my present data and when I update that data I
want the old data to automatically move to B1. This will enable me to keep
both the present and previous data without cutting and pasting data.

Can anyone help.


Regards

Steve

ryguy7272

IF, Else function
 
Select the cells that are important to you. Under the Edit toolbar, click
copy, and then right-click in Cell B1, click paste special, and then click
values. I think this will give you what you want...but it doesn't require an
If/Else function...

Well, I hope that works for you.


Regards,
Ryan--




--
RyGuy


"sby" wrote:

Hi

I am a bit stuck, I want to update a worksheet but keep previous data in
another column but I am stuggling to find a way.
What i want to do is, A1 has my present data and when I update that data I
want the old data to automatically move to B1. This will enable me to keep
both the present and previous data without cutting and pasting data.

Can anyone help.


Regards

Steve


sby

IF, Else function
 
Thanks for that but I was looking for an automated system as they are
numerous cells.

Can anyone help.

"ryguy7272" wrote:

Select the cells that are important to you. Under the Edit toolbar, click
copy, and then right-click in Cell B1, click paste special, and then click
values. I think this will give you what you want...but it doesn't require an
If/Else function...

Well, I hope that works for you.


Regards,
Ryan--




--
RyGuy


"sby" wrote:

Hi

I am a bit stuck, I want to update a worksheet but keep previous data in
another column but I am stuggling to find a way.
What i want to do is, A1 has my present data and when I update that data I
want the old data to automatically move to B1. This will enable me to keep
both the present and previous data without cutting and pasting data.

Can anyone help.


Regards

Steve


Sandy Mann

IF, Else function
 
Hide Column C,(or some other column and alter the code to suit then enter
the following in a sheet module:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)

If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub

Application.EnableEvents = False
Cells(Target.Row, 2).Value = Cells(Target.Row, 3).Value
Cells(Target.Row, 3).Value = Cells(Target.Row, 1).Value
Application.EnableEvents = True

End Sub


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"sby" wrote in message
...
Thanks for that but I was looking for an automated system as they are
numerous cells.

Can anyone help.

"ryguy7272" wrote:

Select the cells that are important to you. Under the Edit toolbar,
click
copy, and then right-click in Cell B1, click paste special, and then
click
values. I think this will give you what you want...but it doesn't
require an
If/Else function...

Well, I hope that works for you.


Regards,
Ryan--




--
RyGuy


"sby" wrote:

Hi

I am a bit stuck, I want to update a worksheet but keep previous data
in
another column but I am stuggling to find a way.
What i want to do is, A1 has my present data and when I update that
data I
want the old data to automatically move to B1. This will enable me to
keep
both the present and previous data without cutting and pasting data.

Can anyone help.


Regards

Steve





David Biddulph[_2_]

IF, Else function
 
If you right-click in A1, it will give you the option to Insert & shift
cells right.
--
David Biddulph

"sby" wrote in message
...
Hi

I am a bit stuck, I want to update a worksheet but keep previous data in
another column but I am stuggling to find a way.
What i want to do is, A1 has my present data and when I update that data I
want the old data to automatically move to B1. This will enable me to keep
both the present and previous data without cutting and pasting data.

Can anyone help.


Regards

Steve





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com