+ Reply to Thread
Results 1 to 5 of 5

Count number of times a 6 digit number show up in a cell

  1. #1
    Forum Contributor
    Join Date
    07-31-2009
    Location
    Lincoln, USA
    MS-Off Ver
    Excel 2007 and excel 2010
    Posts
    142

    Count number of times a 6 digit number show up in a cell

    Hello and thank you in advance.

    I've ran across an interesting situation that I cant figure out.

    I get a report with detailed information in each cell with anywhere from 1 to 50 six digit client numbers included in the text (Somewhere and at times grouped with letters because the user failed to hit space)

    what I'm trying to do is create a formula that will count the number of these 6 digit groups in each cell so I can see how many clients each comment is related to.

    I've attached a example sheet
    - Column A has mocked up text and number combo's - the 6 digit long groupings I'm trying to count are bold and red.
    - Column B is the end number the formula should return.

    I'm stumped so anything you can do will help.
    Last edited by fireguy7; 04-22-2020 at 04:10 PM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count number of times a 6 digit number show up in a cell

    Hi,

    =COUNT(1/(MMULT(ABS({1,0,0,0,0,0,0,1}-ISNUMBER(0+MID(MID("ζ"&A2&"ζ",ROW(INDIRECT("1:"&LEN(A2)-5)),8),{1,2,3,4,5,6,7,8},1))),{1;1;1;1;1;1;1;1})=8))

    and copied down.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Count number of times a 6 digit number show up in a cell

    Please try at B2

    =SUM(--(FREQUENCY(IF(ISNUMBER(-MID(A2,ROW($A$1:$A$99),1)),ROW($A$1:$A$99)),IF(ISERROR(-MID(A2,ROW($A$1:$A$99),1)),ROW($A$1:$A$99)))=6))

    and press Ctrl+Shift+Enter

  4. #4
    Forum Contributor
    Join Date
    07-31-2009
    Location
    Lincoln, USA
    MS-Off Ver
    Excel 2007 and excel 2010
    Posts
    142

    Re: Count number of times a 6 digit number show up in a cell

    Both worked well thanks every one!

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Count number of times a 6 digit number show up in a cell

    @XOR LX and fireguy7
    Thanks for the reps

    A bit shorten one

    =SUM(--(FREQUENCY(ROW($A$1:$A$99),IF(ISERROR(-MID(A2,ROW($A$1:$A$99),1)),ROW($A$1:$A$99)))=7))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Count number of times a number appears with count start from next cell of last occurr
    By lesliewheeler in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-29-2018, 09:34 AM
  2. [SOLVED] How to start count after 4 times the number show up
    By davi65 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 11-05-2016, 03:12 PM
  3. [SOLVED] Formatting to make 2 digit number show up at 3 digit number.
    By cadamhill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 06:58 PM
  4. [SOLVED] Count number of times a specific number is displayed in a cell ran
    By N Harkawat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 PM
  5. [SOLVED] Count number of times a specific number is displayed in a cell ran
    By subs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. [SOLVED] Count number of times a specific number is displayed in a cell ran
    By subs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. Count number of times a specific number is displayed in a cell ran
    By subs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2005, 01:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1