Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Scott
 
Posts: n/a
Default 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 SNs
contain numbers and one letter i.e; 99923J143567. When linking the data
together Excel identifies the SNd 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 SNs 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!!!
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

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 SNs
contain numbers and one letter i.e; 99923J143567. When linking the data
together Excel identifies the SNd 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 SNs 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

  #3   Report Post  
Scott
 
Posts: n/a
Default

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 SNs
contain numbers and one letter i.e; 99923J143567. When linking the data
together Excel identifies the SNd 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 SNs 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


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
Change number in Text Box in Excel Jerry Dyben Excel Discussion (Misc queries) 2 September 23rd 05 02:40 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Using Excel converts number to english text Lionel Lim (Malaysia) Excel Worksheet Functions 1 April 22nd 05 10:16 PM
cusip (number and text) in same cell- How do use in excel? John K Excel Worksheet Functions 4 March 19th 05 07:38 PM
How do I convert a number formated as a date to text in Excel? BrotherNov Excel Discussion (Misc queries) 5 March 2nd 05 03:51 PM


All times are GMT +1. The time now is 07:22 AM.

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

About Us

"It's about Microsoft Excel"