Forum Discussion
Deleted
Oct 10, 2018Count cells from Company to Company.
Company 402 has 5 lines before Company 421. Want to enter the line count either in formula or Macro. Any help would be appreciated. Count 1 Company Number: 402 5 ABC MANUFACTU...
SergeiBaklan
Oct 10, 2018MVP
Hi Matt,
Starting from C3
=IF(ISBLANK(A3),C2+1,1)
and attached
- DeletedOct 10, 2018
Can I get the count cells to all be the total number of cells counted? instead of 1-5 it puts 5 in all of them, or 6 depending on how many rows are counted?
- Detlef_LewinOct 10, 2018Silver Contributor
Matt,
formula for helper column D:
=IF(A2,SUM(D1,1),D1)
Formula for column B:
=COUNTIFS($D$2:$D$41,D2)
- SergeiBaklanOct 10, 2018MVP
or
=IF(ISBLANK(A2),C1,IFNA(MATCH(FALSE,ISBLANK(OFFSET(A2,1,0,2000)),0),COUNTA(B2:B2000)))
but it depends on how the list of companies ended. Here I assume there are only blank cells after it.