+ Reply to Thread
Results 1 to 4 of 4

Thread: If (isnumber)

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Colorado
    MS-Off Ver
    Excel 2010
    Posts
    2

    If (isnumber)

    I'm using this formula -- =IF(ISNUMBER(SEARCH("-E",F2)),"E") -- and would like to add a second condition if F2 contains "-W" then return "W".

    Is that possible?

    Let me know if you need any additional info.

    Thanks in advance.

  2. #2
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,400

    Re: If (isnumber)

    Hi bmoney,

    Welcome to the forum.

    Yes this is possible, use the following formula:-

    =IF(ISNUMBER(SEARCH("-E",F2)),"E",IF(ISNUMBER(SEARCH("-W",F2)),"W",""))
    Also, you did not mention what will be the output if the cell neither contains -E or -W. If you wish you can edit last two quotes ("") in the formula to have that thing into the picture.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +919810929744
    dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    01-09-2012
    Location
    Colorado
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: If (isnumber)

    Quote Originally Posted by dilipandey View Post
    Hi bmoney,

    Welcome to the forum.

    Yes this is possible, use the following formula:-

    =IF(ISNUMBER(SEARCH("-E",F2)),"E",IF(ISNUMBER(SEARCH("-W",F2)),"W",""))
    Also, you did not mention what will be the output if the cell neither contains -E or -W. If you wish you can edit last two quotes ("") in the formula to have that thing into the picture.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    If the cell contains "-E" then the output needs to be "E".

    If the cell contains "-W" then the output needs to be "W".

    Also:

    If the cell contains neither "-E" or "-W" then the output needs to be "N/A".

    Can you add that last command to the formula please?

    Thanks!

  4. #4
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: If (isnumber)

    Hello bmoney,

    try this.

    =LOOKUP(9E300,SEARCH({"*","-E","-W"},F2),{"N/A","E","W"})
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0