+ Reply to Thread
Results 1 to 9 of 9

Find and Replace: Formula is Too Long

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    Spartanburg SC
    MS-Off Ver
    Excel 2002
    Posts
    5

    Find and Replace: Formula is Too Long

    First of all, I know nothing of excel or VBA with excel. I'm using the record function to create several macros. This is the only thing I haven't been able to figure out. I'm trying to use the Search and Replace function to find cells and replace all of the data in the cell with a simple acronym; the letters PI. The data in the cells I'm searching for is as follows:

    C-Type--Freddie MAC Property Insp-PFC -- A minimum of 2 photographs of the property which should include 1.Front view photo of the property 2.Photo confirming the address- property number/ property number on the mail box.If the property is vacant,1.Visual exterior identification if the property requires any maintenance/preservation on the exteriors. All maintenance required on the property should be captured in detail and supported with photos.Examples:A.Exterior Trash (estimate units) ,B.Yard maintenance (estimate lot size), C.Securing of property (lock box or lock required),2.Identify if there are any code violations notice posted on the property (provide photos).3.Identify if any health and safety issues on the property (provide photos).4.Assess the overall condition of the property (E.g. Distressed, Poor, Good, Fair?)If the property is found to be occupied 1. Front view photo of the property,2.Photo confirming the address- property number/ property # on the mail box/street sign if no property number on home or mailbox,3.Identify if there are any code violations notice posted on the property(provide photos),4.Identify if any health and safety issues on the property. (provide photos),5.Assess the overall condition of the property (E.g. Good, Fair?)

    I'm trying to search for *Freddie* and replace with PI, with "Match entire cell contents" selected. Every time I do, I get the "Formula is too long" error. Is there any way to make this work, or reduce the data before running the search?

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Find and Replace: Formula is Too Long

    What is this?

    Quote Originally Posted by RJORDANW View Post
    C-Type--Freddie MAC Property Insp-PFC -- A minimum of 2 photographs of the property which should include 1.Front view photo of the property 2.Photo confirming the address- property number/ property number on the mail box.If the property is vacant,1.Visual exterior identification if the property requires any maintenance/preservation on the exteriors. All maintenance required on the property should be captured in detail and supported with photos.Examples:A.Exterior Trash (estimate units) ,B.Yard maintenance (estimate lot size), C.Securing of property (lock box or lock required),2.Identify if there are any code violations notice posted on the property (provide photos).3.Identify if any health and safety issues on the property (provide photos).4.Assess the overall condition of the property (E.g. Distressed, Poor, Good, Fair?)If the property is found to be occupied 1. Front view photo of the property,2.Photo confirming the address- property number/ property # on the mail box/street sign if no property number on home or mailbox,3.Identify if there are any code violations notice posted on the property(provide photos),4.Identify if any health and safety issues on the property. (provide photos),5.Assess the overall condition of the property (E.g. Good, Fair?)

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

    Re: Find and Replace: Formula is Too Long

    From the Excel UI, Find only works on cells with fewer than 256 characters. What you want can be done with VBA, but I'd suggest that you copy it to Word, do what you need there, and then copy it back.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    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,945

    Re: Find and Replace: Formula is Too Long

    Hi and welcome to the forum

    If I understand you correctly, you have a text string as shown in your 2nd paragraph? (C-Type--Freddie.......Good, Fair?)...and want to replace Freddie with PI

    If thats the case, then Im not sure what error message you are getting, but if you do F/R using this...
    I'm trying to search for *Freddie* and replace with PI
    That will replace the entire text string with PI (I just tried it).

    Try just a plain (find) Freddie...(replace) PI

    Edit: from shg...
    From the Excel UI, Find only works on cells with fewer than 256 characters.
    just noticed OP profile says 2002, it worked fine in 2007
    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

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

    Re: Find and Replace: Formula is Too Long

    My bad -- I just tried in in 2003 and it worked also. I had recalled you couldn't do it prior to 2007. Musta just made that up.

  6. #6
    Registered User
    Join Date
    10-18-2013
    Location
    Spartanburg SC
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: Find and Replace: Formula is Too Long

    Quote Originally Posted by stnkynts View Post
    What is this?
    I do inspections for mortgage companies. This is the instructions I receive for certain jobs. However, I don't need all of that data. I've seen it so many times I've practically memorized it. I just need PI to remind me of the job type.

  7. #7
    Registered User
    Join Date
    10-18-2013
    Location
    Spartanburg SC
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: Find and Replace: Formula is Too Long

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    If I understand you correctly, you have a text string as shown in your 2nd paragraph? (C-Type--Freddie.......Good, Fair?)...and want to replace Freddie with PI

    If thats the case, then Im not sure what error message you are getting, but if you do F/R using this...


    That will replace the entire text string with PI (I just tried it).

    Try just a plain (find) Freddie...(replace) PI

    Edit: from shg...
    just noticed OP profile says 2002, it worked fine in 2007
    It is my goal to replace the entire string with the letters PI. Perhaps I will just have to get a newer version of excel. Thanks for the reply.

  8. #8
    Registered User
    Join Date
    10-18-2013
    Location
    Spartanburg SC
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: Find and Replace: Formula is Too Long

    Quote Originally Posted by shg View Post
    From the Excel UI, Find only works on cells with fewer than 256 characters. What you want can be done with VBA, but I'd suggest that you copy it to Word, do what you need there, and then copy it back.
    How can I do it with VBA? I'm writing a macro to take a list of hundreds of jobs, all with cells like this one, and convert them to a few letters (e.g. PI) so that I fit it on a sheet of paper. The macro saves me an hour a night. The code that I am using to attempt it with this cell is as follows:

    Please Login or Register  to view this content.
    Any help would be greatly appreciated.

  9. #9
    Registered User
    Join Date
    10-18-2013
    Location
    Spartanburg SC
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: Find and Replace: Formula is Too Long

    I upgraded to 2010. That resolved the problem. Thanks, everybody.
    Last edited by RJORDANW; 10-20-2013 at 12:59 PM.

+ 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. Find & Replace/Formula Too Long
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2010, 03:44 PM
  2. Need a find and replace formula
    By aldend123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2009, 12:28 PM
  3. Replies: 1
    Last Post: 03-27-2006, 12:25 PM
  4. my excel formulas are too long to execute find and replace
    By jmh33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2006, 01:40 PM
  5. Cannot replace text in cell: "Formula is too long"
    By lianasal in forum Excel General
    Replies: 0
    Last Post: 05-18-2005, 01:20 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