Access Excel Linked Text and Number Issues

Question for Access and Excel XP (2002).  I have linked an Excel Spreadsheet 
(Database) to Access for updating and other special Access functions.  The 
Excel data contains a unique identifier (Key field) call Serial Numbers (SN) 
that contains 13 characters.  Some SN contain numbers only, while other SN’s 
contain numbers and one letter i.e; 99923J143567.  When linking the data 
together Excel identifies the SN’d item as GENERAL, while Access pulls the 
information in as TEXT.  Access then adds a hash mark (‘) to the beginning of 
each SN containing digits only (no letters) i.e; ‘99923J143467, thus making 
the SN TEXT.  This in turn causes problems when using the Vlookup function in 
Excel, resulting in a no return value when entering a SN, unless the hash 
mark (‘) has been included in the SN.  If I remove the Hash Mark (‘) from the 
Excel SN’s they will not show up in the Access linked database.  I would 
prefer not to separate this field if possible.  Other then that I have tried 
several methods and searched high in low in the MS Database for help with no 
LUCK!  Can anybody HELP me? Thank You!!!
0
scott7693 (519)
10/1/2005 8:01:01 PM
excel.misc 78881 articles. 5 followers. Follow

2 Replies
591 Views

Similar Articles

[PageSpeed] 5

You could try converting the number to text in the VLookup formula. For 
example, with a number in J2:

   =VLOOKUP(TEXT(J2,"0"),$A$1:$H$500,2,FALSE)

Scott wrote:
> Question for Access and Excel XP (2002).  I have linked an Excel Spreadsheet 
> (Database) to Access for updating and other special Access functions.  The 
> Excel data contains a unique identifier (Key field) call Serial Numbers (SN) 
> that contains 13 characters.  Some SN contain numbers only, while other SN’s 
> contain numbers and one letter i.e; 99923J143567.  When linking the data 
> together Excel identifies the SN’d item as GENERAL, while Access pulls the 
> information in as TEXT.  Access then adds a hash mark (‘) to the beginning of 
> each SN containing digits only (no letters) i.e; ‘99923J143467, thus making 
> the SN TEXT.  This in turn causes problems when using the Vlookup function in 
> Excel, resulting in a no return value when entering a SN, unless the hash 
> mark (‘) has been included in the SN.  If I remove the Hash Mark (‘) from the 
> Excel SN’s they will not show up in the Access linked database.  I would 
> prefer not to separate this field if possible.  Other then that I have tried 
> several methods and searched high in low in the MS Database for help with no 
> LUCK!  Can anybody HELP me? Thank You!!!


-- 
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

0
dsd1 (5911)
10/4/2005 3:11:59 AM
Hi Debra,

  Thanks for the quick response.  If I'd written my request a little clearer 
you'd have be able to understand it better!  After I wrote my question, I 
even questioned what I wrote?  Sorry!  I think the fix you have posted will 
help me but my next dilemma is getting the formula to work with my needs 
i.e.; Type in a Serial Number (text or numerical value) and return a 
specified value from an Excel spreadsheet or Access Database.  Right now the 
Excel formula I've been using is as follows:

=IF(ISERROR(VLOOKUP(A1,Excel/Access!$B$1:$C$100,2,FASLE)),"",VLOOKUP(A1,Excel/Acess!$b$1:$c$100,2,FALSE))

  I also posted this question on the Access side of the discussion group and 
a man by the name of John, came up with the same solution/formula as yours.  
He is looking into it "I Think"?  I'm not sure where to add the TEXT value?  
I've tried to make the formula work to no avail.  Unfortunately, I know very 
little about programming excel formulas when it comes to multiple functions 
"OUCH"!  I don't want to waste your time If somebody else is working on a 
solution.  I truly appreciate your feedback, and would like to Thank You Very 
Much for your response...  Scott...


"Debra Dalgleish" wrote:

> You could try converting the number to text in the VLookup formula. For 
> example, with a number in J2:
> 
>    =VLOOKUP(TEXT(J2,"0"),$A$1:$H$500,2,FALSE)
> 
> Scott wrote:
> > Question for Access and Excel XP (2002).  I have linked an Excel Spreadsheet 
> > (Database) to Access for updating and other special Access functions.  The 
> > Excel data contains a unique identifier (Key field) call Serial Numbers (SN) 
> > that contains 13 characters.  Some SN contain numbers only, while other SN’s 
> > contain numbers and one letter i.e; 99923J143567.  When linking the data 
> > together Excel identifies the SN’d item as GENERAL, while Access pulls the 
> > information in as TEXT.  Access then adds a hash mark (‘) to the beginning of 
> > each SN containing digits only (no letters) i.e; ‘99923J143467, thus making 
> > the SN TEXT.  This in turn causes problems when using the Vlookup function in 
> > Excel, resulting in a no return value when entering a SN, unless the hash 
> > mark (‘) has been included in the SN.  If I remove the Hash Mark (‘) from the 
> > Excel SN’s they will not show up in the Access linked database.  I would 
> > prefer not to separate this field if possible.  Other then that I have tried 
> > several methods and searched high in low in the MS Database for help with no 
> > LUCK!  Can anybody HELP me? Thank You!!!
> 
> 
> -- 
> Debra Dalgleish
> Excel FAQ, Tips & Book List
> http://www.contextures.com/tiptech.html
> 
> 
0
scott7693 (519)
10/4/2005 8:24:11 PM
Reply:

Similar Artilces:

allowing relaying... security issues
We are using Exchange 2000 on an SBS 2000 machine. We signed up with Spam Soap - an outside company to provide incoming/outgoing SMTP mail filtering . As part of their service, you also configure them as a "smart host". This is configured in the virtual SMTP Server area - in the advanced options for delivery. Also, in order to have this work properly, the SMTP Connector we had configured in the 'Connectors' area also had to be removed. We have an in-house VB .net application that automatically sends auto-generated emails. This particular application is configured and...

Excel button problem
Hi All I have a macro that copies a worksheet in the active workbook and puts it into a new workbook - then formats it and deletes any buttons on the worksheet. On the first click on the button the macro works ok. On the second click, it fails because the all assigned macros on all buttons in the active workbook changed from "mba" to "book1!mba". Book 1 doesn't exists (wasn't opened, wasn't saved, doesn't have the macros). I've never experienced this problem before?? Can anyone help to solve this problem? FYI The macro to do this is c...

Excel 97 #9
Please can anyone help??? I have two columns in Excel 97. The first contains a list of statu values eg. pending, or granted or withdrawn. The second contains date eg.01/12/1997, 05/06/2003. I woudl like to know how to get all th granted apps before 31/12/2003. Can anyone help please -- Message posted from http://www.ExcelForum.com theres many ways, but an easiest way would be to do a sort. Highlight the 2 columns, click on data, then sort, then sort by status, then by date. this should group them all together. hope this helps...toe >-----Original Message----- >Please can anyo...

Formula without using numbers after decimal in the answer
I have a formula that derives the answer from a figure with a decimal. I don't want to use the figures after the decimal. Is there a way to just use the whole number and omit the numbers after the decimal without having to manually key in all these numbers manually? Thanks, Mustang You can use the INT function. This 'rounds down' any number to th nearest integer, e.g. if A1=2.567, a formula in B2 of =INT(A1) return 2 HTH Bruc -- swatsp0 ----------------------------------------------------------------------- swatsp0p's Profile: http://www.excelforum.com/member.php?...

Linking files 2 ways
I have a work book that is linked to another and vise versa. As thus: Workbook A is where the input of data is made; Workbook B has a link to the input from workbook A; Workbook A retrieves the altered data back as a link. Although this all works fine with both books open, I note that if I open workbook A by itself, that the data it retrieves from Workbook B is not updated . If However, both books are open, there's no problem. I thought linked books were updated automatically if the Update remote references has been selected?? But it appears that the second book is not updated until it ...

how to convert lookup values to the "display text"
I'm using an sql code (below) which uses a few lookup fields. Unfortunately in the datasheet view, I get the "bound values" instead of the "display values". How can I change the properties for the these lookup fields so I can see the "display values" from the datasheet view? SELECT [Funding],[Date],[Description],[Company],[Expense_Type],[Amount],[Status] FROM [Form_9_Status] UNION ALL SELECT [Funding],[Date],[Description],[Company],[Expense_Type],[Amount],[Status] FROM [TDY_Status] UNION ALL SELECT [Funding],[Date],[Description],[C...

Reporting from Project Server
I dont know if i need to ask this question here or in the Access section. I have an ODBC connection to the Project Server database so I can make reports through Access. Access' limit of 255 fields per table is causing me some trouble. for example, the MSP_VIEW_PROJ_PROJECTS_ENT table has well over 255 fields. Access only shows me the first 255 fields. how can I change that so I can see all the fields in that table? thanks, Hadi Hadi, I have not tried this yet it may be a viable option. Have your DBA create a view that pulls the key fields to this table and the specifi...

Looking for Excel Help
I'm a very novice Excel user and am looking for a little help with creating a formula for a spreadsheet I'm creating for my personal use. I would appreciate some assistance if possible. Thanks in advance. Dan --- Message posted from http://www.ExcelForum.com/ Hi Dan! Post a sample of what you want to do. Your question is just a tad open ended <g> -- Regards Norman Harker MVP (Excel) Sydney, Australia njharker@optusnet.com.au Excel and Word Function Lists (Classifications, Syntax and Arguments) available free to good homes. "DanB4105" <DanB4105.ywtpa@excelfor...

New to excel
Hi All, I'm new to Excel ( and to this forum :) ) and so I hope somebody may b able to help me. I've got 2 questions.... QUESTION 1 I've got a spreadsheet which takes data from one worksheet and uses i to calculate data in a second worksheet using the following code formula: =IF('4th November 2005'!B19="","nothing here dude",IF(B19<'4th Novembe 2005'!B19,"UP",IF(B19='4th November 2005'!B19,"Same",IF(B19>'4t November 2005'!B19,"DOWN")))) The problem is, when I create a new worksheet I have...

Find and Replace Footnote Numbering
I often have documents where I need to put formatting before or after the footnote number for every footnote, often for hundreds of footnotes...anyone know how I can do this in one shot? I know I can specify ^f in find and replace, but only in the find portion...it gives an error if you put it in replace. ...

How do I overlay text to a row without loosing the text in the ba.
I would like to know how to give an entire row (or column) a text overlay such as "VOID" and still be able to view the text in the underlaying row (or column). Thanks in advance. Use WordArt from the Drawing toolbar. Change the Fill to None. -- Jim Rech Excel MVP "Bruce Charles" <Bruce Charles@discussions.microsoft.com> wrote in message news:C430F6BC-1EBD-461F-A3FA-EC8592C5704C@microsoft.com... |I would like to know how to give an entire row (or column) a text overlay | such as "VOID" and still be able to view the text in the underlaying row (or | c...

Excel corrupts when asking to update vlookups
We are experiencing weird behavior with some Office 2K3 Excel spreadsheets that contain lots of calculations, but no macros. On some pc’s Excel acts normally, on others you get the error. I have a couple of screen shots available. Any help is appreciated. If desired, send your file to my address below. I will only look if: 1. You send a copy of this message on an inserted sheet 2. You give me the newsgroup and the subject line 3. You send a clear explanation of what you want 4. You send before/after examples and expected results. -- Don Gu...

Uninstall of mappoint has caused errors with excel
Hi, I am running Office 2003 on the terminal server (windows 2003) and had a copy of mappoint as well. This is a mapping program. We ininstalled mappoint which has caused an error message with Excel and other office products. The error says "Cd:\documents and settings\administrator.ocrdc1\application data\microsoft\addins c:\Program files\common files\microsoft shared\geography\mpoai9.dll is not a valid add-in." I then click OK and excel opens up and everything is fine. The problem is that we are using other programs as well such as Quickbooks that export to excel and t...

cannot open hyper links in outlook
when I try to open a hyperlink in outlook, I get the following message: This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator. ----- I am the system administrator. HELP This is a problem with IE, not Outlook. You need to reset your internet settings in IE's Tools, Internet Options, Advanced tab. (Or Control Panel, Internet options, Advanced tab). See http://www.slipstick.com/problems/link_restrict.htm for more information. "Donald McNeely" <Donald McNeely@discussions.microsoft.com>...

How do I Remove a Split from my Comments in Excel 2003? #2
I have set my current workbook to split/freeze the first column and first 2 rows. Now, when I add a comment to the second row (in any column) my comments are cut off if I should scroll down. I don't ever remember the behavior before. And I don't know what I've done to enable it but it's really annoying. How do turn this off ? ...

learning Excel #3
Hi, I was considering learning Excel as an additional tool for my data analysis work. Is it better to use data sets that I have previously used with SPSS and apply the same analysis tools as in SPSS? For applying the appropriate tools, I was considering using excel's online help. The second option I have is to use some excel book for data analysis and apply the techniques to data sets provided with the book. Any suggestions????? regards Metal ...

unable to paste Excel 2003 chart into Outlook 2003
(This was posted on "excel.charting" group.) I have a user who's unable to paste an Excel 2003 chart into Outlook 2003 email message. In Outlook options, the checkbox is selected for "Use Microsoft Office Word 2003 to edit e-mail messages". When I tested this on my own computer running the same version of Office, if the box is check, I have no problem pasting; if this box is cleared, I cannot paste. But on his computer, it doesn't work regardless. Thanks and regards, TL ...

random number generator
Hey is there a way to generate random numbers like you would for a draft. In other words, i have numbers 1 through 10 and generate a random order for those? Use the RAND() function. If 1-10 are in A1:A10, enter =RAND() in cell B1 and copy it down through B10. Recalc (F9), then sort by column B. Hope this helps, Hutch "pat67" wrote: > Hey is there a way to generate random numbers like you would for a > draft. In other words, i have numbers 1 through 10 and generate a > random order for those? > . > You would have to generate 10 random numbers ...

Business Portal should allow requisition to be added to issued PO
The printing of a PO changes the status of the PO from New to Released (signifying the release of the PO to the vendor). Once a PO has been released, it will not show as a PO you can add items to from business portal. The current design of the product only allows you to add to POs with a status of New. Adding an item to a Released PO should trigger a change order. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not ...

number format with leading 0
Dose anyone know how to create a number format that would show a leading zero for the numbers 0-9. That is, so that 1 would show as 01. I can do with a text format but would like to retain the integrity of the number. Thanks Try this: Format>Cells>Number Category: Custom Type: 00 Click [OK] Does that help? *********** Regards, Ron "Darby" wrote: > Dose anyone know how to create a number format that would show a leading zero > for the numbers 0-9. That is, so that 1 would show as 01. I can do with a > text format but would like to retain the integrity...

How to set "licence" for Access 2007 database?
Hi I developed an Access 2007 db to a client. Now I want to make a year based licence for that database that the client must pay if they want to continue using the database after year. It must be so that database cannot be used after this date. How I can accomplish this? Thanks! On Mon, 12 Apr 2010 13:14:17 -0700 (PDT), Sandroid <santeri.virtanen@gmail.com> wrote: >Hi > >I developed an Access 2007 db to a client. Now I want to make a year >based licence for that database that the client must pay if they want >to continue using the database after year. It mu...

SQL 2005 Great Plains 9 issue
I will try to keep this succinct. I am running Great Plains 9 with SQL 2005 on separate servers. Recently I brought up a new SQL server(called sql02) to replace the old SQL server(called sql01). After installing SQL 2005 on the new server and restoring all the databases I renamed the new server(sql02) to the name of the old Server(sql01). Great Plains worked happily after that. On the new SQL server now called SQL01 there are two database engines in SQL Studio, one is called SQL02 and the other is called SQL01. I would rather not have SQL02 there, but I'm not sure how to delet...

microsoft.public.access.conversion
...

Excel VBA
When you select the autofilter, the drop down list is created from the unique data in that column. Is there any way to customize this list, so the changes are permanent? For instance, I might have in one(1) column the following 4 row entries: red, blue, green (all are single cell entries) red, blue red blue, green I want my autofilter drop down list to read: red instead of red, blue, green blue red, blue green red blue, green (like normal) If I chose red from the drop down list...

Problem with named range for a large spreadsheet in Excel 2007
Hello, I am trying to generate a large Excel spreadsheet apprx. 10000 rows and 40 columns. I am generating defined name section in the Workbook.xml part of the XLSM package. Here is a sample entry from that section <definedName name="_._44802_._0_._0_._0_._top_line" localSheetId="0" hidden="1">Sheet1!$B$2</definedName> Although the generation goes fine, I can not open the spreadsheet as the Excel throws an error message saying the package is corrupt. But this is not the case if the spreadsheet is small say, 200 rows by 10 columns. ...