PC Review


Reply
Thread Tools Rate Thread

Adding two columns ...please help

 
 
=?Utf-8?B?SmFjaw==?=
Guest
Posts: n/a
 
      14th Jun 2007
Hi,

I have numbers in Column B and C. I need to see the value of =SUM(B1:C1)
that will appear in cell D1.
the value of SUM(B2:C2) that will appear in D2,the value of SUM(B3:C3) that
will appear in cell D3.
up to the end. I can do it in VBS but I need to know the way to see
SUM(B1:C1) in the Fx window when I'll click on the cell D1 when it's
generated by vbs
I don't know how to code it.
Thanks.
Joe
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      14th Jun 2007
Jack

Maybe this?

Sub Auto_Fill()
Dim Lrow As Long
With ActiveSheet
Range("D1").Formula = "=B1+C1"
Lrow = Range("C" & Rows.Count).End(xlUp).Row
Range("D1" & Lrow).FillDown
End With
End Sub


Gord Dibben MS Excel MVP

On Thu, 14 Jun 2007 11:46:01 -0700, Jack <(E-Mail Removed)> wrote:

>Hi,
>
>I have numbers in Column B and C. I need to see the value of =SUM(B1:C1)
>that will appear in cell D1.
>the value of SUM(B2:C2) that will appear in D2,the value of SUM(B3:C3) that
>will appear in cell D3.
>up to the end. I can do it in VBS but I need to know the way to see
>SUM(B1:C1) in the Fx window when I'll click on the cell D1 when it's
>generated by vbs
>I don't know how to code it.
>Thanks.
>Joe


 
Reply With Quote
 
=?Utf-8?B?SmFjaw==?=
Guest
Posts: n/a
 
      14th Jun 2007
Thanks Gord!!!!!!!!!!

"Gord Dibben" wrote:

> Jack
>
> Maybe this?
>
> Sub Auto_Fill()
> Dim Lrow As Long
> With ActiveSheet
> Range("D1").Formula = "=B1+C1"
> Lrow = Range("C" & Rows.Count).End(xlUp).Row
> Range("D1" & Lrow).FillDown
> End With
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
> On Thu, 14 Jun 2007 11:46:01 -0700, Jack <(E-Mail Removed)> wrote:
>
> >Hi,
> >
> >I have numbers in Column B and C. I need to see the value of =SUM(B1:C1)
> >that will appear in cell D1.
> >the value of SUM(B2:C2) that will appear in D2,the value of SUM(B3:C3) that
> >will appear in cell D3.
> >up to the end. I can do it in VBS but I need to know the way to see
> >SUM(B1:C1) in the Fx window when I'll click on the cell D1 when it's
> >generated by vbs
> >I don't know how to code it.
> >Thanks.
> >Joe

>
>

 
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
Adding up 2 columns Gord Microsoft Excel Discussion 3 21st Oct 2009 01:39 PM
Adding two Columns Gr8 Dane Microsoft Excel Misc 3 10th Feb 2009 09:46 AM
Adding Columns, Then deleting old columns May Microsoft Excel Misc 4 30th Oct 2008 04:44 PM
Adding Columns Kevin Microsoft Excel Misc 6 8th Jan 2008 07:15 AM
Adding Columns bstafford Microsoft Excel Misc 1 9th Oct 2005 05:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 AM.