LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 399
Default Collect data and sum, w/ connection to another sheet

I have a macro program which searches through Word documents for data points
and writes them into an Excel worksheet. At the moment, it is one row per
document, with 17 columns of data per row.

One of the data points to this time has simply been a "Yes" or "No",
depending on whether certain times and charges were present or not. If they
are present, though, there are usually (but not always) multiple lines of
times and charges. I have figured out how to grab each time and charge from
each applicable line and write them to a separate worksheet along with the
invoice number (invoice number in Col A, ThisTime in Col B, ThisCharge in
Col C, TotalCharge in Col D, etc.) for each report document.

What I haven't figured out is how to sum each of these individually by
invoice number, and have those sums appear on the main summary worksheet.
For instance, the TimesAndCharges worksheet might have:

A123 2.0 45.00 90.00
A125 1.0 30.00 30.00
A125 2.5 45.00 112.50
A125 1.0 45.00 45.00

The Summary sheet would then have:

A122 ~these columns blank~
A123 2.0 45.00 90.00
A124 ~these columns blank~
A125 1.0 30.00 30.00 3.5 45.00 157.50

So I would need to:
-- identify the start and stop of each separate range on the TimesAndCharges
worksheet on the fly as the Word docs are scanned,
-- sum each range according to value, and
-- identify the corresponding row on the Summary sheet and write my sums.

Where do I start for a good approach?

Ed


 
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
Excel 2007 crashes after viewing property sheet in Data Connection Fritz New Users to Excel 14 April 3rd 12 09:23 AM
collect data from one excel sheet to another Sarcalogus Excel Discussion (Misc queries) 3 October 15th 09 05:17 PM
collect data from one excel sheet to another Sarcalogus Excel Worksheet Functions 0 October 13th 09 10:59 AM
always recheck data connection library for latest connection strin FurmanGG Excel Discussion (Misc queries) 0 September 14th 07 04:48 PM
Collect data of several sheets on another book's singel sheet Shariq Excel Discussion (Misc queries) 1 December 28th 06 06:28 PM


All times are GMT +1. The time now is 06:59 AM.

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"