Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy formula

I am trying to copy a formula from one sell to several other cells.
I want to add up all the cells in a column with the total at the bottom
in d51, I have pressed auto sum for this single cell and included all
the cells that I want d2:d49 but when I try to copy the formula to
other cells in row d51 its also copying the figure from that cell.

Any help would be grate Thnaks.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default copy formula

there is nothing magical about formula created with autosum. Autosum does
the work of determining a range, then enters a formula to reflect that
range. Copying the formula would behave the same as copying any other
formula.

If you want to perform as autosum, you could write your code to do that. As
an example, placing a formula in the activecell which is just below the data
to be summed.

set rng = Range(ActiveCell.offset(-1,0).End(xlup),ActiveCell.offset(-1,0))
ActiveCell.formula = "=Sum(" & rng.Address & ")"

--
Regards,
Tom Ogilvy


Beesht wrote in message
...
I am trying to copy a formula from one sell to several other cells.
I want to add up all the cells in a column with the total at the bottom
in d51, I have pressed auto sum for this single cell and included all
the cells that I want d2:d49 but when I try to copy the formula to
other cells in row d51 its also copying the figure from that cell.

Any help would be grate Thnaks.


---
Message posted from http://www.ExcelForum.com/



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
copy formula result (text) only - without copying formula Mulberry Excel Discussion (Misc queries) 2 October 2nd 08 09:51 AM
I copy a formula and the results copy from the original cell brooklynsd Excel Discussion (Misc queries) 1 June 23rd 07 01:35 AM
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Copy formula so destination displays formula as text Omunene Excel Discussion (Misc queries) 2 September 30th 05 06:28 PM


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