I have been placed in charge of reporting in my small company and my excel experience is semi-limited and would love is someone can assist me with this issue. We have Daily/Weekly reports that when it has been turned over seem very inefficient and I'm trying to streamline it.
Our reports are pulled from our system below and we manually sort the whole sheet using the information in column A. We then add 2 rows underneath each unique value based on Column A, we then add a COUNTA function to count how many times that unique value was used in bold under Column C and a SUM under Column K. There is also a final total based on those COUNTA and SUM Formulas on the very bottom. I'll include 2 mini sheets, the first with an example of how data is pulled vs how the final table looks. I have attempted to use AI to write this for me but it can't get the script right so I figured I'd come to the experts if you would be so kind as to assist with this.
Initial Pull
Final Product
Our reports are pulled from our system below and we manually sort the whole sheet using the information in column A. We then add 2 rows underneath each unique value based on Column A, we then add a COUNTA function to count how many times that unique value was used in bold under Column C and a SUM under Column K. There is also a final total based on those COUNTA and SUM Formulas on the very bottom. I'll include 2 mini sheets, the first with an example of how data is pulled vs how the final table looks. I have attempted to use AI to write this for me but it can't get the script right so I figured I'd come to the experts if you would be so kind as to assist with this.
Initial Pull
Example v2.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Name | Number | Info | Data2 | Data3 | Data4 | Data5 | Data6 | Data7 | Data8 | Amount | ||
2 | Dan | 1 | a | a | a | a | a | a | a | a | 123456 | ||
3 | Bob | 10 | b | b | b | b | b | b | b | b | 234567 | ||
4 | Sally | 9 | c | c | c | c | c | c | c | c | 345678 | ||
5 | Sue | 8 | b | b | b | b | b | b | b | b | 456789 | ||
6 | Dan | 5 | a | a | a | a | a | a | a | a | 134679 | ||
7 | Bob | 3 | d | d | d | d | d | d | d | d | 258258 | ||
8 | Sally | 6 | e | e | e | e | e | e | e | e | 978542 | ||
9 | Sue | 2 | a | a | a | a | a | a | a | a | 654321 | ||
10 | Dan | 4 | c | c | c | c | c | c | c | c | 623875 | ||
11 | Bob | 7 | g | g | g | g | g | g | g | g | 123669 | ||
Sheet1 |
Final Product
Example v2.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Name | Number | Info | Data2 | Data3 | Data4 | Data5 | Data6 | Data7 | Data8 | Amount | ||
2 | Bob | 10 | b | b | b | b | b | b | b | b | $234,567.00 | ||
3 | Bob | 3 | d | d | d | d | d | d | d | d | $258,258.00 | ||
4 | Bob | 7 | g | g | g | g | g | g | g | g | $123,669.00 | ||
5 | 3 | $616,494.00 | |||||||||||
6 | |||||||||||||
7 | Dan | 1 | a | a | a | a | a | a | a | a | $123,456.00 | ||
8 | Dan | 5 | a | a | a | a | a | a | a | a | $134,679.00 | ||
9 | Dan | 4 | c | c | c | c | c | c | c | c | $623,875.00 | ||
10 | 3 | $882,010.00 | |||||||||||
11 | |||||||||||||
12 | Sally | 9 | c | c | c | c | c | c | c | c | $345,678.00 | ||
13 | Sally | 6 | e | e | e | e | e | e | e | e | $978,542.00 | ||
14 | 2 | $1,324,220.00 | |||||||||||
15 | |||||||||||||
16 | Sue | 8 | b | b | b | b | b | b | b | b | $456,789.00 | ||
17 | Sue | 2 | a | a | a | a | a | a | a | a | $654,321.00 | ||
18 | 2 | $1,111,110.00 | |||||||||||
19 | |||||||||||||
20 | 10 | $3,933,834.00 | |||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C5,C10 | C5 | =COUNTA(C2:C4) |
K5,K10 | K5 | =SUM(K2:K4) |
C14,C18 | C14 | =COUNTA(C12:C13) |
K14,K18 | K14 | =SUM(K12:K13) |
C20,K20 | C20 | =SUM(C18,C14,C10,C5) |