Forum Discussion

martineDo's avatar
martineDo
Copper Contributor
Sep 24, 2024
Solved

make a list of objects having a text as value

I would like to be able to select all objects à garder and on one other column all the lourder I always get a #valeur or #nom 

is it possible that excel doesn't like text ?

I am using office 2010

thank you for your help

 3/43932  
 1/23039 v
 1/23007 v
 1/2sans a garder
 1/28938 à garder
 1/43643  
 1/43805  
 1/43017  
 1/83804 à garder
 1/83028 à garder
  1/168927 à garder
  1/103927  
  1/108935  
    
GrösseInv VP
  3/4sans nr alto  
  3/4sans Bachelet?  
  1/23930  
  3/43076  
  3/43908  
  3/43919  
  1/43914  
  1/43906  
  3/43910  
  1/43913  
  1/43941 lourder
  1/48938 à garder
  1/43942  
  1/103945  
  1/43921  
  1/23090  
  1/23003 lourder
  3/43934 à garder
  3/43002 lourder
  3/43902 lourder
  1/43912 lourder
  1/43802 à garder
  3/43803 à garder
  1/23900  
  3/43806 à garder
  3/43909 lourder
  3/4683 lourder
  3/43926 lourder
  1/2687 lourder
  3/43002  
  3/43903  
  1/23026 lourder
  3/43933 lourder
  3/43920 lourder
  • martineDo 

    Similar to PeterBartholomew1 solution, but without helper column and Ctrl+Shift+Enter is not required.

    In G3 formula is

    =IFERROR( INDEX(B:B, AGGREGATE(15,6, ROW($E$3:$E$51)/($E$3:$E$51=$J$2), ROW()-ROW($J$2)) ), "")

    and drag it to the right and after that G3:J3 down till empty cells appear.

    Not sure what do you mean under objects and what are #valeur or #nom.

     

    Above formula is for English version, if you open attached file formula in it will be in your locale if it's different.

5 Replies

  • martineDo 

    Sadly, you are using the wrong version of Excel, 365 would make your task much easier.

    = FILTER(objects, state="à garder")

    To build equivalent functionality in legacy Excel, you could use a number sequence 1-49 in a helper range to get the numbers that correspond to the text and then SMALL to pack the numbers into ascending order without gaps.  INDEX would then return a filtered list.

    = IFERROR(INDEX(objects, SMALL(IF(state="à garder", seq), seq)), "")

    You very  likely will have the commit the formula as an array using CSE (Ctrl/Shift/Enter).

     

    • SergeiBaklan's avatar
      SergeiBaklan
      Diamond Contributor

      martineDo 

      Similar to PeterBartholomew1 solution, but without helper column and Ctrl+Shift+Enter is not required.

      In G3 formula is

      =IFERROR( INDEX(B:B, AGGREGATE(15,6, ROW($E$3:$E$51)/($E$3:$E$51=$J$2), ROW()-ROW($J$2)) ), "")

      and drag it to the right and after that G3:J3 down till empty cells appear.

      Not sure what do you mean under objects and what are #valeur or #nom.

       

      Above formula is for English version, if you open attached file formula in it will be in your locale if it's different.

      • martineDo's avatar
        martineDo
        Copper Contributor

        thank you for answering

        I am afraid it doesn't work on with my version, French 2010

        Never mind

        thank you

        I will update sometimes

        SergeiBaklan