+ Reply to Thread
Results 1 to 5 of 5

if(isnumber(search(not this text?)

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    11

    Question if(isnumber(search(not this text?)

    Hi,

    I have one row with different survey answers, i.e., I asked people to choose where they might like to give birth: home, hospital, etc. I needed to turn these into 1 if yes and 0 if no so created other rows for each option with (example) if(isnumber(search("home",A2)),1,0) and this works but the problem I have is that I also gave people an 'other' option and this also shows up in the same cell as their other answers so you might get: "home, hospital, small local hospital". I set up excel to display the 'other' data if my other rows are all 0, so they haven't also picked one of my options (88 is missing), using this: IF(AND(DN2=0,DM2=0,DL2=0,DK2=0,DJ2=0,DI2>0),DI2,IF(OR(DN2=1,DM2=1,DL2=1,DK2=1,DJ2=1),"",88)) so if all of my other rows for home, hospital etc. were 0 it would display what they have put. Problem is, I need their 'other' option here even if they also said one of my options and it won't appear because it's already counted their option.

    Is there a way to tell excel to display their 'other' if it also says one of my options? Something like if(isnumber(search(not?"Home","Hospital" etc...))"their other option","")

    Hope this makes sense!

    Thanks for any help

  2. #2
    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(not this text?)

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "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

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: if(isnumber(search(not this text?)

    Excel Formula.xlsx

    Here's the example with before & after tabs. Thanks

  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(not this text?)

    hmm a lot depends on spelling case and lay out you'd be better of creating drop downs for each category with the options with an ajecen cell for other which could be entered manually

  5. #5
    Registered User
    Join Date
    07-19-2013
    Location
    Oxford
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: if(isnumber(search(not this text?)

    Problem is the data collection has already been done so this is what I've got. Looks like I might have to go through by hand. Thanks for looking anyway!

+ 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, or, isnumber, search
    By reb2u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2012, 10:53 AM
  2. Replies: 3
    Last Post: 11-21-2011, 06:44 AM
  3. Isnumber(search
    By AVIDDA in forum Excel General
    Replies: 1
    Last Post: 01-14-2011, 02:45 PM
  4. If(isnumber(search question
    By Wskip49 in forum Excel General
    Replies: 2
    Last Post: 12-02-2009, 02:14 PM
  5. ISNUMBER(SEARCH Function
    By somesoldiers in forum Excel General
    Replies: 2
    Last Post: 07-14-2009, 10:49 AM

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