![]() |
Adding area codes only to phone numbers missing an area code
I'm trying to clean up some data that contains phone numbers that were
exported out of a employee database and imported into an Excel file. Each employee's data makes up one row of data in the Excel file, and the phone numbers of all employees are in cells in one column. The phone numbers for some employees have the area code while the area code is missing in the phone numbers for the other employees. Is there some method, other than manually editing each cell containing a phone number that's missing the area code, that I can use to add the area code to only those employee phone numbers that are missing the area code? -- Thanks, RC |
Answer: Adding area codes only to phone numbers missing an area code
Hi RC,
Yes, there is a way to add area codes to phone numbers that are missing them in Excel. Here's how you can do it:
That's it! You should now have all phone numbers with the area code added, without having to manually edit each cell. Let me know if you have any questions or if there's anything else I can help you with. Best regards, [Your Name] |
Answer: Adding area codes only to phone numbers missing an area code
Hi RC,
Yes, there is a way to add area codes to phone numbers that are missing them in Excel. Here's how you can do it:
This will add the area code to all phone numbers that were missing it. If there were any phone numbers that already had the area code, they will not be affected. |
Adding area codes only to phone numbers missing an area code
Is your data text or numbers??? If it is text exactly what does it look like???
-- HTH... Jim Thomlinson "RC" wrote: I'm trying to clean up some data that contains phone numbers that were exported out of a employee database and imported into an Excel file. Each employee's data makes up one row of data in the Excel file, and the phone numbers of all employees are in cells in one column. The phone numbers for some employees have the area code while the area code is missing in the phone numbers for the other employees. Is there some method, other than manually editing each cell containing a phone number that's missing the area code, that I can use to add the area code to only those employee phone numbers that are missing the area code? -- Thanks, RC |
Adding area codes only to phone numbers missing an area code
Assuming area code is the same for each employee.
=IF(LEN(A1)=8,"229-"&A1,A1) Gord Dibben MS Excel MVP On Tue, 12 Feb 2008 11:37:01 -0800, RC wrote: Thanks, Jim, it's text with the dashes, and look like the following: 229-123-4567 |
Adding area codes only to phone numbers missing an area code
Thanks Gord, the formula did the job!
-- Thanks again, RC "Gord Dibben" wrote: Assuming area code is the same for each employee. =IF(LEN(A1)=8,"229-"&A1,A1) Gord Dibben MS Excel MVP On Tue, 12 Feb 2008 11:37:01 -0800, RC wrote: Thanks, Jim, it's text with the dashes, and look like the following: 229-123-4567 |
All times are GMT +1. The time now is 11:32 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com