#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default Replacing wrong data

I imported a custoemr list into Excel from a DB. Everything imported ok
except for the telephone number. The last digit was dropped. I have a second
workbook with the correct phone numbers. I would like to do a match of the
phone numbers and either add the lost digit back or replace the entire phone
number. Ever thiing I have tried returns a #Value eror. The phone format is
(###) ###-####.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default Replacing wrong data

Sample/example:

with your short tele's starting in A2;
then enter into B2
=TEXT(INDEX(B!$A$3:$A$8,MATCH(A!A2,LEFT(B!$A$3:$A$ 8,9),0),1),"(###)-###-####") <<This is a Control Array Formula - DOnot press enter, Rather
Press Control+Shift+Enter Simultaneously

Afterwards B2 will look like:
{=TEXT(INDEX(B!$A$3:$A$8,MATCH(A!A2,LEFT(B!$A$3:$A $8,9),0),1),"(###)-###-####")} You cannot enter the { }'s manually -

Copy this formula down
The B!$A$3:$A$8 refers to your New Tele's set out in range A3 to A8 on
Sheet B
HTH

Jim May


"Wayne" wrote:

I imported a custoemr list into Excel from a DB. Everything imported ok
except for the telephone number. The last digit was dropped. I have a second
workbook with the correct phone numbers. I would like to do a match of the
phone numbers and either add the lost digit back or replace the entire phone
number. Ever thiing I have tried returns a #Value eror. The phone format is
(###) ###-####.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
Inserting a new line in spreadsheet Rental Man Excel Discussion (Misc queries) 2 January 9th 06 04:55 PM
Importing Data Jillian Excel Worksheet Functions 9 December 23rd 05 12:45 PM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM


All times are GMT +1. The time now is 06:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"