Search and sum values in multiple workbooks for accounting

Petijandro

New Member
Joined
Feb 6, 2013
Messages
12
Dear Excel Gurus,

I looked through the forums to try to find a solution for this problem but was not lucky.

I'm trying to put together a search box that can loop through all the workbooks in a folder and all the subfolders and find all occurences of that search string and copy them over to a sheet with all the adjacent data (2-3 columns to the right).
This search box would have a Date interval so it would only consider data within that date range.

3Q2NyqJ.png
.
This is how all workbooks look like, we have sheets for every week where our colleagues can track their progress on that specific workday (sheets called "Week 24", "Week 25" etc):
yRTunta.png


And this would be the end result:

424OXHU.png



I am just wondering if this is possible in Excel?
I have some basic vba skills and managed to put together the search function that loops through the workbooks but cannot figure out how to work with the dates.

All advice are greatly appreciated.

Thank you ?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,​
my first advice with such wild cross posting is you should post a link for each other forums where you have created the same thread​
and do the same in each other forums …​
My second advice is to post at least what you have done so far, using the VBA icon …​
 
Upvote 0
the second option is Power Query.

if every workbook has the same layout, you can append all of them into 1 table using from folder feature in the data - get data tab.
Then you can:
Option 1: create parametrized query using ur search box to filter out the result and present it as a Table.
Option 2: you can use
Excel Formula:
=filter()
function to filter that appended table to your desired result.

but without some sample files (link to a onedrive folder for example) or minisheet(read my signature) it would be hard to guess the solution

Here is a link to my file merger (or rather appender)

 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Search and list values and adjacent columns from multiple workbooks
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
in the week sheets - is it like that always or are those 5 days in separate tab?
also, would it be possible to change that layout since it is not data analyzing friendly?
 
Upvote 0
Yes, it is like that always.. 5 days in a separate tab with "Week XX" as the sheet names marking the calendar week of those dates.
We can change anything if we can retain the possibility to track progress every 15 mins with the values from the "list" master sheet.
 
Last edited:
Upvote 0
if that is a Thank you or a smile or hand shake then yes, otherwise its gainst rules on mrexcel forum.
offering it is also against the rules.
I would suggest reading the regulations b4 mods find out :)
 
Upvote 0
but back to the topic.
I will mash up a fast version of what I have in mind, this would be in the convection of clumnar dataset and it will also speed up any analytical work.
your current layout would require some weird data manipulation in power query - its still doable but unnecessary with a correctly prepared table.


rEPORT.xlsx
ABCDEFGHIJKLMNOPQRS
1
2
3DateWeeknumberTime starttime endValue1Value2Value3Value4 - clear text
422.06.20212611,010416667test1test1-abc012321321
5Search fieldvalue222.06.2021261,0208333331,03125test1test1-abc012321321
6Search valuetest1-abc22.06.2021261,0416666671,052083333test2test1-abc00
722.06.2021261,06251,072916667test4test1-abc00
8Search interval21.06.202122.06.202122.06.2021261,0833333331,09375test6test1-abc00
922.06.2021261,1041666671,114583333test8test1-abc00
1022.06.2021261,1251,135416667test10test1-abc00
1122.06.2021261,1458333331,15625test12test1-abc00
1222.06.2021261,1666666671,177083333test14test1-abc00
1322.06.2021261,18751,197916667test16test1-abc00
1422.06.2021261,2083333331,21875test18test1-abc00
1522.06.2021261,2291666671,239583333test20test1-abc00
1622.06.2021261,251,260416667test22test1-abc00
1722.06.2021261,2708333331,28125test24test1-abc00
1822.06.2021261,2916666671,302083333test26test1-abc00
1922.06.2021261,31251,322916667test28test1-abc00
2022.06.2021261,3333333331,34375test30test1-abc00
2122.06.2021261,3541666671,364583333test32test1-abc00
2222.06.2021261,3751,385416667test34test1-abc00
2322.06.2021261,3958333331,40625test36test1-abc00
2422.06.2021261,4166666671,427083333test38test1-abc00
2522.06.2021261,43751,447916667test40test1-abc00
2622.06.2021261,4583333331,46875test42test1-abc00
2722.06.2021261,4791666671,489583333test44test1-abc00
2822.06.2021261,51,510416667test46test1-abc00
2922.06.2021261,5208333331,53125test48test1-abc00
3022.06.2021261,5416666671,552083333test50test1-abc00
3122.06.2021261,56251,572916667test52test1-abc00
3222.06.2021261,5833333331,59375test54test1-abc00
3322.06.2021261,6041666671,614583333test56test1-abc00
3422.06.2021261,6251,635416667test58test1-abc00
3522.06.2021261,6458333331,65625test60test1-abc00
3622.06.2021261,6666666671,677083333test62test1-abc00
3722.06.2021261,68751,697916667test64test1-abc00
3822.06.2021261,7083333331,71875test66test1-abc00
3922.06.2021261,7291666671,739583333test68test1-abc00
4022.06.2021261,751,760416667test70test1-abc00
4122.06.2021261,7708333331,78125test72test1-abc00
4222.06.2021261,7916666671,802083333test74test1-abc00
4322.06.2021261,81251,822916667test76test1-abc00
4422.06.2021261,8333333331,84375test78test1-abc00
4522.06.2021261,8541666671,864583333test80test1-abc00
4622.06.2021261,8751,885416667test82test1-abc00
4722.06.2021261,8958333331,90625test84test1-abc00
4822.06.2021261,9166666671,927083333test86test1-abc00
4922.06.2021261,93751,947916667test88test1-abc00
5022.06.2021261,9583333331,96875test90test1-abc00
5122.06.2021261,9791666671,989583333test92test1-abc00
52
53
54
55
56
Sheet2
Cell Formulas
RangeFormula
J3:Q3J3=IF(J4="","",Table1[#Headers])
J4:Q51J4=FILTER(Table1,(INDIRECT("Table1["&F5&"]")=Sheet2!F6)*(Table1[Date]>=Sheet2!F8)*(Table1[Date]<=Sheet2!G8),"")
Dynamic array formulas.


rEPORT.xlsx
ABCDEFGHIJKLMNOPQRS
1
2
3DateWeeknumberTime starttime endValue1Value2Value3Value4 - clear text
422.06.20212611,010416667test1test1-abc012321321
5Search fieldvalue222.06.2021261,0208333331,03125test1test1-abc012321321
6Search valuetest1-abc22.06.2021261,0416666671,052083333test2test1-abc00
722.06.2021261,06251,072916667test4test1-abc00
8Search interval21.06.202122.06.202122.06.2021261,0833333331,09375test6test1-abc00
922.06.2021261,1041666671,114583333test8test1-abc00
1022.06.2021261,1251,135416667test10test1-abc00
1122.06.2021261,1458333331,15625test12test1-abc00
1222.06.2021261,1666666671,177083333test14test1-abc00
1322.06.2021261,18751,197916667test16test1-abc00
1422.06.2021261,2083333331,21875test18test1-abc00
1522.06.2021261,2291666671,239583333test20test1-abc00
1622.06.2021261,251,260416667test22test1-abc00
1722.06.2021261,2708333331,28125test24test1-abc00
1822.06.2021261,2916666671,302083333test26test1-abc00
1922.06.2021261,31251,322916667test28test1-abc00
2022.06.2021261,3333333331,34375test30test1-abc00
2122.06.2021261,3541666671,364583333test32test1-abc00
2222.06.2021261,3751,385416667test34test1-abc00
2322.06.2021261,3958333331,40625test36test1-abc00
2422.06.2021261,4166666671,427083333test38test1-abc00
2522.06.2021261,43751,447916667test40test1-abc00
2622.06.2021261,4583333331,46875test42test1-abc00
2722.06.2021261,4791666671,489583333test44test1-abc00
2822.06.2021261,51,510416667test46test1-abc00
2922.06.2021261,5208333331,53125test48test1-abc00
3022.06.2021261,5416666671,552083333test50test1-abc00
3122.06.2021261,56251,572916667test52test1-abc00
3222.06.2021261,5833333331,59375test54test1-abc00
3322.06.2021261,6041666671,614583333test56test1-abc00
3422.06.2021261,6251,635416667test58test1-abc00
3522.06.2021261,6458333331,65625test60test1-abc00
3622.06.2021261,6666666671,677083333test62test1-abc00
3722.06.2021261,68751,697916667test64test1-abc00
3822.06.2021261,7083333331,71875test66test1-abc00
3922.06.2021261,7291666671,739583333test68test1-abc00
4022.06.2021261,751,760416667test70test1-abc00
4122.06.2021261,7708333331,78125test72test1-abc00
4222.06.2021261,7916666671,802083333test74test1-abc00
4322.06.2021261,81251,822916667test76test1-abc00
4422.06.2021261,8333333331,84375test78test1-abc00
4522.06.2021261,8541666671,864583333test80test1-abc00
4622.06.2021261,8751,885416667test82test1-abc00
4722.06.2021261,8958333331,90625test84test1-abc00
4822.06.2021261,9166666671,927083333test86test1-abc00
4922.06.2021261,93751,947916667test88test1-abc00
5022.06.2021261,9583333331,96875test90test1-abc00
5122.06.2021261,9791666671,989583333test92test1-abc00
52
53
54
55
56
Sheet2
Cell Formulas
RangeFormula
J3:Q3J3=IF(J4="","",Table1[#Headers])
J4:Q51J4=FILTER(Table1,(INDIRECT("Table1["&F5&"]")=Sheet2!F6)*(Table1[Date]>=Sheet2!F8)*(Table1[Date]<=Sheet2!G8),"")
Dynamic array formulas.


NOW IF YOU WISH YOU CAN ADD ANOTHER WEEK AS ANOTHER TABLE and amend =indirect() function properly (with additional field in the selection menu)
or simply keep it under 1 table which would be easily filterable.

This ofc, can be very easy amended, corrected, changed.
I simply did not included this since I am not sure if this would be to your liking.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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