Write me an Excel 2016 formula that strips the parenthesis off data that starts in…
- User
Write me an Excel 2016 formula that strips the parenthesis off data that starts in column A2. For example, "AIR_CLR_TEMP(4:1:0)" should become "AIR_CLR_TEMP." I want to store the result in column M.
Assistant
Here's the Excel formula you can use in cell M2:
excel=LEFT(A2,FIND("(",A2)-1)This formula works by:
- Using
FIND("(",A2)to locate the position of the opening parenthesis - Subtracting 1 from that position to get the character just before the parenthesis
- Using
LEFT(A2,...)to extract all characters from the beginning up to that position
So for your example "AIR_CLR_TEMP(4:1:0)", it will return "AIR_CLR_TEMP".
Copy this formula down column M for all your data rows. If some cells in column A might not contain parentheses, you could use this error-handling version instead:
excel- Using
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.