Extract information from Worksheet

I have a worksheet containing raw data, (see attached) in this file I created a new worksheet called Upload. Here I want to basically extract for each line in the Raw Data I need to extract the Total Product Charges line and then the sum of column F+G+H  in the Raw Data and add them below the result from column E.

Take a look at like 2 of my Raw Data sheet and then how it should look in the Upload section, I am at a loss how I can obtain this, considering that the raw data can change in length.

Thanks.
Sample-Worksheet.xlsx
joeserroneAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
Is this a one time need, or will you need to repeat it every so often as new data sheets are provided?

Will the input always come from the first sheet of the specified XLS file, and do you want the output in a new second sheet, or in a separate XLS file.

~bp
joeserroneAuthor Commented:
Hi Bill, this would be an ongoing repeating task, and I would like it to output to the second sheet in the same file. Yes the template in the Raw Data will always be the same but the number of records might change.
Bill PrewIT / Software Engineering ConsultantCommented:
Here is a VBS script that should do the job.  Save it as a VBS, and then run as follows:

cscript ee28698683.vbs Sample-Worksheet.xlsx

It will open the Excel file, add a new sheet and populate it with the data from the existing first sheet as you described.

~bp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Please find the attached workbook.
I have inserted a button on the Upload Sheet. You may click that button to run the code to get the desired output.

See if this is what you are trying to achieve.
Sample-Worksheet.xlsm
joeserroneAuthor Commented:
Exactly what I was looking for! I appreciate all your help on this
Bill PrewIT / Software Engineering ConsultantCommented:
Welcome!

~bp
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.