+ Reply to Thread
Results 1 to 3 of 3

Using an if statement to pull data from other cells if a certain word is used

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    2

    Talking Using an if statement to pull data from other cells if a certain word is used

    Ok, so here's what I'm trying to do. So if a cell contains a certain word (say TCA), I want that cell to be inserted. If the cell does not contain TCA, I want the cell to be blank or 0.

    Here's the formula I've come up with so far: =IF(SEARCH("TCA",C10),C10) it works, but for the cells that don't contain DOG, they say #VALUE!
    It looks like this:

    TCA -> TCA
    ACT -> #VALUE!
    CAT -> #VALUE!
    TCA -> TCA

    I've attached the excel file in case anyone would like to give a whirl. I just need the #VALUE! error to be blank or a 0, but I can't find any way to do this. Any suggestions?
    Attached Files Attached Files
    Last edited by buchhemt20; 02-09-2012 at 07:55 PM. Reason: Solved!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Using and if statement pull data from other cells if a certain word is used

    Try
    =IF(ISERROR(SEARCH("TCA",A8)),"",A8)
    Last edited by Special-K; 02-09-2012 at 07:39 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    02-09-2012
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using and if statement pull data from other cells if a certain word is used

    Thank you so much!!! This works perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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