Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Need to change existing formula into values...

Dear Friends,

I'm using a formula in excel and want to convert the formula into values, so
that it won't change further. Let me explain it.

The thing is that, I want to enter the current date if the user enters "Yes"
into it previous column. i.e.,

Example:

A B - G H ...
1
2
3...

The Column H will be Locked by me, so the user can't even select that cell.
There I've a formulae as below.

=IF(G2="Yes",TODAY(),"")

Column G will be having 2 set of values which can be entered by the user by
means of List control. The values are "Yes" & "No".

If the user selects "Yes" in Column G, then the Current Date will be entered
automatically with the above formulae in the respective row's Column H.

My question is, if there user selects as in example above second row
G-Column as Yes, then 2nd row Column H will be entered automatically as
today's date "19-May-06". If he opens the file tomorrow, then 2nd row
Column-H value will be changed as "20-May-06". This should not happen.

Once the date has been entered, then it should FREEZE with the entered date
and should not change further onwards.

Kindly resolve my problem.

Thanks in Advance...

Sriram Subramaniyan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Need to change existing formula into values...

right click sheet tabview codeinsert thisSAVE

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column < 7 Then Exit Sub
If UCase(Target) = "YES" Then Target.Offset(, 1) = Date
End Sub

--
Don Guillett
SalesAid Software

"Sriram" wrote in message
...
Dear Friends,

I'm using a formula in excel and want to convert the formula into values,
so
that it won't change further. Let me explain it.

The thing is that, I want to enter the current date if the user enters
"Yes"
into it previous column. i.e.,

Example:

A B - G H ...
1
2
3...

The Column H will be Locked by me, so the user can't even select that
cell.
There I've a formulae as below.

=IF(G2="Yes",TODAY(),"")

Column G will be having 2 set of values which can be entered by the user
by
means of List control. The values are "Yes" & "No".

If the user selects "Yes" in Column G, then the Current Date will be
entered
automatically with the above formulae in the respective row's Column H.

My question is, if there user selects as in example above second row
G-Column as Yes, then 2nd row Column H will be entered automatically as
today's date "19-May-06". If he opens the file tomorrow, then 2nd row
Column-H value will be changed as "20-May-06". This should not happen.

Once the date has been entered, then it should FREEZE with the entered
date
and should not change further onwards.

Kindly resolve my problem.

Thanks in Advance...

Sriram Subramaniyan



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
assigning values to one cell which will change the formula in anot Darren Excel Worksheet Functions 1 July 26th 07 10:06 AM
to find change and paste existing values/rows in excel with help of form Claudia Excel Discussion (Misc queries) 1 August 10th 06 03:03 PM
how to change values to formula in VBA to carry out goal seek? Desmond Excel Programming 0 January 18th 06 12:29 PM
WHEN EDITING VALUES IN A FORMULA, IT DOESN'T CHANGE TOTALS ARIEL Excel Worksheet Functions 1 June 29th 05 11:14 PM
change existing values choice[_2_] Excel Programming 4 December 4th 04 07:03 PM


All times are GMT +1. The time now is 12:41 PM.

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

About Us

"It's about Microsoft Excel"