I need to extract the text to the left of a hyphen in a column, but some entries have two hyphens (actually it's a hyphen plus a space, but I'm sure I can figure that part out.) so it has to be the text to the left of the rightmost hyphen in the cell. I poked around the help forum then asked the AI formula generator. It game me the following formula, but it produces an #INVALID DATA error.
=LEFT([VFM Category Main]@row, FIND("-", [VFM Category Main]@row, LEN([VFM Category Main]@row) - FIND("-", SUBSTITUTE([VFM Category Main]@row, "-", "", LEN([VFM Category Main]@row) - LEN(SUBSTITUTE([VFM Category Main]@row, "-", ""))))) - 1)