+ Reply to Thread
Results 1 to 12 of 12

How to check digits of a number

Hybrid View

  1. #1
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: How to check digits of a number

    With number in A1

    This returns TRUE/FALSE, use it for conditional formatting

    =AND(MID(A1,ROW(INDIRECT("2:"&LEN(A1))),1)-MID(A1,ROW(INDIRECT("1:"&LEN(A1)-1)),1)>0)
    Array formula, confirmed with Ctrl-shift-enter
    Quang PT

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: How to check digits of a number

    Quote Originally Posted by bebo021999 View Post
    . . .
    =AND(MID(A1,ROW(INDIRECT("2:"&LEN(A1))),1)-MID(A1,ROW(INDIRECT("1:"&LEN(A1)-1)),1)>0)
    Would return an error when A1 has just 1 numeral, in which case INDIRECT("1:"&0) would be the cause.

+ 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. Count number of unique X digits duplicate pairs from a number
    By SedoSan7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2019, 04:03 AM
  2. How to ID digits within a group of 8-digits that equal a specified number
    By Thunder001 in forum Excel Formulas & Functions
    Replies: 31
    Last Post: 07-04-2019, 02:49 AM
  3. [SOLVED] VBA Filter Out Unique Digits Permutation via Check Box Mark
    By AndyJr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2018, 12:47 AM
  4. Check most frequent number in 1 column that has 4 digits number
    By Merson78 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-07-2014, 10:57 PM
  5. Replies: 5
    Last Post: 12-08-2008, 11:47 AM
  6. Check digits between column
    By iamrony in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2008, 11:24 PM
  7. ISBN Check Digits
    By Colin Vicary in forum Excel General
    Replies: 3
    Last Post: 08-12-2005, 12: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