+ Reply to Thread
Results 1 to 9 of 9

IF(ISNUMBER(SEARCH issue with double digits

  1. #1
    Registered User
    Join Date
    07-27-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2013
    Posts
    4

    IF(ISNUMBER(SEARCH issue with double digits

    Hello,
    I am trying to calculate formulas and use the following code. It works great, until I try using double digits. It is only picking up the first digit. Any help would be greatly appreciated.. Thank You.

    =IF(ISNUMBER(SEARCH("1",D3)),"12",
    IF(ISNUMBER(SEARCH("2",D3)),"11",
    IF(ISNUMBER(SEARCH("3",D3)),"10",
    IF(ISNUMBER(SEARCH("4",D3)),"9",
    IF(ISNUMBER(SEARCH("5",D3)),"8",
    IF(ISNUMBER(SEARCH("6",D3)),"7",
    IF(ISNUMBER(SEARCH("7",D3)),"6",
    IF(ISNUMBER(SEARCH("8",D3)),"5",
    IF(ISNUMBER(SEARCH("9",D3)),"4",
    IF(ISNUMBER(SEARCH("10",D3)),"3",
    IF(ISNUMBER(SEARCH("11",D3)),"2",
    IF(ISNUMBER(SEARCH("12",D3)),"1"
    ))))))))))))

  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
    53,051

    Re: IF(ISNUMBER(SEARCH issue with double digits

    Hi and welcome to the forum

    Try removing the "" from the numbers?
    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
    Registered User
    Join Date
    07-27-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: IF(ISNUMBER(SEARCH issue with double digits

    Thank you.

    I tried removing all of the "" from the numbers and I am still having issues.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: IF(ISNUMBER(SEARCH issue with double digits

    whats in d3?
    =ISNUMBER(SEARCH("12",D3))

    =ISNUMBER(SEARCH(12,D3)) both return true if d3 has say 3124 in it
    Last edited by martindwilson; 07-27-2013 at 11:21 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    07-27-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: IF(ISNUMBER(SEARCH issue with double digits

    D3 will be numbers ranging from 1-100, with each number there is a point value associated that will appear in E3. Example: If you enter 1 in D3, it should populate 12 in E3, 2 should be 11, so on and so forth. If i enter 12 in D3, it should show 1 in E3, however it jumps back to 12.

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: IF(ISNUMBER(SEARCH issue with double digits

    Try this:

    =13-D3

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: IF(ISNUMBER(SEARCH issue with double digits

    well that's correct because the number 1 is contained in the number 12 so it matches
    to make that work you need longest first
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    but from 1-12 you could just use
    =13-d3
    tm the idea is to answer the op not just suggest an random answer

  8. #8
    Registered User
    Join Date
    07-27-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: IF(ISNUMBER(SEARCH issue with double digits

    Quote Originally Posted by martindwilson View Post
    well that's correct because the number 1 is contained in the number 12 so it matches
    to make that work you need longest first
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    but from 1-12 you could just use
    =13-d3
    tm the idea is to answer the op not just suggest an random answer
    The formula you provided worked great!! Thank you for your help, and everyone else as well!

  9. #9
    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
    53,051

    Re: IF(ISNUMBER(SEARCH issue with double digits

    Nice switch there Martin

+ 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. IsNumber Issue?
    By webbkat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2013, 08:05 PM
  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. If, or, isnumber, search
    By reb2u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2012, 10:53 AM
  4. Isnumber(search
    By AVIDDA in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 02:45 PM
  5. 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