Hey everyone! I’m stuck on a spreadsheet problem. I need to pull out all the text between parentheses from a cell and list them with commas. Here’s what I mean:
I want cell B1 to show: /stuff/pic1.png, /stuff/pic2.png
I figured out how to get one value: =MID(A1, SEARCH("(", A1) + 1, SEARCH(")", A1) - SEARCH("(", A1) - 1)
But this only grabs the first set of parentheses. I need it to work for any number of parentheses in the cell. Can anyone help me out with a formula for this? Thanks!
I’ve encountered a similar challenge in my work. While the FILTERXML approach is clever, it might not be available in all Excel versions. An alternative solution using more common functions could be:
This formula iterates through the cell content, extracting text between each set of parentheses. It’s complex but should work across different Excel versions. Test it out and see if it meets your needs.
I’ve wrestled with similar extraction challenges before. While the FILTERXML approach is nifty, it’s not always reliable across different Excel versions. Here’s a more universal solution I’ve found effective: