multi cell count in order ?

JMITCH26

Board Regular
Joined
May 18, 2005
Messages
84
How can I count cells A1:G1 and if it matches the criteria in the correct order then count and put the count number in cell B12.

Then look at cells A2:G2 and if it matches the criteria in the correct order then count and put the count number in cell B13 and so on


Example:

Cell
... A B D E F G
1 . 3 2 4 1 4 1
2 . 2 3 2 3 3 2
3 . 5 0 4 1 3 2
4 . 2 3 2 3 2 3
5 . 5 0 4 1 3 2
6 . 5 0 4 1 3 2
7 . 4 1 3 2 3 2
8 . 3 2 4 1 4 1


Cell
A12 ....... B12
Number Counts
324141 ... 2
504132 ... 3
232332 ... 1
232323 ... 1
413232 ... 1
414141 ... 0
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Never mind, I have answered my own question. I will consider an answer.
 
Last edited:
Upvote 0
What happened to column C ?

In H1 put this formula and fill down : =A1&B1&D1&E1&F1&G1

In B13 put this formula and fill down : =COUNTIF(H$2:H$8,A13)
 
Upvote 0
You could count them directly like this. If column C is actually skipped, just change the ranges in the formula to suit.


Book1
ABCDEF
1324141
2232332
3504132
4232323
5504132
6504132
7413232
8324141
9
10
11NumberCounts
123241412
135041323
142323321
152323231
164132321
174141410
Count
Cell Formulas
RangeFormula
B12=SUMPRODUCT(--(A$1:A$8&B$1:B$8&C$1:C$8&D$1:D$8&E$1:E$8&F$1:F$8=A12&""))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

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