+ Reply to Thread
Results 1 to 3 of 3

Linking blank data with multiple datatypes

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    Richland, WA
    MS-Off Ver
    2007
    Posts
    12

    Linking blank data with multiple datatypes

    I have a worksheet with mixed datatypes, and I need to link them to another tab. Since excel automatically fills in blank values with 0s, I have been using the following formula to link each cell:
    =if(WorksheetCell="","",WorksheetCell)

    This has worked out great so far, since everything is stored as a "general" datatype. But now I'm running into type conversion failures when I try to transfer the worksheets to MS Access, and I realize it's because the blank in my columns containing numbers are being stored as text (""). Is there any other way I could avoid the 0s when linking data without converting all blank values to text?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Linking blank data with multiple datatypes

    here is approach that may work for you

    Use Conditional Formatting to change the font in cells with 0, to be the same as the background, so it appears thatthere is nothing in the cell
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-29-2015
    Location
    Richland, WA
    MS-Off Ver
    2007
    Posts
    12

    Re: Linking blank data with multiple datatypes

    I don't think that will solve my problem, since the 0s will still appear in Access.
    Is there anyway to store a blank cell in such a way that it will not conflict with the dominant datatype in its field?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA interface with MapPoint (datatypes)
    By swoop99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2013, 12:57 PM
  2. Ignoring blank cells when linking data between excel worksheets
    By skgates in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2012, 06:33 PM
  3. Require Datatypes in Userform Textboxes
    By wilro85 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2009, 01:55 PM
  4. Linking data between sheets omitting the blank cells.
    By anindyanuri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2008, 11:39 AM
  5. Boxes on form. Datatypes error I think
    By marcbell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-21-2005, 12:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1