+ Reply to Thread
Results 1 to 8 of 8

isnumber(Search - Help please!!!

  1. #1
    Registered User
    Join Date
    11-22-2018
    Location
    Truro
    MS-Off Ver
    excel 2016
    Posts
    4

    Angry isnumber(Search - Help please!!!

    I am looking for a formula that will search a cell for a number in a string of numbers and return with either a "yes" its there or a "no" its not. I am currently using the following formula however it gets confused when you go above 10 as it thinks "11" can also be a "1" and "111" can be a "1","11" & "111".

    Current Formula:

    =IF(ISNUMBER(SEARCH(A28,$E$4)), "Yes", "No")

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: isnumber(Search - Help please!!!

    Hello and welcome to the forum.

    I think that an appropriate answer is going to depend on how the data looks.

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  3. #3
    Registered User
    Join Date
    11-22-2018
    Location
    Truro
    MS-Off Ver
    excel 2016
    Posts
    4

    Re: isnumber(Search - Help please!!!

    Thanks for the advice, I have attached a file. Basically i need to be able to enter different house numbers into the cells below "plots Included".
    Then i want my little table below to count how many different numbers are in the cells. so for cell E4 - cells b8 to b13 is searching for the numbers and reporting either "yes" or "No",
    i am then using a simple formula below to count how many are yes. So that works,

    However for e5 the cells c8 to c13 are counting the same however they recognise the 1 and the 6 as individuals and if i continued down they would then pick up 16 and so on,

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: isnumber(Search - Help please!!!

    Try these:

    B8 =IF(ISNUMBER(SEARCH(","&A8&",",","&$E$4&",")), "Yes", "No")

    C8 =IF(ISNUMBER(SEARCH(","&A8&",",","&$E$5&",")), "Yes", "No")

  5. #5
    Registered User
    Join Date
    11-22-2018
    Location
    Truro
    MS-Off Ver
    excel 2016
    Posts
    4

    Re: isnumber(Search - Help please!!!

    Thanks 63falcondude - This gets rid of the problem i had however has created a new one. it currently works as long as all numbers are separated with a "," like in the below example:
    1,2,3,4,5,11

    However does not recognise if there is a space somewhere in the string like below:
    1,2,3,4,5, 11

    Is it possible to get it to recognise in both ways? As for this spreadsheet people may enter numbers in a string with or without spaces but always seperated with commas.

    Hope you can help with this

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: isnumber(Search - Help please!!!

    Sure, you can use these:

    B8 =IF(ISNUMBER(SEARCH(","&A8&",",","&SUBSTITUTE($E$4," ","")&",")), "Yes", "No")

    C8 =IF(ISNUMBER(SEARCH(","&A8&",",","&SUBSTITUTE($E$5," ","")&",")), "Yes", "No")

  7. #7
    Registered User
    Join Date
    11-22-2018
    Location
    Truro
    MS-Off Ver
    excel 2016
    Posts
    4

    Re: isnumber(Search - Help please!!!

    Awesome! that has worked. thanks so much.

    Just one more small problem, For some reason if i try to increase the amount of numbers i use it stops working. For example:

    I have increased the amount of numbers i want it to recognise to 300, Which it does find unless i ask it to find something like "1,222" - It will not find either of the numbers then. However "1,2,222" it recognises all 3??

    If you can fix that i will be for ever in your debt

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: isnumber(Search - Help please!!!

    The problem is that it sees 1,222 as one thousand two hundred and twenty two.

    To combat this, you can format cells E4 and E5 as Text.

+ 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. If + isnumber + search + or
    By longhorn94 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2018, 07:14 PM
  2. [SOLVED] IF-OR-ISNUMBER-Search
    By manangmercy2017 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-26-2017, 12:16 PM
  3. ISNUMBER SEARCH with IF AND
    By Emile du Toit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2016, 05:17 PM
  4. IsNumber Search
    By JamesArmitage in forum Excel General
    Replies: 5
    Last Post: 05-10-2016, 08:28 AM
  5. [SOLVED] ISNUMBER and SEARCH
    By jwkathol in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-15-2016, 10:07 PM
  6. If, or, isnumber, search
    By reb2u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2012, 10:53 AM
  7. Isnumber(search
    By AVIDDA in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 02:45 PM

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