Forum Discussion

Lennart5's avatar
Lennart5
Copper Contributor
Apr 08, 2020
Solved

How to separate numbers with brackets in a table

I have one table where I have normal numbers and numbers with brackets. I need a new table where I have only numbers with brackets.   For example this table  1 2 4 [5] 6   5 [38,3] 6 ...
  • SergeiBaklan's avatar
    SergeiBaklan
    Apr 13, 2020

    Lennart5 

    It shall be no problem with that - if you open the file I attached for the previous post, Excel automatically will show you all formulas and numbers format for the Estonian locale. There is no need to translate formulas published in the text of the post.

     

    However,

    1) If you have no file and would like to translate some formulas I'd recommend this online tool https://excel-translator.de/

    2) In attached file formulas are adjusted for your actual range. Please note, opening it I see everything for English SKU, you will see the same for Estonian one.

    First, to simplify the formulas I added named ranges

    Formulas itself are located here

    and they are

    =INT(
      XMATCH(FILTER(
          INDEX(Range,
              TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
              TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)
         ),
          LEFT(
            INDEX(Range,
                 TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
                 TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)
            ),1
          )="["),
          INDEX(Range,
                TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
                TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)
          ), 0)/nColumns)+1 &
    "," &
    MOD(
      XMATCH(FILTER(
          INDEX(Range,
              TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
              TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)
          ),
          LEFT(INDEX(Range,
               TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
               TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)),1)="["),
          INDEX(Range,
                TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
                TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)),
      0),nColumns)

    and

    =NUMBERVALUE(SUBSTITUTE(
      SUBSTITUTE(
      FILTER(
          INDEX(Range,
                TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
                TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)
        ),
        LEFT(
          INDEX(Range,
                TRANSPOSE(INT(SEQUENCE(nRows*nColumns,,nColumns)/nColumns)),
                TRANSPOSE(MOD(SEQUENCE(nRows*nColumns)-1,nColumns)+1)
          ),
       1)="["),
       "[",""),
       "]",""
    ),",")

Resources