+ Reply to Thread
Results 1 to 3 of 3

Finding max length of cell contents across a table

  1. #1
    Registered User
    Join Date
    01-27-2010
    Location
    Ellicott, Colorado, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Finding max length of cell contents across a table

    I have a problem importing excel data to Access, and I can't find find why. The error I get when I try to import is "Subscript out of range." I suspect that one (or more) of the cells in my table is greater than 255 and trying to fit into a text (as opposed to memo) field, which is limited to 255 characters. This table is several thousand rows long, and about 45 columns wide.

    What I'm trying to do is find a formula combination that would read the length of all cells in a column and return the length of the longest cell.

    Thank you in advance for the help.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Finding max length of cell contents across a table

    =max(len(a1:a1000)), committed with Ctrl+Shift+Enter.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-27-2010
    Location
    Ellicott, Colorado, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finding max length of cell contents across a table

    This indeed met the need. I had tried with combinations of Max and Length, but apparently did not get the correct syntax.

    Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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