+ Reply to Thread
Results 1 to 8 of 8

Checking the right sequence of records

  1. #1
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Checking the right sequence of records

    Hi there!

    I have a list of records in excel which indicates certain codes. For example:

    N1P5Q9L2K1K6K7F2K4G6F4I2H4


    Now I am working on the excel formula that can check for me if the following sequence is correct, which is letter/number/letter/number etc

    The result I need would be TRUE if it was correct or FALSE if for example there were two numbers standing next to each other or two letters in fact.

    I would be grateful for any solutions.

    Cheers.
    Dawid

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Checking the right sequence of records

    your string in A1
    =SUM(--(ABS((CODE(MID(A1,ROW(A2:INDEX(A:A,LEN(A1))),1))^2-CODE(MID(A1,ROW(A1:INDEX(A:A,LEN(A1)-1)),1))^2))<180))=0 as arrayformula
    Last edited by tim201110; 01-18-2017 at 10:09 AM. Reason: 5 min past ?? right formula

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Checking the right sequence of records

    Try this ...

    =ISNUMBER(SUMPRODUCT(MID(A1&1,ROW(INDIRECT("1:"&ROUNDUP(LEN(A1)/2,0)))*2,1)
    /ISERR(--MID(A1,ROW(INDIRECT("1:"&ROUNDUP(LEN(A1)/2,0)))*2-1,1))))

  4. #4
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: Checking the right sequence of records

    My contribution

    =IF(ISNUMBER(A1)/LEN(SUMPRODUCT(MID(0&A1,LARGE(INDEX(ISNUMBER(--MID(A1,ROW($1:$60),1))*ROW($1:$60),0),ROW($1:$60))+1,1)*10^ROW($1:$60)/10))=2,"TRUE","FALSE")


    Décio

  5. #5
    Forum Contributor
    Join Date
    01-18-2017
    Location
    Poznań, Poland
    MS-Off Ver
    2016
    Posts
    139

    Re: Checking the right sequence of records

    Thank you all for your answers. But honestly I am struggling to understand your concepts of those formulas but have no idea how to read it.

    Could you explain it from scratch, which function did you start from in order to make th whole formula?
    Then I might catch how to read it.

    Thank you in advance.

  6. #6
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: Checking the right sequence of records

    Szwadron6

    I like to get only numbers of the text so in the example I found 13 characters, there taking total number of characters dividing by number of characters numbers the results if true is 2, if acrontaire is false

    I'm using Google translator because English is not my native language.

    Décio of Brazil

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Checking the right sequence of records

    Withdrawn by FR.
    Last edited by FlameRetired; 01-18-2017 at 10:50 PM.
    Dave

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Checking the right sequence of records

    Withdrawn by FR.
    Last edited by FlameRetired; 01-18-2017 at 10:49 PM.

+ 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] Need macro to insert rows & convert sequence of records into new sheet
    By tabkaz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-20-2016, 10:28 AM
  2. Find a short-sequence in a longer sequence (Clash Royale Chests Challenge)
    By GeneralDisarray in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2016, 12:20 PM
  3. Replies: 7
    Last Post: 06-08-2015, 08:39 AM
  4. Replies: 1
    Last Post: 04-24-2012, 09:05 PM
  5. Checking records
    By gmoney10111 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2007, 05:48 PM
  6. Checking dB for New Records Using DAO??
    By Trip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2005, 07: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