Hi @navshark ,
Based on your description, I created a sample, please refer to this support article:
=IF(IFERROR(FIND(",",A1),"")="",IF(AND(1<=NUMBERVALUE((RIGHT(A1,LEN(A1)-1))),NUMBERVALUE((RIGHT(A1,LEN(A1)-1)))<=5),1,IF(AND(6<=NUMBERVALUE((RIGHT(A1,LEN(A1)-1))),NUMBERVALUE((RIGHT(A1,LEN(A1)-1)))<=8),2,IF(AND(9<=NUMBERVALUE((RIGHT(A1,LEN(A1)-1))),NUMBERVALUE((RIGHT(A1,LEN(A1)-1)))<=11),3,IF(AND(12<=NUMBERVALUE((RIGHT(A1,LEN(A1)-1))),NUMBERVALUE((RIGHT(A1,LEN(A1)-1)))<=14),4,"")))),IF(AND(1<=NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2)),NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2))<=5),1,IF(AND(6<=NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2)),NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2))<=8),2,IF(AND(9<=NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2)),NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2))<=11),3,IF(AND(12<=NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2)),NUMBERVALUE(MID(A1,2,IFERROR(FIND(",",A1),"")-2))<=14),4,""))))+IF(AND(1<=NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1))),NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1)))<=5),1,IF(AND(6<=NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1))),NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1)))<=8),2,IF(AND(9<=NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1))),NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1)))<=11),3,IF(AND(12<=NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1))),NUMBERVALUE(RIGHT(A1,(LEN(A1)-IFERROR(FIND(",",A1),"")-1)))<=14),4,"")))))
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.