PC Review


Reply
Thread Tools Rate Thread

add formula next to corresponding cells

 
 
transferxxx@gmail.com
Guest
Posts: n/a
 
      19th Jul 2007
I would like to add the following formula "=SUM(RC[1]:RC[2])" in cells
starting H2 to H10 next to cell G2:G10

row 10 can vary - i,e adding the following formula "=SUM(RC[1]:RC[2])"
in cells starting H2 to H100 next to cell G2:G100

Can any bod help

(i,e i would like to offset 1 column & add formula next to
corresponding cells.

Thxs

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      19th Jul 2007
Dim nRow As Long
nRow = 10
Range("H2:H" & nRow).FormulaR1C1 = "=SUM(RC[1]:RC[2])"


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I would like to add the following formula "=SUM(RC[1]:RC[2])" in cells
> starting H2 to H10 next to cell G2:G10
>
> row 10 can vary - i,e adding the following formula "=SUM(RC[1]:RC[2])"
> in cells starting H2 to H100 next to cell G2:G100
>
> Can any bod help
>
> (i,e i would like to offset 1 column & add formula next to
> corresponding cells.
>
> Thxs
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula refers to empty cells even when cells contains data Monica Rustogi Microsoft Excel Worksheet Functions 1 25th Feb 2010 06:56 PM
Setting of input cells as blue font and formula cells as black fon =?Utf-8?B?U3Vubnlza2llcw==?= Microsoft Excel Misc 2 14th May 2007 05:27 PM
Formula to select cells based on text in other cells =?Utf-8?B?UGhyb250aXM=?= Microsoft Excel Discussion 4 25th Nov 2006 06:16 PM
trying to create an (almost) circular formula between cells and data validated cells with lists KR Microsoft Excel Worksheet Functions 0 12th May 2005 07:21 PM
Copy a formula to a range of cells via VB6 using .Range(Cells(row,col), Cells(row,col)).Formula= statement Kevin Microsoft Excel Programming 7 5th Oct 2004 08:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 PM.