I have a credit card statement and I am trying to extract text after the last specific character in this case "-" and before the text cash or credit card at the end. So in between - and cash or credit card at the end. The number of character "-" could vary in a text string.
Book1 | ||||
---|---|---|---|---|
A | B | |||
1 | What I want | |||
2 | ABC Airines-10-07-22-John Smith Credit Card | John Smith | ||
3 | Taxi Town-10-05-22-Mary Ann Stewart Cash | Mary Ann Stewart | ||
4 | TH-Stores-10-07-22-Jane Ann Smith Cash | Jane Ann Smith | ||
5 | Beyond Dreams-11-08-22-Paul Smith Credit Card | Paul Smith | ||
Sheet1 |