Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2017, 02:04 PM
Kannand Kannand is offline Populating a cell from formula in another Windows 10 Populating a cell from formula in another Office 2007
Novice
Populating a cell from formula in another
 
Join Date: Feb 2017
Posts: 3
Kannand is on a distinguished road
Default Populating a cell from formula in another

Is it possible to have a formula in one cell while the result populates another? For example, I have a formula in cell A5 which I'd like to use to populate cell B5. Is this possible?



Thanks in advance.
Reply With Quote
  #2  
Old 02-26-2017, 02:25 PM
jeffreybrown jeffreybrown is offline Populating a cell from formula in another Windows Vista Populating a cell from formula in another Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Can you give more specifics?

What's the formula in A5 and what exactly are you expecting in B5?
Reply With Quote
  #3  
Old 02-26-2017, 06:41 PM
Kannand Kannand is offline Populating a cell from formula in another Windows 10 Populating a cell from formula in another Office 2007
Novice
Populating a cell from formula in another
 
Join Date: Feb 2017
Posts: 3
Kannand is on a distinguished road
Default

Quote:
Originally Posted by jeffreybrown View Post
Can you give more specifics?

What's the formula in A5 and what exactly are you expecting in B5?
I'm trying to update the column B with today's date based on the date value in column A and a couple of other values in other columns. If column B is already populated, I need to leave it untouched. I'm trying to get this in a macro so one could click a button to have this updated. The will be new records added to this spreadsheet every week and this update would be necessary.
Reply With Quote
  #4  
Old 02-26-2017, 08:00 PM
Kannand Kannand is offline Populating a cell from formula in another Windows 10 Populating a cell from formula in another Office 2007
Novice
Populating a cell from formula in another
 
Join Date: Feb 2017
Posts: 3
Kannand is on a distinguished road
Default

Quote:
Originally Posted by Kannand View Post
I'm trying to update the column B with today's date based on the date value in column A and a couple of other values in other columns. If column B is already populated, I need to leave it untouched. I'm trying to get this in a macro so one could click a button to have this updated. The will be new records added to this spreadsheet every week and this update would be necessary.
I just came across this code in another post, that seems to work....

Sub update all()
Active sheet.Range("j4:j1048517).Value =Active sheet.Range(l4:l1048517").Value
End Sub
Reply With Quote
  #5  
Old 02-26-2017, 08:11 PM
jeffreybrown jeffreybrown is offline Populating a cell from formula in another Windows Vista Populating a cell from formula in another Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Quote:
Originally Posted by Kannand View Post
I just came across this code in another post, that seems to work....
Still not sure exactly what you are doing as you talked about formulas and now you're talking macros. Not sure how what you posted seems to work when it doesn't even compile.

Code:
Sub update_all()
    Dim LR As Long
    With ActiveSheet
        LR = .Range("I" & Rows.Count).End(xlUp).Row
        .Range("J4:J" & LR).Value = .Range("I4:I" & LR).Value
    End With
End Sub
The code above will first look at column I to see what the last rows is then copied column I to column J.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating a cell from formula in another Entering a column value in a cell, to be used as part of a reference in a formula in another cell paulkaye Excel 4 02-26-2017 04:18 AM
Populating a cell from formula in another Populating ranking depending upon ranges of previous cell's data sryder Excel 5 04-07-2016 03:37 PM
Populating a table cell wit document properties milena Word VBA 2 04-15-2015 07:28 AM
Populating a cell from formula in another Formula in cell b1 using cell a1 if a1 is over certain number pumkinbug87 Excel 5 12-03-2013 12:34 PM
Change formula cell range based on cell value Scoth Excel 4 10-25-2012 07:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft