Forum Discussion

JG_Berson's avatar
JG_Berson
Copper Contributor
Oct 26, 2022

Convert list of addresses

This is a 2 steps request.

 

First, I want to select and input a list of addresses (of values, not text) into a cell like this  a3,b5,d55,k20 and have it display exactly like that. Not as a value or a formula.

 

Next in another cell, I need to calculate the MAX value in that list.

 

Do any of you see a simple way to do that?

 

jgb

  • mtarler's avatar
    mtarler
    Silver Contributor

    JG_Berson This is pretty simple but does require Excel 365 (and TBH I don't recommend this and would recommend re-evaluating what you are doing and see if there is a 'better' way):

     

    =LET(in,TEXTSPLIT(A1,","),REDUCE(0,in,LAMBDA(p,I,MAX(p,INDIRECT(TRIM(I))))))

    A1 is the text based list of cells

    this assumes min of 0 but if all the numbers might be negative then change the '0' after REDUCE to something like -9.9E99

     

    • JG_Berson's avatar
      JG_Berson
      Copper Contributor

      mtarlerThanks and YIKES!!!

      I've done some pretty complex formulas in the past, but this is a new one for me.

      No doubt it would work, but I can't test or use it as I only have EXCEL 2013.

       

      I will heed your advice to find a different way to display that list.

       

      thanks again

      jgb

      • Patrick2788's avatar
        Patrick2788
        Silver Contributor
        There may be other options available for you. Why list "a3,b5,d55,k20" in a cell and determine the max from those addresses? If you're able to share a sample workbook and your end goal, we may be able to give you some options.

Resources