+ Reply to Thread
Results 1 to 14 of 14

Isnumber(search results misleading

Hybrid View

DHFE Isnumber(search results... 11-02-2015, 10:51 AM
FlameRetired Re: Isnumber(search results... 11-02-2015, 09:45 PM
DHFE Re: Isnumber(search results... 11-03-2015, 06:05 AM
samba_ravi Re: Isnumber(search results... 11-03-2015, 06:10 AM
Glenn Kennedy Re: Isnumber(search results... 11-03-2015, 06:16 AM
DHFE Re: Isnumber(search results... 11-03-2015, 08:23 AM
ChemistB Re: Isnumber(search results... 11-03-2015, 08:41 AM
DHFE Re: Isnumber(search results... 11-03-2015, 08:55 AM
DHFE Re: Isnumber(search results... 11-03-2015, 09:14 AM
ChemistB Re: Isnumber(search results... 11-03-2015, 09:11 AM
ChemistB Re: Isnumber(search results... 11-03-2015, 09:24 AM
DHFE Re: Isnumber(search results... 11-03-2015, 10:00 AM
AlKey Re: Isnumber(search results... 11-03-2015, 09:47 AM
ChemistB Re: Isnumber(search results... 11-03-2015, 10:02 AM
  1. #1
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    158

    Isnumber(search results misleading

    I've got a table 24x24 (excluding headers) the row and column headers will change depending on entries elsewhere in the workbook.
    The column headers will either be single or double numbers - 1 / 2 / 3 / 4 / 5 or 1,2 / 3,4 / 5,6 / 7,8 / 9,10 or a combination - 1 / 2 / 3,4 / 5,6 etc
    The row headers will be a list of the numbers - 1,2,3,4,5,6 / 3,4,9,10 / 1,2,5,6,9 etc.

    My table is set out to show if the row header contains the column header and if so will show TRUE, if not FALSE.

    The problem i'm having is when there's numbers over 10 or 20 etc the table will show true if the column headers have 1 or 2 as options.
    Is there anyway for these to be discounted if the column header numbers aren't 1 or 2 and are 10s or 20s?

    Sorry, i should say - numbers can appear on their own in both headings, when listed with another there will be a comma between them (no space)
    Last edited by DHFE; 11-02-2015 at 11:04 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Isnumber(search results misleading

    I would need to see a "hands-on" sample Excel file to better understand what you are working with. When you upload a file .... and please no pictures or screen shots ... many of our browsers won't read them ... please be sure to desensitize the data.

    Include enough data (before section) to show us what you are starting with and an after section (manually typed if necessary) that shows expected outcome.

    If you are not familiar with how to upload an Excel file on the Forum:

    To attach a file to your post,
    click “Go Advanced” (next to Post Quick Reply – bottom right),
    scroll down until you see “Manage Attachments”,
    click that and select “Add Files” (top right corner).
    click on “Browse”
    select your file(s)
    click “Open” click “Upload” click “Done” (bottom right)
    click “Submit Reply”
    Once the upload is completed the file name will appear at the bottom of your reply.
    Dave

  3. #3
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    158

    Re: Isnumber(search results misleading

    I'll do my best to get a desensitized version of the file uploaded, but basically all I'm looking for is a formula which can differentiate between a 1 and 11 to not give me a TRUE result against a 10,11,12,etc when looking for a 1.

    As the table is 24x24 and the column header can contain double numbers, this means it can list up to 47,48 as an option. This would mean i would get a TRUE result when looking for a 4, 7 or 8. I don't want this - i need for it to look only for the exact numbers.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Isnumber(search results misleading

    pls attach a sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Isnumber(search results misleading

    Is this just a case of using MATCH???

    =MATCH(J1,A1-Z1,0)

    where J1 contains 1 and A1-Z1 contains your headers.....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    158

    Re: Isnumber(search results misleading

    Seriously...how impatient can you be - i said I'll do my best to get a file uploaded and you wait a whole 5 minutes before telling me again... I need time to make it - plus I'm at work so I can't just stop working.

    isnumber.xlsx
    Here's the file.

    There's 3 tables.

    Table A - The only data that's important is Column A. These cells will contain either single or double numbers as explained previously (up to a max 47,48)
    Table B - The only data that's important is Column H (H-M merged cell). These cells will contain the listed numbers anywhere from a single number up to all possible 48.

    Table C is where the formulas are. The column headers are Table A Column A, the row headers are Table B Column H.
    I need the table contents to show TRUE if the column header exists in the row header. As you can see however B59:C31 are showing as TRUE because the numbers 1 and 2 appear in the row header, but it's not because 1 and 2 appear individually but rather as part of 10, 11 and 12. This is wrong.

    @Glenn
    I've tried using match, but that gave me false FALSE results
    Last edited by DHFE; 11-03-2015 at 08:26 AM.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Isnumber(search results misleading

    Try in B55 copied across and down

    =IF(B$54="",FALSE,IF(LEFT($A55,LEN(B$54)+1)=B$54&",", TRUE, IF(ISNUMBER(SEARCH(","&B$54&",",SUBSTITUTE($A55," ",""))),TRUE,FALSE)))

    This can be shortened to

    =OR((LEFT($A55,LEN(B$54)+1)=B$54&","),(ISNUMBER(SEARCH(","&B$54&",",SUBSTITUTE($A55," ","")))))

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    158

    Re: Isnumber(search results misleading

    Nearly but both methods lose the last numbers;
    in row 1 - 7,8 is displayed as FALSE when it should be TRUE
    in row 2 & 3 - it's 5,6
    row 4 has no TRUE results when it should have 7,8

    etc

    i'm guessing this is because of the formula checking to see if the value matches B$54 & ","

  9. #9
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    158

    Re: Isnumber(search results misleading

    So long as it works it doesn't really need to be eloquent, lol.

    Again it's just slightly off - the rows which have more than one column being TRUE work, but rows 58 (7,8) and 62 (13,14) still show all as FALSE.

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Isnumber(search results misleading

    Maybe someone else can come up with a more eloquent formula but

    =OR((RIGHT($A55, LEN(B$54)+1)=","&B$54),(LEFT($A55,LEN(B$54)+1)=B$54&","),(ISNUMBER(SEARCH(","&B$54&",",SUBSTITUTE($A55," ","")))))

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Isnumber(search results misleading

    Okay, how about this?

    =IF(B$54<>"",OR(B$54=$A55,(RIGHT($A55, LEN(B$54)+1)=","&B$54),(LEFT($A55,LEN(B$54)+1)=B$54&","),(ISNUMBER(SEARCH(","&B$54&",",SUBSTITUTE($A55," ",""))))))

  12. #12
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    158

    Re: Isnumber(search results misleading

    @ChemistB
    That seems to have done the trick, thanks for grinding that out it's been a major help

    @AlKey
    That works except if the header cells are blank, in which case it shows a false TRUE

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Isnumber(search results misleading

    Hi DHFE,

    Try this one

    Formula: copy to clipboard
    =IFERROR(IF(LOOKUP(10^308,--SEARCH(","&B$54&",",","&$A55&",")),TRUE),FALSE)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Isnumber(search results misleading

    Very nice AlKey, using Alkey's logic, mine can be shortened to

    =IF(B$54<>"",ISNUMBER(SEARCH(","&B$54&",",SUBSTITUTE(","&$A55&","," ",""))))
    Last edited by ChemistB; 11-03-2015 at 10:06 AM.

+ 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] if isnumber search problem
    By rookie284 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2014, 11:32 AM
  2. How many values can be in IF(ISNumber(search
    By aurness in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2013, 11:11 PM
  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. Multiple IF ISNUMBER SEARCH
    By bibach in forum Excel General
    Replies: 5
    Last Post: 07-13-2011, 04:41 AM
  6. Isnumber(search
    By AVIDDA in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 02:45 PM
  7. [SOLVED] Reverse Vlookup multiple results if isnumber?
    By Jmarsh4 in forum Excel General
    Replies: 2
    Last Post: 05-13-2010, 04:54 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