+ Reply to Thread
Results 1 to 14 of 14

Use UDF Function in worksheet

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Use UDF Function in worksheet

    Hello everyone
    I have this UDF Function
    Please Login or Register  to view this content.
    How can I use it in worksheet?
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Use UDF Function in worksheet

    Hi Yasser,

    Here's one way, but it fills with "#N/A" for the empty cells:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Use UDF Function in worksheet

    Thanks Mr. xladept
    i got the results horizontally ..
    Is there a way to avoid the error?

    Is it possble to use this UDF function directly in the sheet?

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

    Re: Use UDF Function in worksheet

    Why are you asking similar questions?
    Please Login or Register  to view this content.
    =IFERROR(GetUnique($A$1:$A$10,ROW(A1)),"")
    Copy down

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

    Re: Use UDF Function in worksheet

    Not the most efficient, but cheap & cheerful:

    Please Login or Register  to view this content.
    Row\Col
    A
    B
    C
    D
    1
    8
    8 C1:C10: {=GetUnique(A1:A20)}
    2
    2
    2
    3
    8
    10
    4
    10
    5
    5
    10
    3
    6
    5
    9
    7
    3
    1
    8
    2
    4
    9
    9
    7
    10
    1
    6
    11
    4
    12
    7
    13
    1
    14
    10
    15
    6
    16
    1
    17
    2
    18
    8
    19
    8
    20
    3
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Use UDF Function in worksheet

    Thanks mr. Jindon
    I know my questions are similar .. I need to learn about using arrays ..that's my problem now
    And my question about the udf function I posted in first post

    As for your udf function it's great but as for blank cells it gives zero value .. I need to omit the zero and skip blanks

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Use UDF Function in worksheet

    Mr. shg thanks for solving the problem of transpose .. now what about the error #NA and blanks?
    I have values and blank cells in Column A

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

    Re: Use UDF Function in worksheet

    Please Login or Register  to view this content.
    Last edited by shg; 05-24-2015 at 07:15 PM.

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

    Re: Use UDF Function in worksheet

    Please Login or Register  to view this content.
    Last edited by jindon; 05-24-2015 at 07:17 PM.

  10. #10
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Use UDF Function in worksheet

    Mr. shg
    Blank cells problem is skipped well .. But I still get #NA errors even after using "Iferror" function
    Thanks for this great modifications
    Last edited by YasserKhalil; 05-24-2015 at 07:30 PM.

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Use UDF Function in worksheet

    Thanks a lot Mr. jindon for this masterpiece
    i will not forget this special UDF function that you devised

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Use UDF Function in worksheet

    Hi Yasser,

    This eliminates those "#N/A's" for the original question

    Please Login or Register  to view this content.
    Last edited by xladept; 05-25-2015 at 03:54 PM.

  13. #13
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Use UDF Function in worksheet

    Hello,

    Here's another one.
    Please Login or Register  to view this content.
    Last edited by HSV; 05-25-2015 at 05:17 PM.
    Kind regards, Harry.

  14. #14
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Use UDF Function in worksheet

    Great and perfect Mr. HSV
    Amd the most perfect thing is that it enables me to sort the values ..
    Thanks a lot for this gift
    I like all of you guys

+ 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] Get worksheet name of cell using a custom function, rather than active worksheet?
    By Pedsdude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2014, 04:45 AM
  2. [SOLVED] How to make the Worksheet search function look at the next worksheet if user click no
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2014, 09:10 PM
  3. Turning a function from serving current worksheet to specific worksheet
    By ahmadmasri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-15-2013, 10:15 PM
  4. Using date format and left function with worksheet name to hide worksheet
    By rgullett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2012, 05:16 PM
  5. Replies: 3
    Last Post: 02-21-2010, 12:48 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