Forum Discussion

bfield66's avatar
bfield66
Copper Contributor
Jan 31, 2022
Solved

IF(LEFT(ISNUMBER statement

I'm trying to use an IF statement to pull the left 6 characters, ONLY if they are numbers. Example below.

 

184412 MAIN FRAME UPDATE

4 Replies

  • bfield66 

    =IF(SUM((LEN(LEFT(C4,6))-LEN(SUBSTITUTE(LEFT(C4,6),$A$4:$A$13,)))/LEN($A$4:$A$13))=6,LEFT(C4,6),"")

     

    An alternative could be above formula as shown in the attached file. Enter formula with ctrl+shift+enter if you don't work with Office365 or 2021.

    • bfield66's avatar
      bfield66
      Copper Contributor
      So close! I returns just the first digit.
      • bfield66's avatar
        bfield66
        Copper Contributor
        Sorry, my mistake!! You are absolutely correct!!

Resources