Count values after 1

ahobbs01

New Member
Joined
Jan 13, 2023
Messages
16
Office Version
  1. 365
Platform
  1. Windows
I have a a date file that has a list of visits by day for a date range. When you look at each name you will see there's some days with 1 and then a large number that is greater than 1. I need to know how many values there are once the large numbers starts.

If I do a COUNTIF or COUNTA it counts the 1's that are before the larger number. Below is an example of the data

MrExcel Test Data 08.23.2023.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBR
1Name2023/05/252023/05/262023/05/272023/05/282023/05/292023/05/302023/05/312023/06/012023/06/022023/06/032023/06/042023/06/052023/06/062023/06/072023/06/082023/06/092023/06/102023/06/112023/06/122023/06/132023/06/142023/06/152023/06/162023/06/172023/06/182023/06/192023/06/202023/06/212023/06/222023/06/232023/06/242023/06/252023/06/262023/06/272023/06/282023/06/292023/06/302023/07/012023/07/022023/07/032023/07/042023/07/052023/07/062023/07/072023/07/082023/07/092023/07/102023/07/112023/07/122023/07/132023/07/142023/07/152023/07/162023/07/172023/07/182023/07/192023/07/202023/07/212023/07/222023/07/232023/07/242023/07/252023/07/262023/07/272023/07/282023/07/292023/07/302023/07/31Count Once Show Started
2Name 11
3Name 219529832211
4Name 31
5Name 4193631214
6Name 51
7Name 61585347421
8Name 711111118318411111111
9Name 8
10Name 914454153212111111
11Name 10181133131
12Name 111163413
13Name 121
14Name 13177816
15Name 141563121
16Name 151111116812211111
17Name 1617763121111
18Name 171711522
19Name 18
20Name 19172111211111
21Name 201323557511111111
22Name 21
Sheet1
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Can you re-post the data with the expected answers?
 
Upvote 0
Can you re-post the data with the expected answers?
MrExcel Test Data 08.23.2023.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBR
1Name2023/05/252023/05/262023/05/272023/05/282023/05/292023/05/302023/05/312023/06/012023/06/022023/06/032023/06/042023/06/052023/06/062023/06/072023/06/082023/06/092023/06/102023/06/112023/06/122023/06/132023/06/142023/06/152023/06/162023/06/172023/06/182023/06/192023/06/202023/06/212023/06/222023/06/232023/06/242023/06/252023/06/262023/06/272023/06/282023/06/292023/06/302023/07/012023/07/022023/07/032023/07/042023/07/052023/07/062023/07/072023/07/082023/07/092023/07/102023/07/112023/07/122023/07/132023/07/142023/07/152023/07/162023/07/172023/07/182023/07/192023/07/202023/07/212023/07/222023/07/232023/07/242023/07/252023/07/262023/07/272023/07/282023/07/292023/07/302023/07/31Count Once Show Started
2Name 1195298322118
3Name 21936312147
4Name 3158534742111
5Name 41111111831841111111111
6Name 51445415321211111113
7Name 61811331316
8Name 711634135
9Name 81778164
10Name 915631214
11Name 1011111168122111118
12Name 11177631211119
13Name 1217115224
14Name 1317211121111110
15Name 14132355751111111113
Sheet1
 
Upvote 0
It seems that each row has a 1 before any large number. If that is always the case then try:
Excel Formula:
=COUNT(B2:BQ2)-1
 
Upvote 0
Thanks for that, if there is only ever one 1 before the large number,how about
Excel Formula:
=COUNT(B2:BQ2)-1
otherwise
Excel Formula:
=COUNT(DROP(B2:BQ2,,INDEX(FILTER(COLUMN(B2:BQ2),B2:BQ2>1),1,1)-2))
 
Upvote 0
Solution

Forum statistics

Threads
1,216,082
Messages
6,128,706
Members
449,464
Latest member
againofsoul

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