Daily Summary via Lookup to External File

jws

Board Regular
Joined
Jan 10, 2008
Messages
69
Hello,

I am trying to create a summary file that will be used daily for multiple plant summary files. I want to access the shared public drive, which stores the output files in CSV format.

1) Files are dated and stored in a CSV file, daily, for each plant
2) Date format would be plant-mmddyy.csv
3) Public folder would be C:\shared\daily\plant-mmddyy.csv
4) The data that needs to be summed will always be in column B, ranging anywhere from 100 rows through 2000 rows

Since there will be daily sums for each plant, I am trying to create an on-going sheet which will use the naming convention in a summary sheet with date and indirect functions.

Column A – Date
Column B – Plant
Column C - Summary

I was hoping to sum via SUMPRODUCT or SUMIFS, I am just not sure of the best course of action, to start to explore VBA options or can it be handled with a lookup?

If this is unclear, I apologize; I am going to be working on a rough format tonight to see if I can make progress.

Thanks in advance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
As of now, I am going down the path trying to automate via Access, then link in via external data link; just hoping there is an easier way to maintain with less inputs.
 
Upvote 0
At this point I have made progress using MS Query - I have pulled the data I want, now the problem becomes making it dynamic.

I am hoping that a SQL Command Text can be based off my excel summary sheet, which would change by day, each day, in mmddyy format.

SELECT `071215`.DESCRIPTION, `071215`.PLANTSUMMARY
FROM `071215.CSV` `071215`
WHERE (`071215`.DESCRIPTION='TOTALS') AND (`071215`.PLANTSUMMARY>'0')


What I am now trying to figure out to meet my original request, would be to have this query run the above command, but use the summary sheet date criteria (which in this example is 071215). As of now, I just have it hard coded into the file. My SQL knowledge is very limited.

thanks for looking
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,544
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top