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?
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 PrewCommented:
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
0
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.
0
Bill PrewCommented:
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
0

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
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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
0
joeserroneAuthor Commented:
Exactly what I was looking for! I appreciate all your help on this
0
Bill PrewCommented:
Welcome!

~bp
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.