Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2004

Tip: Looking for answers? Try searching our database.

I'm stuck

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark - 01 Apr 2004 05:30 GMT
I have a problem and don't know what to do anymore, I'm stuck.
Here is the it is:
I have a workbook with two worksheets where sheet1 has data
in column A and B. A is employee's pass number (6 digits) B is last
name. On sheet2 I have vlookup formula that tells excel to enter
employee's last name (cell B1) when I enter his pass number in cell
A1. I made this workbook at home so I made up some numbers and names,
put them on sheet1 and everything worked.
Now I took it to work and here I had to take data from Wang system
using file transfer program which gives me .txt file on a PC.
I opened this .txt file with excel  (on separate workbook because I
had to do some cleanup first) then copied it into my sheet1and now
with most of those pass numbers when I enter them in A1 on sheet2 give
#NA error instead of last name. Some of them work though.
I have column A formatted as text because some of those numbers start
with zeros. I was playing with formatting (text, general) on both
sheets and nothing works.
There is only one thing that hit me now and I didn't try at work.
What happens if I retype those numbers on sheet1 and reenter them on
sheet2. If that works (I'll try tomorrow) then I don't know what to
think of it.
Can somebody help me whit this, please

Mark
Dave Hawley - 01 Apr 2004 06:31 GMT
Hi Mark

RE: column A formatted as text because some of those numbers start
with zeros.

You would be better to use a Custom Format like: 0000

Format the column like: 0000 Then in another Column put =Trim(A1)+0

Copy down. Now Copy these results and Edit>paste special-Values over the
top.
Mark - 01 Apr 2004 15:07 GMT
>Hi Mark
>
>RE: column A formatted as text because some of those numbers start
>with zeros.
>
>You would be better to use a Custom Format like: 0000

this I understand

>Format the column like: 0000 Then in another Column put =Trim(A1)+0

do you mean column B on sheet1 ?
but I have data in column B already (last names) so where do I put
Trim function? Do you mean any other column that I'm not using?

>Copy down. Now Copy these results and Edit>paste special-Values over the
>top.
>
>***** Posted via: http://www.ozgrid.com
>Excel Templates, Training & Add-ins.
>Free Excel Forum http://www.ozgrid.com/forum *****

thanks for your help Dave,

Mark
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.