Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Change the value of a cell

I need a formula that changes the value of one cell based on the value of
another.

If my value in A2 equals DS I want to change the value of cell M2 to match
the value of B2.
Else do not change any values.

T.I.A.

Dayton





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Change the value of a cell

Dim cell as Range
Set cell = ???? ' Activecell, or Range("C2"), or ???
If Range("A2") = "DS" then
cell = Range("B2")
End If

--
sb
"dayton" wrote in message
...
I need a formula that changes the value of one cell based on the value of
another.

If my value in A2 equals DS I want to change the value of cell M2 to match
the value of B2.
Else do not change any values.

T.I.A.

Dayton







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Change the value of a cell

formula in cell m2
=if(a2="ds",b2,"")

"dayton" wrote in message
...
I need a formula that changes the value of one cell based on the value of
another.

If my value in A2 equals DS I want to change the value of cell M2 to match
the value of B2.
Else do not change any values.

T.I.A.

Dayton







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
change cell contents when pull down menu choices change jb21 Excel Worksheet Functions 3 November 21st 08 10:34 PM
making copied cells change with change in original cell Jennifer Mcdermeit Excel Worksheet Functions 2 July 20th 06 04:58 PM
How do I change a number in one cell to change a series of cells? lance559 Excel Discussion (Misc queries) 2 January 13th 06 08:56 PM
excel deleting rows last cell does not change. How to change? mrubey Excel Discussion (Misc queries) 3 August 25th 05 08:38 PM
Change workbook sheet reference using cell A1 to change a vairable Reed Excel Worksheet Functions 4 January 20th 05 07:15 PM


All times are GMT +1. The time now is 02: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"