Jun 02 2023 08:48 PM
Hi Team,
I need to clean some Excel data like
EmpDetails
{"Name":"DISHA","Salary":"15600.00","Designation":"Admin","MobileNo":"9699265225"}
I need to extract only the Designation to the next column.
Please help.
Jun 06 2023 11:48 PM
SolutionTo extract the "Designation" from the given data and place it in the next column, you can use the following steps:
=MID(A1, FIND("Designation", A1) + 14, FIND(",", A1, FIND("Designation", A1)) - FIND("Designation", A1) - 14)
This formula uses the MID, FIND, and COMMA functions to extract the "Designation" value.
The result will be the extracted "Designation" value in column B, separated from the original data. Make sure to adjust the formula if your data is located in a different cell or if there are variations in the structure of the data.
Jun 07 2023 09:24 AM - edited Jun 07 2023 09:26 AM
Alternatively with Excel365:
=TEXTBEFORE(TEXTAFTER(B1,"Designation"":"""),"""")
or a more 'general' solution to extract various components:
=LET(in,B1,
parsed,TEXTSPLIT(SUBSTITUTE(MID(in,2,LEN(in)-2),"""",""),":",",",FALSE),
XLOOKUP("Designation",INDEX(parsed,,1),INDEX(parsed,,2)))
where 'parsed' becomes a table of the paired values in that JSON and then you can find/lookup/filter what you need (note this assumes no special characters ",: in the values
Jun 07 2023 02:16 PM
Jun 17 2023 02:00 PM
Another 365 variant:
=LET(
matrix, TEXTSPLIT(SUBSTITUTE(A1, """", ""), ":", ","),
VLOOKUP("Designation", matrix, 2, 0)
)
Jun 06 2023 11:48 PM
SolutionTo extract the "Designation" from the given data and place it in the next column, you can use the following steps:
=MID(A1, FIND("Designation", A1) + 14, FIND(",", A1, FIND("Designation", A1)) - FIND("Designation", A1) - 14)
This formula uses the MID, FIND, and COMMA functions to extract the "Designation" value.
The result will be the extracted "Designation" value in column B, separated from the original data. Make sure to adjust the formula if your data is located in a different cell or if there are variations in the structure of the data.