+ Reply to Thread
Results 1 to 15 of 15

finding patterns in a range of cells

Hybrid View

  1. #1
    Registered User
    Join Date
    01-03-2013
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: finding patterns in a range of cells

    Sorting the results gives the entire list, so if you have 1000 lines you have to go through all of them. In this example after applying the formula, there are 32 distinct patterns, I just want to list the pattern and its frequency only once, e.g.:
    0000000 32
    1000000 20
    and so on. Sorting will list'000000' 32 times then '100000' 20 times, then the next, etc.
    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: finding patterns in a range of cells

    Hi,

    I don't understand your difficulty.
    I didn't say to sort the original data

    If you've followed my method you will end up in the results column K with (say) 32 unique patterns (with the original columns L:Q) and column R with the frequency. So just sort K:R using column R as the sort key in descending order.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-03-2013
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: finding patterns in a range of cells

    I used "=SUMPRODUCT(--($B$4:$B$318&$C$4:$C$318&$D$4:$D$318&$E$4:$E$318&$F$4:$F$318&$G$4:$G$318=$B$4&C4&D4&E4&F4&G4))" in column 'I' and I sorted the six columns using 'I' the sort key. in the example the pattern in columns L:P is not known.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: finding patterns in a range of cells

    Quote Originally Posted by shart2k12 View Post
    Sorting the results gives the entire list, so if you have 1000 lines you have to go through all of them. In this example after applying the formula, there are 32 distinct patterns, I just want to list the pattern and its frequency only once, e.g.:
    0000000 32
    1000000 20
    and so on. Sorting will list'000000' 32 times then '100000' 20 times, then the next, etc.
    Thanks
    There are only 64 variations, list them all, then use Richard's or my original suggestion , and you will get what you want, including the sequencesthat have no matches.

+ 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. Finding patterns
    By GaidenFocus in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-06-2012, 03:59 PM
  2. Replies: 3
    Last Post: 04-01-2012, 05:37 AM
  3. Macro to search for patterns in a range of dates
    By bsweet0us in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2011, 10:49 PM
  4. Finding same patterns in groupings of cells
    By modoud in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2007, 01:19 PM
  5. Patterns in cells won't print
    By Gabrielle in forum Excel General
    Replies: 2
    Last Post: 04-21-2006, 09:25 AM

Tags for this Thread

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