I am using Excel 365. I am new to Power Queries but was able to get the information I wanted into a nice table. Now, I am wanting to get that information into the nice spreadsheet for daily analysis for my boss. If this is actually possible. I was using two workbooks and had #ref errors when my boss opened file (which is from D6 on) (probably due to shared license?) so, I had bright idea to try to pull my report in from our SQL that will dump into my power query daily and add to my data table. My problem is how would I pull the values on each specific date on the specified tabs from my power query (each tab is supposed to represent each day of the month)? Then I have a summary tab. I have tried sumif, sumifs, dsum, and dget. The sumif worked before on the first one but the next tab will pull both days. I'm pretty sure I could use (-) minus 1 day as part of my formula to do each day thereafter, correct? I just am not sure how to put it all together. Also, could I not automate this daily routine with a VBA code? The 1st one is tab 1/day 1(worksheet 1) where the Earned Value needs to end up from the second table which is my power query tab. I hope this all makes sense.
Cell Formulas | ||
---|---|---|
Range | Formula | |
B50:B71,B43:B48,B39:B41,B29:B37,B17:B27,B8:B15,B3:B6 | B3 | =+VLOOKUP($A3,Table1,2,FALSE) |
C50:C71,C43:C48,C39:C41,C29:C37,C17:C27,C8:C15,C3:C6 | C3 | =+VLOOKUP($A3,Table1,3,FALSE) |
D3 | D3 | =SUMIFS(Query!$A$1:$C$45,Query!B2,Query!$C$1:$C$45,A1,Query!$C$1:$C$45) |
D6 | D6 | =SUMIF(Table1_2,A6,Table1_2[SUM_EARNED]) |
D8:D15,D50:D71,D43:D48,D39:D41,D29:D37,D17:D27 | D8 | =SUMIF('Report Daily Dump.xlsx'!Table1[Work Center],A8,'Report Daily Dump.xlsx'!Table1[Earned Value]) |
Press CTRL+SHIFT+ENTER to enter array formulas. |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
Query!ExternalData_1 | =Query!$A$1:$C$45 | D3 |
New Daily Summary with MTD Rev A (1) (version 1).xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Work Center | Prod Date | SUM_EARNED | ||
2 | FBD 2 | 2/1/2022 | 167.0856 | ||
3 | FAN | 2/1/2022 | 2526.9746 | ||
4 | FSA FFV 4A | 2/1/2022 | 3076.504 | ||
5 | FFV 1 | 2/1/2022 | 1747.1454 | ||
6 | FFP 3 | 2/1/2022 | 489.3056 | ||
7 | FHD 4 | 2/1/2022 | 2068.4802 | ||
8 | FHD 5 | 2/1/2022 | 2273.832 | ||
9 | FHF 5 | 2/1/2022 | 1271.5164 | ||
10 | FHX 5 | 2/1/2022 | 451.344 | ||
11 | FHX 4 | 2/1/2022 | 334.5712 | ||
12 | FHX 6 | 2/1/2022 | 445.7022 | ||
13 | FEC 2 | 2/1/2022 | 2332.4038 | ||
14 | FGH 2 | 2/1/2022 | 3528.19 | ||
15 | FEB B | 2/1/2022 | 4618.9143 | ||
16 | FHX 1 | 2/1/2022 | 0 | ||
17 | FAQ | 2/1/2022 | 1437.4272 | ||
18 | FSA FFV 3A | 2/1/2022 | 3659.4064 | ||
19 | FSA FFV 3B | 2/1/2022 | 3613.8708 | ||
20 | FHF 4 | 2/1/2022 | 1054.1025 | ||
21 | FHF 2 | 2/1/2022 | 4090.374 | ||
22 | FSA MOLD 3 | 2/1/2022 | 3525.0553 | ||
23 | FSA MOLD 1 | 2/1/2022 | 2419.651 | ||
24 | FSA FGB 2 | 2/1/2022 | 3697.7081 | ||
25 | FHT 7 | 2/1/2022 | 1180.1088 | ||
26 | FHT 4 | 2/1/2022 | 2302.8912 | ||
27 | FHT 3 | 2/1/2022 | 2379.4416 | ||
28 | FHF 1 | 2/1/2022 | 1736.8245 | ||
29 | FSA FFV 5A | 2/1/2022 | 731.4216 | ||
30 | FHD 3 | 2/1/2022 | 1704.3225 | ||
31 | FHF 3 | 2/1/2022 | 3254.8035 | ||
32 | FSA MOLD 2 | 2/1/2022 | 2709.052 | ||
33 | FHT 5 | 2/1/2022 | 970.6851 | ||
34 | FSA FFV 5B | 2/1/2022 | 976.5684 | ||
35 | FGH 1 | 2/1/2022 | 3298.5624 | ||
36 | FEB A | 2/1/2022 | 4478.167 | ||
37 | FHX 3 | 2/1/2022 | 463.3783 | ||
38 | FGB 1 | 2/1/2022 | 3622.92 | ||
39 | FHV 1 | 2/1/2022 | 2174.4632 | ||
40 | FHT 1 | 2/1/2022 | 8921.8936 | ||
41 | FHD 1 | 2/1/2022 | 4570.0603 | ||
42 | FFP 2 | 2/1/2022 | 1308.2332 | ||
43 | FAQ 2 | 2/1/2022 | 1590.4128 | ||
44 | FSA FFV 4B | 2/1/2022 | 762.32 | ||
45 | FHD 2 | 2/1/2022 | 1764.6525 | ||
Query |