I am on the latest version of Excel 365.
I decided to set up a new thread because this is a different question even though there is some similarities to the thread below that I posted.
I am comparing my transaction ID in my accounting system to the bank. I am trying to pull the tracking ID so I can compare them and use the filter formula.
In the accounting system there could be letters at the end, but I want to remove them in a different column. I am using the substitute formula, but I am getting the incorrect result.
On the bank statement, there is always a space at the end of the tracking number and a space before. I wrapped the text in this example.
TRACK9815789 CUSTOMER: Accounts Payable
I decided to set up a new thread because this is a different question even though there is some similarities to the thread below that I posted.
Extract Text using one formula
I have the latest version of Excel 365 with all the new functions. :) so I am wondering if extracting text will be easier. So if cell in column A says "Bank" then the result returned will be the text in column B. There is two scenarios with the cell named GL in column A where the text string...
www.mrexcel.com
I am comparing my transaction ID in my accounting system to the bank. I am trying to pull the tracking ID so I can compare them and use the filter formula.
In the accounting system there could be letters at the end, but I want to remove them in a different column. I am using the substitute formula, but I am getting the incorrect result.
On the bank statement, there is always a space at the end of the tracking number and a space before. I wrapped the text in this example.
TRACK9815789 CUSTOMER: Accounts Payable
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Accounting System | What I am getting | What I want | ||
2 | TRK9815789 | TRACK81578 | TRACK9815789 | ||
3 | TRK9815789A | TRCK9815789 | TRACK9815789 | ||
4 | TRK9815789B | TRACK9815789 | TRACK9815789 | ||
5 | TRK9815789C | TRAK9815789 | TRACK9815789 | ||
6 | TRK9815789AA | TRCK9815789 | TRACK9815789 | ||
7 | TRK9815789AAA | TRACK9815789AAA | TRACK9815789 | ||
8 | |||||
9 | Bank | What I want | |||
10 | Account:1000, Bank:Bank of England, TRACK9815789 CUSTOMER: Accounts Payable | TRACK9815789 | |||
11 | Account:1000, Bank:Bank of Scotland, Type:Checking TRACK9820789 Party:Henry Lee | TRACK9820789 | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B6 | B2 | =SUBSTITUTE(SUBSTITUTE(A2,"TRK","TRACK"),RIGHT(A2,1),"") |
B7 | B7 | =SUBSTITUTE(A7,"TRK","TRACK") |