Results 1 to 11 of 11

Nested/Conditional IF statement

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-09-2009
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    155

    Thumbs up Nested/Conditional IF statement

    I have a row of cells that each do a wildcard search on a text string to deliver a 1 result if true. the formula is as follows;

    =IF(ISNUMBER(SEARCH("*A40",B52)), 1, "")

    The problem I have is that 2 other cell formulas clash which are;

    =IF(ISNUMBER(SEARCH("*A408",B52)), 1, "")
    =IF(ISNUMBER(SEARCH("*A4087",B52)), 1, "")

    All formulas when finding A4087 return a 1 when I only want it in the last
    The first 2 formulas return a 1 when finding A408 and I only want it in the second.

    I have tried using a space i.e. "*A40 " & "*A408 " but then I lose data if words run into the string i.e. A40silver would not pick up the text at all.

    My proposed solution is to do a conditional if statement i.e. for the A40 search, if A40 is found check if there is a "" in the other 2 corresponding cells before returning a 1. But I can't get the if statement to work. I am sure it should be possible and fairly straight forward but am really struggling to find the written solution !!!

    Are there any takers to help me out please. I can happily mock up something to explain better if required. Oh...and I want to stick with formula and not use VBA on this.

    regards

    Simon
    Attached Files Attached Files
    Last edited by opsman; 02-03-2010 at 10:28 PM. Reason: Added attachment

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