- Convert the dates in column A into something usable
- Separate the account numbers into column B into three columns
- Eliminate the capital letters in column C.
Figure 1: You can use various techniques in Excel to transform text.
We’ll tackle each of these one at a time. The first thing to know is never, not ever, do you start retyping this data into separate columns. There’s any number of ways to accomplish the above tasks. We could use the DATEVALUE function to tackle column A, and we could use some combination of LEFT/RIGHT/MID to break up column C, but those two columns don’t require formulas. Instead, select column A and then fire up the Text to Columns wizard on the Data tab or menu in any version of Excel:
- In this context it doesn’t matter what you choose on the first step of the wizard, so just click Next.
- Since we’re converting dates, there’s nothing to see on the second tab of the wizard either, so click Next again.
- The third screen of the wizard is the place to be at the moment. Choose Date, and then select the format that your dates are currently in. Don’t make a rookie mistake and choose MDY here, that’s what you want to get to, but at the moment it’s in YMD. Choose that, click OK, and head out for a latte.
Figure 2: Use the Text to Columns wizard to convert the dates in column A into a usable format.
- Take a moment to choose Delimited on the first tab of the wizard. Yeah, you can argue with me that this data is fixed-width, but there’s a method to my madness here, which I’ll reveal after you click Next.
- Tag that checkbox labeled Other, and then type a dash in the space. Keep in mind that even though it looks like you could type a couple of letters here, you can only do one, so click Next and move on.
- If you get in a rush and press the Enter key here you’ll inadvertently overwrite the data in column C, as shown by the error prompt in Figure 3. So, slow down there and change the Destination to cell D1, and then you can click Finish.
- Voila, as shown in Figure 4 you’ve done gone and busted up that account number. Time for a cruller to accompany the latte.
Figure 3: If you press the Enter key or click Finish before changing the Destination location, you will receive this error prompt.
Figure 4: Use the Text to Columns wizard to separate the account numbers into three columns.
Figure 5: Use the PROPER function to get rid of excessive capital letters. Use the Find and Replace feature to fix the ‘S that occur from the PROPER function.
Over the last couple months, GC has been profiling various accounting-related credentials.