+ Reply to Thread
Results 1 to 12 of 12

Format is too long

  1. #1
    Registered User
    Join Date
    04-24-2012
    Location
    OUTER BANKS OF NC USA
    MS-Off Ver
    Excel 2000
    Posts
    8

    Question Format is too long

    Well issue is I am wanting to find and replace text in workbook. I enter my find " Monday" and my replace "xxx Monday". Pressing FIND NEXT finds the text. Pressing REPLACE brings back the box stating "Formula is too long".
    I have searched looking for solution, to only find references to actual formulas.
    Doing a little trial and error, I believe I discovered why I get this. It looks like the contents of the cell is too large/long. I have not determined the size that it bombs out at. So having to go to each large cell and manually change.

    If anyone has feedback on this, great!

    Thanks

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Format is too long

    Probably >255 will error

  3. #3
    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,929

    Re: Format is too long

    It's impossible to make suggestions without seeing anything at all, but If you have a formula that is approaching 255 deep (nested), Im willing to bet that is a highly inefficient formula, and can probably be significantly consolidated - either within the formula it'self or through the use of helper columns.

    Show us (in a SMALL sample file) what you have, what you are trying to do, and what your expected outcome needs to look like...see the yellow banner at the top
    Last edited by FDibbins; 12-02-2021 at 02:42 PM.
    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

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Format is too long

    Pressing REPLACE brings back the box stating "Formula is too long".
    https://support.microsoft.com/en-us/...7-269d656771c3
    Excel 2007 thru O-365:
    • Length of formula contents 8,192 characters
    • Total number of characters that a cell can contain 32,767 characters

    If you are really still on Excel 2002 as your profile says:

    https://www.excelforum.com/excel-gen...ml#post2200894
    Yes, formula can be too long - here's a quote from the Excel 2002 Help files:
    • Length of formula contents 1,024 characters
    • Max length of cell text: 32,767 (but only 1024 are displayed in the cell)

  5. #5
    Registered User
    Join Date
    04-24-2012
    Location
    OUTER BANKS OF NC USA
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Format is too long

    Yes, still using Excel 2k on Win 2K & Win 10. I would agree that the contents of cell that the Replace does not work with is >255. Have not reached the max of text in cell.

    Thanks to all who have replied. Appreciated. Happy Holidays to all!!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Format is too long

    I am not clear if you have a solution!! If so, great. If not, please read the yellow banner and post a small sample sheet showing th eproblem.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    04-24-2012
    Location
    OUTER BANKS OF NC USA
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Format is too long

    Glenn,

    I believe with my cell containing text that is >255 characters Excel errors out.
    I uploaded TEXT-Book2.xls. As an example, I am wanting to change /19 to /2019. But excel error out. I have to make change manually.

    I did try another test and could change text for cell > 255. Do not know what the difference is and why one works but the other test did not.

    Good luck. Maybe you might have an idea.

    Thanks for looking. Sorry it's taken me so long to get back to you.
    Attached Files Attached Files

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Format is too long

    You could try using =SUBSTITUTE(A1,"/19","/2019") to make a copy of the edited cell and then Paste Special | Values over the original.

    The original text length is 2059 characters and the edited cell length is 2073 (7 dates amended).
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Format is too long

    Find/Replace worked O.K. for me on the posted sample.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  10. #10
    Registered User
    Join Date
    04-24-2012
    Location
    OUTER BANKS OF NC USA
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Format is too long

    Well that is interesting that it worked for you. However, I still get the Format is too long.
    However, Thanks for the feedback.

    I guess I'll just have to be happy doing manual changes.

    Thanks again to all. Happy Holidays..

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Format is too long

    Administrative Note:

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  12. #12
    Registered User
    Join Date
    04-24-2012
    Location
    OUTER BANKS OF NC USA
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Format is too long

    My issue is not SOLVED. However, the thread can be CLOSED. I do not know how to do that. Please advise.

+ 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] Errors when switching date from long format back to short format
    By Tyla99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2021, 10:20 PM
  2. Reshaping data (wide format to long format)
    By souryadas in forum Excel General
    Replies: 2
    Last Post: 11-15-2019, 04:59 AM
  3. [SOLVED] about restructure repeated measure data into long format from wide format
    By sohel_for in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-18-2015, 01:10 AM
  4. [SOLVED] =IF and =SUMIF formulas creating long long long data processing times.
    By comp in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 03-26-2014, 02:59 PM
  5. Long Date Format
    By Walk6860 in forum Excel General
    Replies: 2
    Last Post: 11-09-2011, 09:41 AM
  6. Long Date Format
    By Shanester in forum Excel General
    Replies: 4
    Last Post: 04-27-2009, 04:21 AM
  7. Replies: 1
    Last Post: 08-01-2006, 02:00 PM

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