+ Reply to Thread
Results 1 to 14 of 14

How to replace or substitute function formulas but left the cell reference intact?

  1. #1
    Registered User
    Join Date
    06-21-2015
    Location
    fort lauderdale, florida
    MS-Off Ver
    2007
    Posts
    77

    Angry How to replace or substitute function formulas but left the cell reference intact?

    Hi,

    I have a large amount of cells containing 2 formulas applied as cell reference for different ranges.
    I'm using the formulas IFERROR and INDIRECT (with bracket and ampersand)

    i don't really know how to do it because excel won't let me due to (brackets, ampersand, comma)

    so the question is : it is a way to replace it with out doing one at the time?

    Please Login or Register  to view this content.
    replace with
    Please Login or Register  to view this content.

    thank you !!

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Try find and replace.

    1st find =IFERROR(INDIRECT(" & replace it with =! (Note: Input a space at the start before the equals sign)

    Then find "),".") and again replace it with nothing.

    Then find =! (Note: Input a space at the start before the equals sign) and replace with =
    Last edited by NeedForExcel; 05-01-2016 at 11:41 PM.
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    06-21-2015
    Location
    fort lauderdale, florida
    MS-Off Ver
    2007
    Posts
    77

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Hi NeedForExcel,

    I did as you instructed but didn't work.

    On Box Find entered
    A-.=IFERROR(INDIRECT("

    On replace Box
    B-. 1 space here =!

    Then pop a message box :
    Microsoft excel cannot find any data to replace, check if your search formatting criteria are defined correctly.
    If you are sure if matching data exist in this workbook it may be on protected sheet..etc.etc..

    If weird because i ever protected this sheet, matter of fact i can replace any other formulas with out problem

    for example early today i changed a large ranges of formulas :
    Find
    Please Login or Register  to view this content.
    Replace
    Please Login or Register  to view this content.
    Thanks

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).

  5. #5
    Registered User
    Join Date
    06-21-2015
    Location
    fort lauderdale, florida
    MS-Off Ver
    2007
    Posts
    77

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Hi NeedForExcel,

    Unfortunately i can't send the sample workbook due that is huge (at this moment is more than 20mb) and the data is dependable, mean 1 sheet depend from other sheet and so on.. (12 worksheet), the other day i tryed but the owner (my boss) didn't let me..

    thanks for your kindness

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Can you atleast make a sample or something?

    Coz I'v tried it.. It works for me, the only thing is it gets relative reference (PU5) instead of absolute ($PU$5)

  7. #7
    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: How to replace or substitute function formulas but left the cell reference intact?

    Not sure I understand

    Do you want t replace teh whole formula =IFERROR(INDIRECT("PU5"),".") with $PU$5?
    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

  8. #8
    Registered User
    Join Date
    06-21-2015
    Location
    fort lauderdale, florida
    MS-Off Ver
    2007
    Posts
    77

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Hi FDibbins,

    No, I want to get rid of
    IFERROR(INDIRECT("
    and
    "),".")

    The ideal is to left the cell reference Intact ( later i can add the $ )


    Thanks

  9. #9
    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: How to replace or substitute function formulas but left the cell reference intact?

    OK then do it in stages....
    =IFERROR(INDIRECT("PU5"),".")
    1. F/R = with @=
    2. F/R IFERROR(INDIRECT(" with $
    3. F/R "),".") with $
    4. F/R @ with nothing

  10. #10
    Registered User
    Join Date
    06-21-2015
    Location
    fort lauderdale, florida
    MS-Off Ver
    2007
    Posts
    77

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Hi NeedForExcel,

    Yes, it let me do the first Step,

    Find
    A-.=IFERROR(INDIRECT("

    replace
    B-. 1 space here =!

    I Went to Options >> and for some reason the Match Case was tik

  11. #11
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: How to replace or substitute function formulas but left the cell reference intact?

    @Franky alta - It will let you do it all.. I tried it once again and it works just fine.

    Also make sure the Look In drop down has formulas selected.

  12. #12
    Registered User
    Join Date
    06-21-2015
    Location
    fort lauderdale, florida
    MS-Off Ver
    2007
    Posts
    77

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Hi NeedForExcel,

    Yes it worked, i select a range but it was replacing the whole sheet, i undo and I tried the first step a few more time and bingo, it worked!

    Thank you my friend!!

  13. #13
    Registered User
    Join Date
    06-21-2015
    Location
    fort lauderdale, florida
    MS-Off Ver
    2007
    Posts
    77

    Re: How to replace or substitute function formulas but left the cell reference intact?

    Thank you FDibbins,

    Appreciated your kindness

  14. #14
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: How to replace or substitute function formulas but left the cell reference intact?

    No Problem..

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replace/Substitute Function
    By tushararora in forum Excel General
    Replies: 3
    Last Post: 09-10-2015, 01:14 AM
  2. Indirect Sheet reference with cell reference left function and text
    By teststrip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 10:31 AM
  3. [SOLVED] Can i substitute using a cell reference?
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-25-2013, 03:17 PM
  4. Question about Replace,If, Substitute, Min,Max Small,Large function
    By ayawoqu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2012, 01:26 AM
  5. Excel 2007 : Split text in parts with words left intact
    By marianmix in forum Excel General
    Replies: 6
    Last Post: 03-06-2011, 02:05 PM
  6. [SOLVED] Replace or Substitute for COMBIN function
    By Jaja in forum Excel General
    Replies: 6
    Last Post: 01-01-2006, 10:25 AM
  7. [SOLVED] Substitute ,replace and delete in a cell.
    By Doug in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2005, 11:55 AM

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