Forum Discussion
JG_Berson
Oct 26, 2022Copper Contributor
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
- mtarlerSilver 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
- Patrick2788Silver ContributorThere 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.