+ Reply to Thread
Results 1 to 8 of 8

Find Function or Something of the Like

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Find Function or Something of the Like

    I am trying to apply a 'Find' Function or something of the like to Column B to completely isolate the 'NPI #:' for the information in Column A - any suggestions?
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: Find Function or Something of the Like

    If it's the only group of digits in the string this UDF might help
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Find Function or Something of the Like

    Thanks - can you apply that UDF to my file, I am not sure how to do so. Is that a possibility and then upload the file with the UDF added so I can see how it works with my information?

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: Find Function or Something of the Like

    Open your file Hit ALT+F11 - Click Insert - Select "module" - Copy paste the code in this module then close the VBA editor.
    You now have a new function called "DigitsFirstID" that you can use as any other function, the argument being the string( something like =DigitsFirstID(A2)

  5. #5
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Find Function or Something of the Like

    I tried to apply the function - but it doesn't seem to be working - can you see what I did wrong?
    Thanks so much!
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Find Function or Something of the Like

    Try this in B2 & copy down.

    =IFERROR(LOOKUP(9E+300,MID(A2,SEARCH("NPI #",A2)+7,ROW(A$1:A$15))+0),"")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  7. #7
    Registered User
    Join Date
    12-16-2011
    Location
    Columbus
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Find Function or Something of the Like

    Amazing!
    Thanks

  8. #8
    Registered User
    Join Date
    07-19-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Find Function or Something of the Like

    It's really valuable information for me, because I am new in excel.

+ 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