+ Reply to Thread
Results 1 to 14 of 14

If isnumber search problem

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    If isnumber search problem

    In J50, I dont want Excel to return the value "CML5" like it does in J44. When "3x5" and "logo" are both present, I want the "CML5" to populate in J44.
    How do i write it "and...."?

  2. #2
    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,933

    Re: If isnumber search problem

    I'm not sure if it's me or what, but that file takes so long to D/L that I stopped it.

    Perhaps remove anything that does not relate directly to your question?
    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

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: If isnumber search problem

    Hi Bryden,

    I took the test for LOGO out of each individual test, and put it at the beginning. Is this what you want - it returns BLANK in J50 and CML5 in J44.

    Please Login or Register  to view this content.
    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: If isnumber search problem

    David, what are they curly brackets for?
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: If isnumber search problem

    Either change your search string format to "*LOGO*2X3*", etc. Or if "LOGO" could appear after "2X3" and should still be included as a valid result then try AND(ISNUMBER(..)) with your existing array constant.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: If isnumber search problem

    I eliminated the array constants in favour of IF(AND( so that both criteria had to be present for each result. This eliminated the value in J50 as you wanted and maintained the rest.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: If isnumber search problem

    Quote Originally Posted by newdoverman View Post
    I eliminated the array constants in favour of IF(AND( so that both criteria had to be present for each result. This eliminated the value in J50 as you wanted and maintained the rest.
    Ron, see my comment in post #5,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which is effectively the same as your formula also works, as should
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    if, as appears to be the case, the word "LOGO" always comes in front of what appears to be the product size.

    Reducing the number of functions makes the formula easier to manage.

    Also, for what it's worth, wildcard characters serve no purpose in the criteria of the search function unless used in the middle of a string, as with the second example above. 3 of us didn't see that sooner

    bryden2008, does the sample sheet contain the whole list of criteria, or is there more to add in later?

    If your list is going to be much bigger, I would consider looking at ways to extract the product size from the string to use as search criteria for a lookup table.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: If isnumber search problem

    The assumption that Logo comes first in ALL cases like the example may or may not be true as this list is most likely not a complete listing. In any case, the OP created a formula that satisfied except for the one exception mentioned. Rather than undoing what was done, I opted to add to it even though it made the formula longer.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: If isnumber search problem

    If you read my post properly, there was no assumption, that was a secondary suggestion that should work if the real data is consistent with the sample, hence asking the OP if there is more to add to the list.

    I also chose to retain the OP's original working method, which is why my first suggestion retained their array constant by wrapping their existing array search with the AND() function rather than removing it and adding many more functions than needed.

    If you compare your formula to this one, which is the full version of what I was suggesting, you will see that this bears a much closer resemblance to the original formula and uses only 4 extra functions, where as yours uses something like 12 extra functions (I didn't count them but it should be 12 anyway).

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

  10. #10
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: If isnumber search problem

    Quote Originally Posted by Jacc View Post
    David, what are they curly brackets for?
    You're right Jacc, I should have removed the curly brackets. They are redundant once you are not looking for two words! (eg LOGO and 2X3).

    My reading of the formula was that Bryden wanted LOGO AND 2X3 etc. So instead of using multiple tests using AND, I tested for LOGO, then if this was found, looked for 2X3 etc.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  11. #11
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber search problem

    Hi David,
    That worked.
    Why did that work?

  12. #12
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber search problem

    So here is a new problem -
    For this formula in Z61 - Excel recognizes the word "Locker", but not "Drum" in Z62 and Z63

    Why?

  13. #13
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: If isnumber search problem

    It will not recognise "Can", "Stand" or "Z-Bar" either.

    If you're going to use arrays as search criteria then you need to wrap ISNUMBER with AND if all criteria should be TRUE, or wrap ISNUMBER with OR if you only need one to be TRUE.

    See my previous replies which show how to apply this method to your original problem, using the same method, simply change AND to OR for the new problem.

    Without using AND / OR the formula only checks the first criteria in the array, the rest of it is ignored.

  14. #14
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber search problem

    That worked Jason, thank you!

+ 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] Using the ISNUMBER and SEARCH Funtions
    By Michael N. Pierce in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-28-2014, 09:22 AM
  2. [SOLVED] if isnumber search problem
    By rookie284 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2014, 11:32 AM
  3. [SOLVED] =IF(ISNUMBER(SEARCH Problem
    By 3smees23 in forum Excel General
    Replies: 3
    Last Post: 11-09-2012, 10:54 AM
  4. If, or, isnumber, search
    By reb2u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2012, 10:53 AM
  5. If, isnumber, lookup, search formula problem
    By jamieray in forum Excel General
    Replies: 3
    Last Post: 09-08-2011, 06:44 AM
  6. Isnumber(search
    By AVIDDA in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 02:45 PM
  7. ISNUMBER(SEARCH Function
    By somesoldiers in forum Excel General
    Replies: 2
    Last Post: 07-14-2009, 10:49 AM

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