TeachMeToExcel
New Member
- Joined
- Feb 4, 2016
- Messages
- 16
Hello All. I greatly Appreciate your help. I receive daily emails with large amounts of data I need to format through a macro. I copy the data into notepad and then excel, and the data appears as such, where the | represents a new column:
35M |1/1/2029| 3.22 |5| Eaton| Vance| -| TABS|
40M |1/1/2030| 3.3| 5| Eaton| Vance| -| TABS|
40M |1/1/2031| 3.36| 5| Eaton| Vance| -| TABS|
18,100M |1/1/2035| 3.82| 4| NUVEEN| ADVISORY| CORP |
1,000M |1/1/2036| 98| 3.75| Asset| Preservation|
Advisors| Inc.|
150M |1/1/2036| 98| 3.75| Bess| Investments|
250M |1/1/2036| 98| 3.75| Calcutta| Investment|
Management|
3,000M |1/1/2036| 98| 3.75| CL| King| &| Associates|
1,000M |1/1/2036| 98| 3.75| Core| Performance|
1,000M 1/1/2036| 98| 3.75| Dinosaur| Securities|
500M 1/1/2036| 98| 3.75| Dockside| Asset|
Management|
200M |1/1/2036| 98| 3.75| E| Trade| Securities |
500M |1/1/2036| 98| 3.75| George| K.| Baum| &|
Company|
2,200M |1/1/2036| 98| 3.75| Goldman| Sachs| PWM |
4,000M |1/1/2036| 98| 3.75| Hopwood| Lane| Trading|
625M |1/1/2036| 98| 3.75| INWOOD| CAPITAL|
MANAGEMENT,| LLC|
250M | 1/1/2036| 98| 3.75| KF| Advisors|
I need to format the data above so that: 1. The first column is just the number without the M. 2. The last column (5th) is the entire name of the company. You'll notice some names spill over into the next line, so I need the recombine those to names that precede them. The format should look as follows:
35 |1/1/2029| 3.22| 5 |Eaton Vance - TABS|
40 |1/1/2030| 3.3| 5 |Eaton Vance - TABS|
40 |1/1/2031| 3.36| 5 |Eaton Vance - TABS|
18,100 |1/1/2035| 3.82 |4 |NUVEEN ADVISORY CORP |
1,000 |1/1/2036| |98 |3.75| Asset Preservation Advisors Inc.|
150 |1/1/2036| |98 |3.75 |Bess Investments|
250 |1/1/2036| |98 |3.75 |Calcutta Investment Management |
3,000 |1/1/2036| |98 |3.75 |CL King & Associates|
1,000 |1/1/2036| |98 |3.75 |Core Performance |
1,000 |1/1/2036| |98 |3.75 |Dinosaur Securities|
500 |1/1/2036| |98 |3.75 |Dockside Asset Management |
200 | 1/1/2036| |98 |3.75| E Trade Securities|
500 |1/1/2036| |98 |3.75 |George K. Baum & Company|
2,200 |1/1/2036| |98 |3.75 |Goldman Sachs PWM |
4,000 |1/1/2036| |98 |3.75 |Hopwood Lane Trading |
625 |1/1/2036| |98 |3.75 |INWOOD CAPITAL MANAGEMENT, LLC |
250 |1/1/2036| |98 |3.75| KF Advisors|
Thanks Guys!!! So much time will be saved.
35M |1/1/2029| 3.22 |5| Eaton| Vance| -| TABS|
40M |1/1/2030| 3.3| 5| Eaton| Vance| -| TABS|
40M |1/1/2031| 3.36| 5| Eaton| Vance| -| TABS|
18,100M |1/1/2035| 3.82| 4| NUVEEN| ADVISORY| CORP |
1,000M |1/1/2036| 98| 3.75| Asset| Preservation|
Advisors| Inc.|
150M |1/1/2036| 98| 3.75| Bess| Investments|
250M |1/1/2036| 98| 3.75| Calcutta| Investment|
Management|
3,000M |1/1/2036| 98| 3.75| CL| King| &| Associates|
1,000M |1/1/2036| 98| 3.75| Core| Performance|
1,000M 1/1/2036| 98| 3.75| Dinosaur| Securities|
500M 1/1/2036| 98| 3.75| Dockside| Asset|
Management|
200M |1/1/2036| 98| 3.75| E| Trade| Securities |
500M |1/1/2036| 98| 3.75| George| K.| Baum| &|
Company|
2,200M |1/1/2036| 98| 3.75| Goldman| Sachs| PWM |
4,000M |1/1/2036| 98| 3.75| Hopwood| Lane| Trading|
625M |1/1/2036| 98| 3.75| INWOOD| CAPITAL|
MANAGEMENT,| LLC|
250M | 1/1/2036| 98| 3.75| KF| Advisors|
I need to format the data above so that: 1. The first column is just the number without the M. 2. The last column (5th) is the entire name of the company. You'll notice some names spill over into the next line, so I need the recombine those to names that precede them. The format should look as follows:
35 |1/1/2029| 3.22| 5 |Eaton Vance - TABS|
40 |1/1/2030| 3.3| 5 |Eaton Vance - TABS|
40 |1/1/2031| 3.36| 5 |Eaton Vance - TABS|
18,100 |1/1/2035| 3.82 |4 |NUVEEN ADVISORY CORP |
1,000 |1/1/2036| |98 |3.75| Asset Preservation Advisors Inc.|
150 |1/1/2036| |98 |3.75 |Bess Investments|
250 |1/1/2036| |98 |3.75 |Calcutta Investment Management |
3,000 |1/1/2036| |98 |3.75 |CL King & Associates|
1,000 |1/1/2036| |98 |3.75 |Core Performance |
1,000 |1/1/2036| |98 |3.75 |Dinosaur Securities|
500 |1/1/2036| |98 |3.75 |Dockside Asset Management |
200 | 1/1/2036| |98 |3.75| E Trade Securities|
500 |1/1/2036| |98 |3.75 |George K. Baum & Company|
2,200 |1/1/2036| |98 |3.75 |Goldman Sachs PWM |
4,000 |1/1/2036| |98 |3.75 |Hopwood Lane Trading |
625 |1/1/2036| |98 |3.75 |INWOOD CAPITAL MANAGEMENT, LLC |
250 |1/1/2036| |98 |3.75| KF Advisors|
Thanks Guys!!! So much time will be saved.