Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2014, 11:11 AM
anwar anwar is offline Macro to copy formula from one cell to another Windows 7 32bit Macro to copy formula from one cell to another Office 2010 32bit
Novice
Macro to copy formula from one cell to another
 
Join Date: Apr 2014
Posts: 1
anwar is on a distinguished road
Default Macro to copy formula from one cell to another

Hi Experts,
I've data in two columns, 'Column A & B'. 'Column A' contains formula and 'Column B' contains criteria. I need to find the output like that cell from 'Column A' will automatically be copied and pasted as value into 'Column C' whenever specific criteria meet in 'Column B'.

Column A Column B
1. 100 ...... D
2. 300 .......R
3. 500 .......D


4. 100 .......R
5. 300 .......D

Now I need to copy cell from Column A that meet the criteria in Column B. logical function will be like that "=IF(B1="R", then copy A1 and paste value into C1)".

Please provide excel macro VB coding for getting the desired solution.

Many Thanks,
Anwar
Dhaka, Bangladesh.
Reply With Quote
  #2  
Old 04-25-2014, 08:27 PM
macropod's Avatar
macropod macropod is offline Macro to copy formula from one cell to another Windows 7 32bit Macro to copy formula from one cell to another Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

From what you've described, you don't need a macro, just a formula:
=IF(B1="R",A1,"")
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to copy formula from one cell to 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
Can I create a formula that will show result in the same cell and let me copy it down CranstC Excel 1 02-11-2012 01:29 AM
Macro to copy formula from one cell to another Use formula to copy cell formats also mike_abc Excel 10 12-10-2011 01:55 AM
copy cell from sheet 2 to sheet 3 macro slipperyjim Excel Programming 1 02-18-2010 01:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:15 PM.


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