+ Reply to Thread
Results 1 to 4 of 4

Using IFERROR to search and replace

  1. #1
    Registered User
    Join Date
    07-04-2019
    Location
    Liverpool
    MS-Off Ver
    365 ProPlus v1808
    Posts
    2

    Using IFERROR to search and replace

    Hi All, apologies if this is solved elsewhere, I'm struggling to even describe the issue clearly so searches haven't helped.

    I have a Salesforce report pulled into excel listing projects.
    Within the project name exists the client name, entered as freetext within Salesforce.

    This means I have fields named:
    - Coca Cola - Project 1
    - CocaCola - Project 2


    I've written a formula to identify this and insert a consistent name in a new 'Client' column
    =IFERROR(IF(SEARCH("*Coca Cola*",A2,1),"Coke"),"")
    &IFERROR(IF(SEARCH("*CocaCola*",A3,1),"Coke"),"")

    This works fine, but I've now added so many lines to the formula that I'm unable to save as xlsx (which I need for Power BI)

    Is there a way to use a smaller formula with a VLOOKUP or something to allow me to use a much larger list of misnamed clients?


    Thanks in advance for any help - I'm ok with excel but by no means great and entirely self taught.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using IFERROR to search and replace

    Do you have a master list of valid client names?

    If so and assuming the " -" characters are consistent in separating the client from the project you could use the following formula to identify ones that don't match your list.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-04-2019
    Location
    Liverpool
    MS-Off Ver
    365 ProPlus v1808
    Posts
    2

    Re: Using IFERROR to search and replace

    Richard, thanks for the reply.

    I do have a master list of Client names, unfortunately the '-' is not consistent, I'm using the '*' at either end to find some identifiable block of text within the body

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Using IFERROR to search and replace

    Hello FatPhil and Welcome to Excel Forum.
    If I understand correctly then the following array entered formula* may be of some use: =INDEX(G$2:G$3,SUMPRODUCT((ROW(A$1:A$2))*(IFERROR(SEARCH(F$2:F$3,A2),0))))
    *An array entered formula is confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    A list of the old names is in column F and the list new names is column G.
    If this isn't helpful then perhaps uploading a small desensitized sample of your list and desired outcome will give us some understanding.
    To upload a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Need help with Search Text & IFERROR
    By SanchoPanza1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2016, 12:53 PM
  2. [SOLVED] Help with a isnumber, iferror, search formula
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2015, 08:31 AM
  3. IFERROR(LOOKUP need help to modify search
    By A440 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2015, 06:47 AM
  4. IF IFERROR SEARCH Logic
    By Ferohers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2015, 07:41 AM
  5. [SOLVED] =IFERROR / SUMPRODUCT - Search for year total?
    By domgilberto in forum Excel General
    Replies: 5
    Last Post: 05-20-2014, 05:56 AM
  6. Need help with formula =IF(IFERROR(SEARCH
    By ibrown9 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2013, 04:15 PM
  7. Find replace IFerror in formulae
    By Jollyfrog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2011, 02:10 PM

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