Counting values

Michael1727

New Member
Joined
Apr 28, 2023
Messages
7
Office Version
  1. 2021
Platform
  1. Windows
Hello. This forum has been very helpful in the past. Not sure what to title this as a topic, but I will explain what I'm trying to do in an example:

In the below example I have no formatting or equations, I have just set up the table how I am envisioning it might work. In column A I have an ongoing list of part numbers that are defective. the 6th digit (in red) is the shift number (1-4). My goal is to extract the shift number for each part number and populate a tally into a column for that shift number (B-E) so that the column for that shift number can keep an ongoing total (row 2) of how many part numbers appear with that shift number. I'm then planning on using the totals in row 2 as data to be expressed in a graph. I hope that makes sense.

1686141025736.png


Thank you.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
This one might be automatically expandable. I'm not sure how well it will go in 2021, but it should be okay.

MrExcelPlayground17.xlsx
ABCDE
11234
21431
32020220270100
42206232390010
52208710481000
62208730400010
72211640280001
82216820240100
92216820350100
102218820040100
112219930700010
Sheet28
Cell Formulas
RangeFormula
B1:E1B1=TRANSPOSE((SORT(UNIQUE(MID(A3:A11,6,1)))))
B2:E2B2=TRANSPOSE(MMULT(TRANSPOSE(B3#),SEQUENCE(ROWS(B3#),1,1,0)))
B3:E11B3=IF(MID(A3:A11,6,1)=B1#,1,0)
Dynamic array formulas.
 
Upvote 0
Another option as you have xl 2021
Fluff.xlsm
ABCDE
11234
21121
3202022027 1
42206232391
52208710481
62208730401
72211640281
Home
Cell Formulas
RangeFormula
B2:E2C2=SUM(INDEX($B3#,,COLUMNS($B2:C2)))
B3:E7B3=LET(f,FILTER(A3:A100,A3:A100<>""),IF(--MID(f,6,1)=B1:E1,1,""))
Dynamic array formulas.
 
Upvote 0
You'll have to excuse my ignorance. I was able to populate row 2 with the formulas =SUM(B3:B6) but I'm not sure how or where to populate the formula for the remaining rows and columns. Whenever I do, row 2 shows "#SPILL!"
 
Upvote 0
For the formula I suggested you need to clear Columns B:E from row 3 down & then put the formula in B3 only.
 
Upvote 0
For the formula I suggested you need to clear Columns B:E from row 3 down & then put the formula in B3 only.
Aha. Got it tow work. Wow, the formula even recognized what the 6th digit is and populates it in the correct column. I would never have figured this out. Thank you
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,709
Members
449,118
Latest member
MichealRed

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