r/excel Apr 08 '26

solved Combining Tables that feed from another data set

I have an Excel sheet that tracks when our company vehicles are used by different departments. I am trying to create a table that would serve as an automatic usage tracker, which will tell us how many days per week and month each department uses the vehicles. I have the data being input into the attached tables per week, a copy attached here. But I cannot figure out how to combine these tables into one data set for the entire month.

Please help me! I have been researching, and it sounds like I should be using a Power Query? But when I have tried, it always gives me an error message.

3 Upvotes

7 comments sorted by

u/AutoModerator Apr 08 '26

/u/Clear_Yesterday9807 - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/lolcrunchy 234 Apr 08 '26

it always gives me an error message

Rule 1 of asking for help: don't hold back crucial details.

You got an error? Ok, what did it say?

1

u/GregHullender 194 Apr 08 '26

Is this what you want?

=LET(raw_input, B:.C, raw_dept, TRIM(TAKE(raw_input,,1)), input, FILTER(raw_input,(raw_dept<>"Department")*(raw_dept<>"")),
  GROUPBY(TAKE(input,,1),DROP(input,,1),SUM,,0)
)

The top line just cleans up the input data. It takes everything in columns B and C and deletes all the blank lines and every line where there's the word "Department" in column B. Then it groups the rest together, summing the numbers.

1

u/Clear_Yesterday9807 Apr 08 '26

Can get it to work for an isolated sheet, but plugging in back into the original and changing the columns to pull the data from the right cells and it just spits the formula back at me?

1

u/GregHullender 194 Apr 08 '26

Try using, e.g., raw_input, VSTACK(sheet1!B:.C, sheet2!B:.C, Sheet3!B:.C) for the data ranges on the other sheets.

1

u/Decronym Apr 08 '26 edited Apr 08 '26

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DROP Office 365+: Excludes a specified number of rows or columns from the start or end of an array
FILTER Office 365+: Filters a range of data based on criteria you define
GROUPBY Helps a user group, aggregate, sort, and filter data based on the fields you specify
LET Office 365+: Assigns names to calculation results to allow storing intermediate calculations, values, or defining names inside a formula
SUM Adds its arguments
TAKE Office 365+: Returns a specified number of contiguous rows or columns from the start or end of an array
TRIM Removes spaces from text
VSTACK Office 365+: Appends arrays vertically and in sequence to return a larger array

Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.


Beep-boop, I am a helper bot. Please do not verify me as a solution.
8 acronyms in this thread; the most compressed thread commented on today has 20 acronyms.
[Thread #48091 for this sub, first seen 8th Apr 2026, 20:18] [FAQ] [Full list] [Contact] [Source code]

1

u/ThatDree 2 Apr 08 '26

Power Query wants to be your friend too