Need to PUT a VALUE into another Cell

grammjr

New Member
Joined
Aug 19, 2002
Messages
4
I need to have an IF statement put it's returned VALUE into a different cell.
If stmt in A1 VALUE in B5
I need to do this without put any formula or function in B5.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
On 2002-08-20 17:35, grammjr wrote:
I need to have an IF statement put it's returned VALUE into a different cell.
If stmt in A1 VALUE in B5
I need to do this without put any formula or function in B5.

Formulas don't do such things (don't have side effects), instead they calculate a value for the cells they are in.
 
Upvote 0
So there is no PUT fuction or some version of that to add to a formula to make it's value appear somewhere else.
I know that is basicly what was said, I just want to be positive I can not do this.
Seems like something that should be easy to do. Doesn't it have any value?
 
Upvote 0
I don't know of any spreadsheet program from VisiCalc to XL that has a 'put this value there' capability.

In designing a worksheet, think of each cell as containing a value that is a result of what is 'over there.'
 
Upvote 0
On 2002-08-20 17:35, grammjr wrote:
I need to have an IF statement put it's returned VALUE into a different cell.
If stmt in A1 VALUE in B5
I need to do this without put any formula or function in B5.


This:
<pre>
Sub Update()
NewVal = Range("a1").Value
Range("b5").Value = NewVal
End Sub
</pre>

will put the value of a1 in b5 - what are you trying to do?
 
Upvote 0
I am importing data from a workbook that I am giving to others to fill in.
I want to move the data from these various workbooks to one centeral workbook. I have some locked col in the distributed wb and my IF statement in the centeral wb will compare the locked col and if they don't match I want no action take in the centeral wb and the want the old values to remain unchanged.
 
Upvote 0
Jim,

<pre>
Sub Update()
a = Range("a2").Value
b = Range("a3").Value
NewVal = Range("a1").Value

If a <> b Then
Range("b1").Value = NewVal
End If
End Sub
</pre>

will compare the values in a2 & a3, & only put the value of a1 in b1 if a2 not equal to a3.

Does that help? if not, will need a lot more details about your problem - what the sheets are called, what ranges you're comparing, etc...

You might also look at consolidation in the help file - might be useful.
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,254
Members
448,879
Latest member
oksanana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top