I'm working on a project currently that requires me to sort a dataset into individual departments and print a list of products off for the department to check physical stock.
Currently my sheet splits into 7 different sheets, each with a separate department list
This works by sorting the "Dept #" column into each sheet, and showing nothing when the department number doesn't match that department (2013 excel... so no =FILTER)
I am wanting to automatically filter out the blanks in each row. For example with the attached sheet removing A2:Q9, A11:Q12 and so on, for each of the 7 departments sheets.
I then want to print columns A to L to the last row with figures on it (Basically the Print selection option) with the screenshotted options:
After it is sorted it needs to look like this:
Here is the base sheet. Any help is appreciated.
Currently my sheet splits into 7 different sheets, each with a separate department list
This works by sorting the "Dept #" column into each sheet, and showing nothing when the department number doesn't match that department (2013 excel... so no =FILTER)
I am wanting to automatically filter out the blanks in each row. For example with the attached sheet removing A2:Q9, A11:Q12 and so on, for each of the 7 departments sheets.
I then want to print columns A to L to the last row with figures on it (Basically the Print selection option) with the screenshotted options:
After it is sorted it needs to look like this:
Cell Formulas | ||
---|---|---|
Range | Formula | |
L10,L13:L14,L22,L30:L34 | L10 | =IF(I10="","",K10+J10) |
M10,M13:M14,M22,M30:M34 | M10 | =IF(I10="","",(I10/H10)) |
N10,N13:N14,N22,N30:N34 | N10 | =IFERROR(IF(L10="","",L10-H10),"") |
P10,P13:P14,P22,P30:P34 | P10 | =IF(N10="","",N10*M10) |
Q10,Q13:Q14,Q22,Q30:Q34 | Q10 | =IF(N10="","",N10&"."&F10) |
F10,F13:F14,F22,F30:F34 | F10 | =IF('Raw Data'!J10=0,"",'Raw Data'!F10) |
G10,G13:G14,G22,G30:G34 | G10 | =IF('Raw Data'!J10=0,"",'Raw Data'!G10) |
H10,H13:H14,H22,H30:H34 | H10 | =IF('Raw Data'!J10=0,"",'Raw Data'!H10) |
I10,I13:I14,I22,I30:I34 | I10 | =IF('Raw Data'!J10=0,"",'Raw Data'!I10) |
C10,C30:C34,C22,C13:C14 | C10 | =IF('Raw Data'!J10=0,"",'Raw Data'!C10) |
D10,D30:D34,D22,D13:D14 | D10 | =IF('Raw Data'!J10=0,"",'Raw Data'!D10) |
A10,A13:A14,A22,A30:A34 | A10 | =IF('Raw Data'!J10=0,"",'Raw Data'!A10) |
Here is the base sheet. Any help is appreciated.
01.08.22.xlsx | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |||
1 | Store # | Store Name | Region | Dept # | Dept Name | Article # | Article Description 2 | Qty | $ Amount | Floor | Reserve | Total | Unit Cost | Adjustment Amount | Reason | Adjustment Cost | Adjustment Code | ||
2 | |||||||||||||||||||
3 | |||||||||||||||||||
4 | |||||||||||||||||||
5 | |||||||||||||||||||
6 | |||||||||||||||||||
7 | |||||||||||||||||||
8 | |||||||||||||||||||
9 | |||||||||||||||||||
10 | 2020 | Test Store | 2 | 898 | Test Brand 1 | 6324271002 | L+L PANT CLASSIC BLACK, Black, 92 | -1 | -89.99 | 0 | 0 | 0 | 89.99 | 1 | 89.99 | 1.6324271002 | |||
11 | |||||||||||||||||||
12 | |||||||||||||||||||
13 | 2020 | Test Store | 2 | 897 | Test Brand 2 | 6672208005 | L+LC SHIRT LS OXFORD CONTRAST, White, XL | -1 | -69.99 | 0 | 0 | 0 | 69.99 | 1 | 69.99 | 1.6672208005 | |||
14 | 2020 | Test Store | 2 | 897 | Test Brand 2 | 6679920001 | L+LC SHIRT LS BRUSHED NAVY, Navy, XS | -1 | -69.99 | 0 | 0 | 0 | 69.99 | 1 | 69.99 | 1.6679920001 | |||
15 | |||||||||||||||||||
16 | |||||||||||||||||||
17 | |||||||||||||||||||
18 | |||||||||||||||||||
19 | |||||||||||||||||||
20 | |||||||||||||||||||
21 | |||||||||||||||||||
22 | 2020 | Test Store | 2 | 832 | Test Brand 3 | 6667802001 | KATR SS SHIRT MURPHY WHITE, White, S | -1 | -59.99 | 0 | 0 | 0 | 59.99 | 1 | 59.99 | 1.6667802001 | |||
23 | |||||||||||||||||||
24 | |||||||||||||||||||
25 | |||||||||||||||||||
26 | |||||||||||||||||||
27 | |||||||||||||||||||
28 | |||||||||||||||||||
29 | |||||||||||||||||||
30 | 2020 | Test Store | 2 | 877 | Test Brand 4 | 6493535003 | CHIS SWEATER JAMIE VEE NECK NAV, Navy, L | -1 | -49.99 | 0 | 0 | 0 | 49.99 | 1 | Stocktake | 49.99 | 1.6493535003 | ||
31 | 2020 | Test Store | 2 | 877 | Test Brand 4 | 6611095003 | CHIS SHORT EW CARGO LT BLUE, Lt Blue, L | -1 | -49.99 | 0 | 0 | 0 | 49.99 | 1 | 49.99 | 1.6611095003 | |||
32 | 2020 | Test Store | 2 | 877 | Test Brand 4 | 6616223004 | CHIS ULTIMATE POLO YELLOW, Yellow, XL | -1 | -49.99 | 0 | 0 | 0 | 49.99 | 1 | Stocktake | 49.99 | 1.6616223004 | ||
33 | 2020 | Test Store | 2 | 877 | Test Brand 4 | 6616224004 | CHIS ULTIMATE POLO SAGE, Sage, XL | -1 | -49.99 | 0 | 0 | 0 | 49.99 | 1 | Stocktake | 49.99 | 1.6616224004 | ||
34 | 2020 | Test Store | 2 | 877 | Test Brand 4 | 6628336005 | CHIS SS SHIRT MASON WHITE, White, 2XL | -1 | -49.99 | 1 | 0 | 1 | 49.99 | 2 | Stocktake | 99.98 | 2.6628336005 | ||
35 | |||||||||||||||||||
36 | |||||||||||||||||||
37 | |||||||||||||||||||
38 | |||||||||||||||||||
39 | |||||||||||||||||||
40 | |||||||||||||||||||
41 | |||||||||||||||||||
Mens |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B35:B41,B23:B29,B15:B21,B11:B12,B2:B9 | B2 | =IF('Raw Data'!J2=0,"",'Raw Data'!B2) |
C2:C41 | C2 | =IF('Raw Data'!J2=0,"",'Raw Data'!C2) |
D2:D41 | D2 | =IF('Raw Data'!J2=0,"",'Raw Data'!D2) |
E35:E41,E23:E29,E15:E21,E11:E12,E2:E9 | E2 | =IF('Raw Data'!J2=0,"",'Raw Data'!E2) |
F2:F41 | F2 | =IF('Raw Data'!J2=0,"",'Raw Data'!F2) |
G2:G41 | G2 | =IF('Raw Data'!J2=0,"",'Raw Data'!G2) |
L2:L41 | L2 | =IF(I2="","",K2+J2) |
M2:M41 | M2 | =IF(I2="","",(I2/H2)) |
N2:N41 | N2 | =IFERROR(IF(L2="","",L2-H2),"") |
P2:P41 | P2 | =IF(N2="","",N2*M2) |
Q2:Q41 | Q2 | =IF(N2="","",N2&"."&F2) |
H3:H41 | H3 | =IF('Raw Data'!J3=0,"",'Raw Data'!H3) |
I3:I41 | I3 | =IF('Raw Data'!J3=0,"",'Raw Data'!I3) |
A2:A41 | A2 | =IF('Raw Data'!J2=0,"",'Raw Data'!A2) |