PC Review


Reply
Thread Tools Rate Thread

adding data to one olumn to another

 
 
john.9.williams@bt.com
Guest
Posts: n/a
 
      28th Mar 2008
I have two columns of data column a is always the same coloum b get
filled out every week with numerical data for instance

data1 10
data2 9
data3 6
data4 4


at the end of the week i want to add the totals in column b to
another
sheet but every time add the current weeks data to that what has
already been done


i.e


running total


data1 23
data2 78
data3 56


anyone got any ideas this is stumping me

Johny
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      28th Mar 2008
For i = 2 To Cells(Rows.Count,"A").End(xlUp).Row

FindRow=0
On Error Resume Next
FindRow = Application.Match(Cellws(i,"A").Value
On Error Goto 0
If FindRow = 0 Then

FindRow = Worksheets("Sheet2").Range("A1").End(xlDown).Row + 1
Worksheets(("Sheet2").Cells(FindRow,"A").Value = Cells(i,
"A").Value
End If
Worksheets(("Sheet2").Cells(FindRow,"B").Value = _
Worksheets(("Sheet2").Cells(FindRow,"B").Value + Cells(i,
"B").Value
Next i

--
HTH

Bob

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

<(E-Mail Removed)> wrote in message
news:1840a28b-20b1-4611-a96c-(E-Mail Removed)...
>I have two columns of data column a is always the same coloum b get
> filled out every week with numerical data for instance
>
> data1 10
> data2 9
> data3 6
> data4 4
>
>
> at the end of the week i want to add the totals in column b to
> another
> sheet but every time add the current weeks data to that what has
> already been done
>
>
> i.e
>
>
> running total
>
>
> data1 23
> data2 78
> data3 56
>
>
> anyone got any ideas this is stumping me
>
> Johny



 
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
problem with crystal report dataset: adding new set of data to existing data AboutJAV@gmail.com Microsoft C# .NET 0 16th Nov 2006 02:16 PM
Adding external data into database data before it is sent to Control(Repeater, Datagrid, etc.) Neo Geshel Microsoft ADO .NET 2 17th Nov 2005 12:53 AM
Adding external data into database data before it is sent to Control(Repeater, Datagrid, etc.) Neo Geshel Microsoft VB .NET 2 17th Nov 2005 12:53 AM
Adding new records when databinding and using data relation win forms / data form wizard Developer Microsoft ADO .NET 0 16th Aug 2004 07:28 PM
Adding data to the data table without adding a data marker to the chart BA Microsoft Excel Charting 2 19th Nov 2003 09:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 AM.