+ Reply to Thread
Results 1 to 4 of 4

User-Defined Functions won't work with each other

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    67

    User-Defined Functions won't work with each other

    Howdy,

    I have two functions. SPACE_OVERLAP() finds common numbers between two cells with comma-delimited values like this:
    A1: 1,2,3,4,5,6,7,8,9
    A2: 4,5,8,10,12,13,14,15
    B1: =SPACE_OVERLAP(A1,A2) = 4,5,8

    And NUMCOMMA() turns a cell into a comma-delimited value, like this:
    A1: 1-5
    A2: =NUMCOMMA(A1) = 1,2,3,4,5

    The problem is that when I put NUMCOMMA() inside of SPACE_OVERLAP()
    =SPACE_OVERLAP(A1,NUMCOMMA(A2))
    I get a #VALUE error.

    Space Overlap:
    Please Login or Register  to view this content.

    Numcomma:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: User-Defined Functions won't work with each other

    Because Space_Overlap is expecting two ranges. Change the arguments to String.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-12-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    67

    Re: User-Defined Functions won't work with each other

    And there we have it. Under my nose the whole time. Thanks!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: User-Defined Functions won't work with each other

    I'd do the same for the other one.

    You're welcome.

+ 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. Which Excel functions work in user-defined functions ?
    By RogeratCCCC in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-28-2012, 06:47 PM
  2. User Defined Functions: How do I get
    By DCSwearingen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2007, 12:30 PM
  3. User defined functions: Where to keep in VBA?
    By GreenInIowa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2005, 06:05 PM
  4. [SOLVED] User defined functions
    By Daniel Bonallack in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2005, 07:05 PM
  5. [SOLVED] User Defined Functions - Help Text - Make it Easy for the User
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2005, 06:06 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