Dumping a datasheet in folder and then have a master sheet to pick data out

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
What I would like to do is do a daily dump of data in a specified folder (format of name will be 20211115 (for today).

In the master sheet I will have all the workbook names in column A (the dates Monday-Friday every week).

In column B, C, D and E I want it to pull a count of "YES", from the respective columns in the daily dumps.


So, for today (for example) :-
Worksheet Name : 20211115Column AColumn BColumn CColumn D
(Worksheet Header Names in Row1)STAT ASTAT BSTAT CSTAT D
(Row 2)YESYESYESYES
(Row 3)YESYESYESNO
(Row 4)YESYESNONO
(Row 5)YESYESNONO
Row 6)NONONONO
Row 7 (TOTAL)4421

Worksheet Name : 20211112Column AColumn BColumn CColumn D
(Worksheet Header Names in Row1)STAT ASTAT BSTAT CSTAT D
(Row 2)YESYESYESYES
(Row 3)YESYESNONO
(Row 4)YESYESNONO
(Row 5)YESNONONO
Row 6)NONONONO
Row 7 (TOTAL)4311

etc

Then in the Master Spreadsheet
Worksheet Name : MASTERColumn AColumn BColumn CColumn D
(Worksheet Header Names in Row1)STAT ASTAT BSTAT CSTAT D
201111154421
201111124311

I am figuring it will be a simple COUNTIF(.......,"YES") formula, but not sure how to reference the books (want to reference the cell, so I can add/remove data when required).

The formula will need to work with graphs (pie/donut charts/ bar/line graphs for the past 14/28 days.... I don't mind having a second table that references TODAY() and then and counts back (if that makes sense!)

Thanks, in advance, as always :)
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

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