I have another related problem to the Min and Max problem in a concatenated string solved in the thread below.
Here, there is no comma separation but problem is same i.e. of extracting max and min values out of a concatenated data string. The data is below.
Each data point in the column "Data" is itself a concatenated string of several data points, each having a character length of 3 characters. These could be a 3 digit number or there could be "000" data point which means "no data". Similarly "DDD" or "XXX" also refer to no data being available. What is needed is a max and min of data points available.
So in the first row, 061 is the first data point, 031 is the second data point and so on. In the first row only two data points are available and 061 is maximum and 031 is minimum.
In the second and third row, there are no data points; so min and max both are Zeros "0"
In the last row 054 and 023 are the two data points and the max and min are obviously 054 and 023 respectively
There are 40K + rows in my data table and any formula using Indirect(1:xxx) which fills numbers 1 to xxx in a cell will put "hang" my file. Hence to be avoided.
Please help. Thanks in advance.
Min and Max on comma separated values in a cell
I have cells that contain comma separated number values. I need to extract the MIN and MAX numbers from each cell. How can this be done? I found this formula: =MATCH(10,INDEX(FIND(","&ROW(INDIRECT("1:99999"))&",",","&AH13&","),0)) But it only gives me the MAX, not MIN. I saw some VBA...
www.mrexcel.com
Here, there is no comma separation but problem is same i.e. of extracting max and min values out of a concatenated data string. The data is below.
Data | Expected Minimum | Expected Maximum |
061031000000000000000000DDDDDDDDDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD | 031 | 061 |
XXXXXXDDDXXXXXX000000XXX | 0 | 0 |
XXXDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDXXXDDDXXXDDDXXXXXXDDDXXXXXXXXXXXX | 0 | 0 |
000000000000000000000000000000000000000000000000000054023000000000000000000000000000000000000DDDDDD000000 | 023 | 054 |
Each data point in the column "Data" is itself a concatenated string of several data points, each having a character length of 3 characters. These could be a 3 digit number or there could be "000" data point which means "no data". Similarly "DDD" or "XXX" also refer to no data being available. What is needed is a max and min of data points available.
So in the first row, 061 is the first data point, 031 is the second data point and so on. In the first row only two data points are available and 061 is maximum and 031 is minimum.
In the second and third row, there are no data points; so min and max both are Zeros "0"
In the last row 054 and 023 are the two data points and the max and min are obviously 054 and 023 respectively
There are 40K + rows in my data table and any formula using Indirect(1:xxx) which fills numbers 1 to xxx in a cell will put "hang" my file. Hence to be avoided.
Please help. Thanks in advance.