+ Reply to Thread
Results 1 to 3 of 3

User Defined function question. for a sigma function

  1. #1
    Registered User
    Join Date
    01-25-2018
    Location
    sssssssssssss
    MS-Off Ver
    sssssssssssss
    Posts
    2

    User Defined function question. for a sigma function

    Hi, I am trying to define a Sigma summation function, but the below code is not working, seems like I cant use indirect function in the User Defined function, below is the code:

    Please Login or Register  to view this content.
    I think the red part is where the problem lies, as I am trying to indirect cells referring to the value of i.

    any one can help this out?

    Thanks!
    Last edited by thisisaMJ; 01-25-2018 at 09:40 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: User Defined function question. for a sigma function

    Try changing Indirect to Range.

    PS When posting code can you please use CODE tags?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-25-2018
    Location
    sssssssssssss
    MS-Off Ver
    sssssssssssss
    Posts
    2

    Re: User Defined function question. for a sigma function

    Quote Originally Posted by Norie View Post
    Try changing Indirect to Range.

    PS When posting code can you please use CODE tags?
    Hi Norie, really thanks for the help!

    it worked!

    and I have edited my original post.

    For anyone encounters the same problem, here is the working code:

    Please Login or Register  to view this content.

+ 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. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  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. User-defined Function question
    By Chief Wiggums in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2007, 11:34 PM
  5. [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
  6. Question-user defined function
    By ppyxl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2006, 10:52 AM
  7. Replies: 0
    Last Post: 06-20-2006, 10:55 AM

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