+ Reply to Thread
Results 1 to 8 of 8

String too long when using forumla - #value

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    7

    String too long when using forumla - #value

    I've been trying to get this to work for a while now but having no luck.

    I've a spreadsheet which I'm using to create a hyperlink to an email. The idea is that users can click the 'email' button and it will take them to their email, and auto-fill the 'to', 'cc', 'subject' and a couple of lines of text in the body (stuff they need to know for individual emails, the main body of the text is being created through QuickParts in Outlook).

    Most of them are working, but some are coming up with '#value' where the string seems to be too long for excel 2013 to cope with.

    The formula is here:
    =HYPERLINK("mailto:"&C1&"?cc="&E1&"&subject="&A1&"&body="&F1, "Info Request")
    Some of the emails have 4 or 5 addresses in them, separated by ';'.

    Is there any way to expand the number of characters that excel will allow returned in that formula? Or is there another way of writing the formula that wont' return an error?

    BTW - it doesn't seem to be limited to 255 characters. I've used =len to find the characters in the string, and as long as they are under 290'ish it seems to be fine. I've a couple over 300 and they are fine too!

    Any and all help muchly appreciated!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: String too long when using forumla - #value

    #value error is not related with cell character limit.

    It will populate when you do calculation with text data.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    7

    Re: String too long when using forumla - #value

    Hi Sixthsense - thanks for your reply, but am not sure I know what you mean?
    All the cells are set to text...I can't upload a pic for some reason to show you what's happening, but if I type 'test' into column F, it works fine. If I type 'test request', it comes up with #value

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: String too long when using forumla - #value

    It's working fine for me for both text

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    05-24-2013
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    7

    Re: String too long when using forumla - #value

    Thanks so much for your help ;-)

    I've attached a sample workbook. In column 'F' , it's currently working. however, if you type 'test data', it breaks.
    Attached Files Attached Files

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: String too long when using forumla - #value

    After further testing the Link Location argument of Hyperlink() function accepts maximum of 255 charter length only.

    It's resulting #VALUE! when the location text length is >255

  7. #7
    Registered User
    Join Date
    05-24-2013
    Location
    London
    MS-Off Ver
    Office 2013
    Posts
    7

    Re: String too long when using forumla - #value

    That's what I thought - I just didn't know how to phrase it! :D
    Is there anything I can do, or do I just have to live with it? I tried concatenate and a couple of other things but everything seemed to result in the same error.
    Thanks again!

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: String too long when using forumla - #value

    You could use code in a Worksheet_Change event to add an actual hyperlink to the column instead of using the HYPERLINK function.
    Remember what the dormouse said
    Feed your head

+ 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. [SOLVED] Recording Macro Forumla Too Long
    By seannydj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2012, 09:48 PM
  2. String function to get selective text from long string
    By MWHLFC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2011, 02:51 PM
  3. string function to get selective text from long string
    By MWHLFC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2011, 05:00 PM
  4. [SOLVED] Importing Long String - String Manipulation (INVRPT) (EDI EANCOM 96a)
    By Brian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2006, 11:45 AM
  5. Importing Long String - String Manipulation (EDI EANCOM 96a)
    By Brian in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2006, 08:30 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