=SUM(COUNTIFS(D5:D15,"Mountain Blue",A5:A15,"*"&{1,2,3,4,5,6,7,8,9}&"xWindow*")*{1,2,3,4,5,6,7,8,9})
Counting window colours from Accessories Colour column.
this works fine if its 1-9 in the Extras … but when its 10+ the result is wrong.
What is the best way to make {1,2,3,4,5,6,7,8,9} … 1-99
Below:
Left 2 columns data, right 2 are results using above
[TABLE="class: grid, width: 500, align: left"]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]Extras[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Accessories Colour[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 352"]
[TR="class: grid"]
[TD="width: 352, colspan: 2"]Windows[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x30003150, 3x25002770, 2xMotor, 1xPAD, 3xInso[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD]Heritage Red[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x25005100, 1xMotor, 1xPAD[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Mist Green[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 1xPAD, 1 xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Mountain Blue[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]3[/TD]
[TD][TABLE="width: 131"]
[TR]
[TD="class: xl67, width: 131"]Result should be 13[/TD]
[/TR]
[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x30003150, 2x25002770, 9xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Smooth Cream[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 4xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Smooth Cream[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 12xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Mountain Blue[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]TOTAL[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 1xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2xInso, 6xSideOB, 4xGableOB[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Mist Green[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x25002770, 1xPAD, 1xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Smooth Cream[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x25002770, 1xPAD, 1xWindow, 1xInso[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Heritage Red[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1xWindow, 1xSideOB, 2xGableOB[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Mountain Blue[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[/TABLE]
Counting window colours from Accessories Colour column.
this works fine if its 1-9 in the Extras … but when its 10+ the result is wrong.
What is the best way to make {1,2,3,4,5,6,7,8,9} … 1-99
Below:
Left 2 columns data, right 2 are results using above
[TABLE="class: grid, width: 500, align: left"]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]Extras[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Accessories Colour[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 352"]
[TR="class: grid"]
[TD="width: 352, colspan: 2"]Windows[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x30003150, 3x25002770, 2xMotor, 1xPAD, 3xInso[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD]Heritage Red[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x25005100, 1xMotor, 1xPAD[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Mist Green[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 1xPAD, 1 xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Mountain Blue[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]3[/TD]
[TD][TABLE="width: 131"]
[TR]
[TD="class: xl67, width: 131"]Result should be 13[/TD]
[/TR]
[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x30003150, 2x25002770, 9xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Smooth Cream[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 4xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]Smooth Cream[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 12xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Mountain Blue[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][TABLE="width: 180"]
[TR="class: grid"]
[TD="width: 180"]TOTAL[/TD]
[/TR]
[/TABLE]
[/TD]
[TD]19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2x25002770, 1xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Slate Grey[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]2xInso, 6xSideOB, 4xGableOB[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Mist Green[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x25002770, 1xPAD, 1xWindow[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Smooth Cream[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1x25002770, 1xPAD, 1xWindow, 1xInso[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Heritage Red[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 309"]
[TR="class: grid"]
[TD="width: 309"]1xWindow, 1xSideOB, 2xGableOB[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][TABLE="width: 125"]
[TR="class: grid"]
[TD="width: 125"]Mountain Blue[/TD]
[/TR]
[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[/TABLE]