+ Reply to Thread
Results 1 to 3 of 3

SEARCH function help

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    24

    SEARCH function help

    Hi,

    I'm trying to use SEARCH function to find out whether the email domain is a public domain or a corporate domain.

    Column A has all the email ids
    Column B is empty and i need to tag them as public domain / corporate domain -- Public domain as 1 and corporate as blank
    Column C is empty and i need to tag the name of the public domain if it's corportate leave it as blank and if public - name it as yahoo/gmail/hotmail
    Column D (D2:D10) has all the list of all the public domains like yahoo, gmail, hotmail etc

    In column B - I'm trying to get the value as "1" if it's public domain or keep it as blank if its corporate
    In column C - I'm trying to get the name of the public domain according to the value in column A - if it's corporate leave it as blank

    I'm trying my luck with SEARCH function but unable to do so..

    =IFERROR(SEARCH($D$2:$D$10,A:A),"")

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: SEARCH function help

    hi narikisas. do provide an excel sample file next time for us to help you better. assuming data in A2, try this for B2:
    =IF(ISNA(LOOKUP(2^15,SEARCH($D$2:$D$10,A2))),0,1)

    and this for C2:
    =IFERROR(LOOKUP(2^15,SEARCH($D$2:$D$10,A2),$D$2:$D$10),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    24

    Re: SEARCH function help

    Thank you so much Sure will attach the sample excel sheet from next time on wards.

+ 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.6.0 RC 1