+ Reply to Thread
Results 1 to 4 of 4

Use string returning UDF in formula

  1. #1
    Registered User
    Join Date
    09-19-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    8

    Use string returning UDF in formula

    Hello,

    So, I've written a function in VBA which returns a cell address, for instance '$A$40'. I want to use this cell address in an array formula, but it returns 0.
    When I put '$A$40' in the formula manually it returns the correct value, but when I put in 'MyFunction()' it returns blank.

    EDIT: This is the formula:
    Please Login or Register  to view this content.
    Where 'FoolProof()' returns the cell address and Optional_Processes is a named range.
    Last edited by NKuip; 10-20-2017 at 06:02 AM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Use string returning UDF in formula

    If "MyFunction" returns $A$40, try using INDIRECT to use that reference in a formula.

  3. #3
    Registered User
    Join Date
    09-19-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    8

    Re: Use string returning UDF in formula

    Thanks, it works flawless

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Use string returning UDF in formula

    Happy to help. Thanks for the rep!

    If that solved your question, please mark this thread as SOLVED.

+ 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] Returning a changing text from a string
    By vesebr in forum Excel General
    Replies: 13
    Last Post: 03-24-2015, 03:25 PM
  2. [SOLVED] INDIRECT returning #REF error when trying to convert string to formula
    By cwyn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 08:15 PM
  3. [SOLVED] Returning Match Score From A String
    By clattenburg cake in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2013, 01:38 PM
  4. [SOLVED] Returning a character from a string
    By abduljaleel.mca in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2013, 04:18 AM
  5. lookup returning a string
    By MysticGenius in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-14-2012, 08:00 PM
  6. finding a text string and returning a Y or N
    By wilksy in forum Excel General
    Replies: 3
    Last Post: 05-11-2011, 03:38 AM
  7. Returning Characters From A String
    By Solarissf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2006, 04:06 PM

Tags for this Thread

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