Two Terrible Scenarios (created by MRI Accounting Software output to Excel) occur I'm trying to fix:
Scenario 1: Cell Contains Words and Letters and needs to "cut" letters and paste into column next to it, shifting as needed and leaving words.
Scenario 2: Cell contains two numbers (delimiter is a space " ") and needs to be separated via cut and paste into cell to the right, shifting as needed and leaving left number where it is.
Steps I've thought through:
I can do this for a formula to fix an entire column, but I'd like to be able to search via a macro and perform the steps to fix.
Thanks for any help my friends
Scenario 1: Cell Contains Words and Letters and needs to "cut" letters and paste into column next to it, shifting as needed and leaving words.
Code:
Before - A1: Net Rental Income 370,378
After - A1: Net Rental Income A2: 370,378 (with other rows shifted right)
Scenario 2: Cell contains two numbers (delimiter is a space " ") and needs to be separated via cut and paste into cell to the right, shifting as needed and leaving left number where it is.
Code:
Before - A1: 18,825 17,525
After - A1: 18,825 A2: 1725 (with other columns shifted right)
- Do this across the entire worksheet.
- Search for cells containing an incorrectly shifted column of "Letters Numbers" or "Numbers Numbers"
- Select 2nd portion using a split at the space.
- Perform a cut, but leave behind the first portion of the cell (Letters or Numbers, depending on situation)
- Paste into cell to the right of the one I'm on, shifting column right
I can do this for a formula to fix an entire column, but I'd like to be able to search via a macro and perform the steps to fix.
Thanks for any help my friends