1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Can I split columns by number of characters/ digits?

Our take

If you're dealing with a list of zip codes that have lost their hyphen, there are effective methods in Excel to restore or manipulate the data without tedious manual edits. You can use functions like `LEFT`, `RIGHT`, and `MID` to split the zip codes into separate columns or reformat them to include the hyphen after the fifth digit. Alternatively, if the last four digits are not essential, simply extracting the first five digits can streamline your mail merge process.

I have a list of addresses for a mailing I need to complete. The zip codes column is supposed to read #####-####, but for whatever reason, the hyphen was lost and I'm left with all 9 digits straight. Is there a function I can use to either separate the columns, add the hyphen after the 5th digit, or even just get rid of the last 4 digits altogether?

I just need something I can work with for a mail merge, without manually having to change the couple hundred entries. The last 4 digits are nice, but not necessary. I tried using text to columns but since there is no delimitator, I didn't get far.

Any advice is appreciated! TIA

  • Excel Version Office 365 version 2603; Build 19822.20114
  • Excel Environment: desktop, Windows
  • Excel Language English
  • Your Knowledge Level: Formerly intermediate/advanced, but its been almost a decade since it was a daily work task, I'm extremely rusty

https://preview.redd.it/urr8yjwwv2sg1.png?width=1186&format=png&auto=webp&s=78e94874c3747545c707380206da8c93931d67b5

submitted by /u/CCCrazyC
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles

Tagged with

#Excel alternatives for data analysis#natural language processing for spreadsheets#Excel compatibility#Excel alternatives#generative AI for data analysis#financial modeling with spreadsheets#rows.com#enterprise-level spreadsheet solutions#natural language processing#zip codes#Excel#mail merge#columns#hyphen#digits#function#separate#delimitator#characters#format