+ Reply to Thread
Results 1 to 11 of 11

Udf paramarray

  1. #1
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,398

    Udf paramarray

    I want to be understand use paramarray
    This is my problem
    In (a1:a20) contain date,string,numeric
    I want use udf paramarray to sum.count of date,string,numeric
    Please Login or Register  to view this content.
    While i am use function in b1 and drag to d1
    In b1=.count (date),c1=.count(string) and d1=.count(numeric)

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Udf paramarray

    Hi,

    What makes you think Paramarrays are relevant here?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,398

    Re: Udf paramarray

    Hi xlnitwit forgive me,i dont know how to use paramarray
    I want you explain me,give me example thankyou

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

    Re: Udf paramarray

    Besides parramarray, you can't evaluate date using Value2.

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Udf paramarray

    A Paramarray is used when you don't know how many parameters will be passed. Think of the function SUMIFS which can have a variable number of criteria pairs passed to it after the range to sum.

    It sounds to me as though you want to return an array, not pass one.

  6. #6
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,398

    Re: Udf paramarray

    Thank you jindon
    Xlnitwit
    Give me sample problem

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

    Re: Udf paramarray

    Quote Originally Posted by daboho View Post
    In (a1:a20) contain date,string,numeric
    .
    .

    While i am use function in b1 and drag to d1
    In b1=.count (date),c1=.count(string) and d1=.count(numeric)
    B1
    =IFERROR(DataTypes($A1:$A20,COLUMN(A1)),"")
    fill right

    Please Login or Register  to view this content.

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Udf paramarray

    Here is a minimal version of a SumIfs function
    Please Login or Register  to view this content.
    which you can call with varying numbers of criteria, such as
    =MySumIfs($C$1:$C$15,$A$1:$A$15,"Item1")
    or
    =MySumIfs($C$1:$C$15,$A$1:$A$15,"Item1",$B$1:$B$15,"test1")
    like the worksheet function.

  9. #9
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,398

    Re: Udf paramarray

    Thankyou jindon and xlnitwit

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Udf paramarray

    You're welcome. Please remember to mark the thread Solved using the Thread Tools link at the top of the page.

  11. #11
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,398

    Re: Udf paramarray

    Xlnitwit my handphone not have fasilitas solved bellow my picture

+ 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. How to define a Paramarray( ) with two arguments
    By Debraj Roy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2015, 08:24 PM
  2. VBA Function ParamArray parameter drop-down
    By onidarbe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2013, 03:05 PM
  3. optimise code -> subroutine to function (paramarray??!)
    By tozjerimiah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2011, 10:00 AM
  4. passing ParamArray to ParamArray
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2009, 11:47 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