Sum if the adjacent cell is same as a cell in sperate tab AND another cell in separate tab is not empty

Woodpusher147

Board Regular
Joined
Oct 6, 2021
Messages
69
Office Version
  1. 365
Platform
  1. Windows
HI and thank you for any help given

IM sure its not to complex but I need help :)

IM looking for a formula to place in C5,6,7 etc (Tab 2) that will Sum cells in column C (Tab1) that contain the same code (L, M, XL) as column B (Tab2) This should only calculate IF J13 (Tab1) is not empty

1673965884817.png
This is TAB 2 where I need it to calculate the amount of L,M etc shirts that are black or white

Tab 1 is the order form
which is a little like this
1673966323935.png
1673966514533.png


There are also the 2 cells with black or white choice. An X would be placed in either depending which colour. All orders per order form are the same colour choice





IT really doesnt matter which cells these are, they can be A B C as these will change a little




Thanks again for any help
 
By addiing the extra columns to siginify which are white & which are black.
Really sorry but I dont understand

Could you give me an example?

I guess it would be better to take the results from each individual Order sheet yes?
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
In that case can you post the data from the consolidated sheet.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Here is the COllation sheet

Dunamis Cutting Plan List.xlsx
BCDEFGH
6Order 1Master Cut List
7Jersey StyleSize Quantity
8110XL30
9Jersey #001J13-25SizeWhiteBlack
10Jersey #002S10Baby0
11Jersey #004XL405XS0
12Jersey2XLNM204XS0
130003XS0
140002XS0
15000XS0
16125S57
17Order 2M0
18Jersey StyleSize QuantityL79
19Jersey #003XL15XL185
20Jersey #001L252XL0
21Jersey #002S103XL0
220004XL0
230005XL0
24000Netminder Jersey Cuts
25000
26000SNM0
27MNM0
28Order 3LMN0
29Jersey StyleSize QuantityXLNM0
30Jersey #003XL152XLNM20
31Jersey #001L25
32Jersey #001S10
33000
34000
35000
36000
37000
38
39Order 4
40Jersey StyleSize Quantity
41Jersey #003XL15
42Jersey #003L4
43Jersey #001S17
44000
45000
46000
47000
48000
49
50Order 5
51Jersey StyleSize Quantity
52Jersey #003XL30
53Jersey #001L25
54Jersey #002S10
55Jersey #004XL40
56000
57000
58000
59000
Collation
Cell Formulas
RangeFormula
B8:D15B8='Order 1'!B43:D50
D16D16=SUM(D8:D15)
B19:D26B19='Order 2'!B43:D50
G10G10=J16
G11:G23,G26:G30G11=SUM(IF($C$8:$C$59=F11, $D$8:$D$59))
B30:D37B30='Order 3'!B43:D50
B41:D48B41='Order 4'!B43:D50
B52:D59B52='Order 5'!B43:D50
Dynamic array formulas.
 
Upvote 0
Here is the COllation sheet

Dunamis Cutting Plan List.xlsx
BCDEFGH
6Order 1Master Cut List
7Jersey StyleSize Quantity
8110XL30
9Jersey #001J13-25SizeWhiteBlack
10Jersey #002S10Baby0
11Jersey #004XL405XS0
12Jersey2XLNM204XS0
130003XS0
140002XS0
15000XS0
16125S57
17Order 2M0
18Jersey StyleSize QuantityL79
19Jersey #003XL15XL185
20Jersey #001L252XL0
21Jersey #002S103XL0
220004XL0
230005XL0
24000Netminder Jersey Cuts
25000
26000SNM0
27MNM0
28Order 3LMN0
29Jersey StyleSize QuantityXLNM0
30Jersey #003XL152XLNM20
31Jersey #001L25
32Jersey #001S10
33000
34000
35000
36000
37000
38
39Order 4
40Jersey StyleSize Quantity
41Jersey #003XL15
42Jersey #003L4
43Jersey #001S17
44000
45000
46000
47000
48000
49
50Order 5
51Jersey StyleSize Quantity
52Jersey #003XL30
53Jersey #001L25
54Jersey #002S10
55Jersey #004XL40
56000
57000
58000
59000
Collation
Cell Formulas
RangeFormula
B8:D15B8='Order 1'!B43:D50
D16D16=SUM(D8:D15)
B19:D26B19='Order 2'!B43:D50
G10G10=J16
G11:G23,G26:G30G11=SUM(IF($C$8:$C$59=F11, $D$8:$D$59))
B30:D37B30='Order 3'!B43:D50
B41:D48B41='Order 4'!B43:D50
B52:D59B52='Order 5'!B43:D50
Dynamic array formulas.
And here is one of the 5 Order sheets, they are all the same but each one would only have one of the Black or White cells marked with an X as all the shorts in each sheet would be same colour

Dunamis Cutting Plan List.xlsx
ABCDEFGHIJK
2Production Works OrderRef:Page 1 of
3Delivery Address
4Delivery Due (W/C):
5
6Customer Order Ref:
7
8Priority:
9
10Copy of Customer Order Attached? Y/N
11Specification/Artwork - Customer Approval Form must be attachedCut StyleNeck Type
12WHITEU' Cut
13X
14BLACKV' Cut
15
16Dress CutDiamond
17
18Std. LadiesInner Neck Colour
19
20Player Ladies
21
22Stitch ColourRibbon Colour
23OverlockBlack
24
25HemNavy
26
27CoverNeck
28
29CollarLace
30
31
32Materials/Parts Required i.e PW314, PW350
33Awaiting OrderedAwaiting Due Date arrivedAll Parts in StockStock used Y/N
34
35Special InstructionsDelivery Instructions
36
37
38
39Print Profile
4060006200/9400
41
42Tray No.ProductSizeQuantityDate / Start TimeInitial CheckCutting CheckPrinting CheckHeat Press CheckSewing CheckPacking Check
43Z1Jersey #003XL1503/01/2023
44Z2Jersey #001L25
45Z3Jersey #001S10
46Z4
47Z5
48
49
Order 3
 
Upvote 0
Thanks for that, how about
Fluff.xlsm
ABCDEFGHIJK
4
5
6Order 1Master Cut List
7Jersey StyleSize QuantityBlackWhite
8110XL30 x
9Jersey #001J13-25 xSizeWhiteBlack
10Jersey #002S10 xBaby00
11Jersey #004XL40 x5XS00
12Jersey2XLNM20 x4XS00
13000 x3XS00
14000 x2XS00
15000 xXS00
16125 S1010
17Order 2M00
18Jersey StyleSize QuantityL025
19Jersey #003XL15x XL7015
20Jersey #001L25x2XL00
21Jersey #002S10x3XL00
22000x4XL00
23000x5XL00
24000xNetminder Jersey Cuts
25000x
Main
Cell Formulas
RangeFormula
J10:J23J10=SUMIFS($D$8:$D$59,$C$8:$C$59,I10,$F$8:$F$59,"x")
K10:K23K10=SUMIFS($D$8:$D$59,$C$8:$C$59,I10,$E$8:$E$59,"x")
F8:F15F8=Order1!$J$16&""
E8:E15E8=Order1!$J$18&""
E16E16=Order1!J26&""
F19F19=Order2!$J$16&""
E19:E25E19=Order2!$J$18&""


Change the cell refs in cols E & F to suit
 
Upvote 0
Solution
Thanks for that, how about
Fluff.xlsm
ABCDEFGHIJK
4
5
6Order 1Master Cut List
7Jersey StyleSize QuantityBlackWhite
8110XL30 x
9Jersey #001J13-25 xSizeWhiteBlack
10Jersey #002S10 xBaby00
11Jersey #004XL40 x5XS00
12Jersey2XLNM20 x4XS00
13000 x3XS00
14000 x2XS00
15000 xXS00
16125 S1010
17Order 2M00
18Jersey StyleSize QuantityL025
19Jersey #003XL15x XL7015
20Jersey #001L25x2XL00
21Jersey #002S10x3XL00
22000x4XL00
23000x5XL00
24000xNetminder Jersey Cuts
25000x
Main
Cell Formulas
RangeFormula
J10:J23J10=SUMIFS($D$8:$D$59,$C$8:$C$59,I10,$F$8:$F$59,"x")
K10:K23K10=SUMIFS($D$8:$D$59,$C$8:$C$59,I10,$E$8:$E$59,"x")
F8:F15F8=Order1!$J$16&""
E8:E15E8=Order1!$J$18&""
E16E16=Order1!J26&""
F19F19=Order2!$J$16&""
E19:E25E19=Order2!$J$18&""


Change the cell refs in cols E & F to suit
THIS IS GREAT

THANK YOU VERY MUCH

:)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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