+ Reply to Thread
Results 1 to 5 of 5

VBA User-Defined Function (UDF) - Tweak Please

  1. #1
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    VBA User-Defined Function (UDF) - Tweak Please

    I have a VBA User-Defined Function which needs tweaking so that only one set of values show. At the moment, the UDF picks up all matching values, but it should differentiate by semester. To see what I mean, here's the file:

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: VBA User-Defined Function (UDF) - Tweak Please

    Hi hokkaido19,

    I'll put in red the 2 changes made to the function:
    Please Login or Register  to view this content.
    Then change your formula in the semester 1 table to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Likewise use ",2" in the formula for the semester 2 table.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: VBA User-Defined Function (UDF) - Tweak Please

    Please Login or Register  to view this content.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,597

    Re: VBA User-Defined Function (UDF) - Tweak Please

    This should do.

    =ClassTeacher(Table618712[@Textbook],1)
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: VBA User-Defined Function (UDF) - Tweak Please

    Thanks for all the answers. I see that there are different ways to do this: praise all round (I have absolutely no idea when it comes to VBA).

+ 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. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  2. [SOLVED] User defined function
    By rmccain in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-02-2014, 04:35 AM
  3. [SOLVED] User defined function returns an error on a standard function used in it.
    By pb48 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2013, 01:35 PM
  4. [SOLVED] User defined function
    By RGrunden in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2012, 12:14 AM
  5. User Defined Function
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2010, 01:57 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. Replies: 0
    Last Post: 06-20-2006, 10:55 AM

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