+ Reply to Thread
Results 1 to 5 of 5

Using a worksheet function within a user defined function

  1. #1
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    Using a worksheet function within a user defined function

    How does one use/call any of the common worksheet functions within a user defined function?

    I started on this because I wanted to convert this worksheet formula (which does case sensitive lookups) to a UDF.
    ={INDEX(Rng,MATCH(TRUE,EXACT(somevalue,Rng),0),1)}
    Last edited by Atom; 08-27-2016 at 08:04 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Using a worksheet function within a user defined function

    Please Login or Register  to view this content.
    for example
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    Re: Using a worksheet function within a user defined function

    Thanks for the help. As it turns out, I discovered that the case sensitive lookup I wanted can be accomplished with a simple array forumula.
    As in {=B1:B3=A1:A10}

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: Using a worksheet function within a user defined function

    Thanks for the update.

    For future reference, please don't edit the original/opening post. If you do, it changes the context of any answers in the thread and it can become pointless/confusing.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  5. #5
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    Re: Using a worksheet function within a user defined function

    I've done a lot of looking, but I still do not know how to convert the array formula in the OP to a public function, so I'm still looking for help.

+ 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. [SOLVED] Usage of standard functions into custom function (or user defined function)
    By tusharb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2016, 12:43 AM
  2. User defined function, pulling data from another worksheet
    By topnotchthrillr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2015, 10:00 PM
  3. Creating a user defined function based on a complex worksheet formula
    By Atul Maskara in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-24-2014, 09:36 AM
  4. [SOLVED] User defined function using information from active worksheet.
    By Matuna in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-14-2012, 06:57 AM
  5. Passing multiple parameters in user defined function from worksheet
    By cmschu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2009, 02:39 AM
  6. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM
  7. [SOLVED] Error messages from user defined Excel worksheet function
    By Helge V. Larsen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2006, 12:35 PM

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