+ Reply to Thread
Results 1 to 7 of 7

User defined function

  1. #1
    Forum Contributor
    Join Date
    10-25-2012
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    128

    User defined function

    I have tried and tried and tried but to no avail.

    How in the world do I turn the following into a user defined function"

    To determine low time
    =IF(MIN(IF($A$2:$A$69361=$A2,$C$2:$C$69361))=C2,B2,"")

    To determine high time

    =IF(MAX(IF($A$2:$A$69361=$A2,$C$2:$C$69361))=C2,B2,"")



    Thankyou !!

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: User defined function

    May I ask why you want to? It will most likely be slower.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    10-25-2012
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: User defined function

    Hello,

    Because I have to scroll down tens of thousands of columns as well as apply it to several dozen sheets. Doing this by hand takes too much time.

    Thankyou

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: User defined function

    What are you expecting to have to enter? Some of those references are relative so they would have to be input as arguments to the formula and unless the absolute ranges are exactly the same every time, you'd have to pass those as arguments too, so I don't think a UDF would really make it any easier. Also with several hundred thousand of them, your workbook will be very slow!

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: User defined function

    I don't see how UDF will help you, you will have to do exactly as you are doing with formula.
    If the lay out of yhe sheets is the same a macro could help to spread the formula around

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: User defined function

    Else

    try
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-25-2012
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: User defined function

    Hmmmmm,

    After much thought I will take your suggestion. A macro would suit me much better.

    Thankyou for your time !

+ 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] Help with user defined function
    By mbxs3 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 04-17-2014, 03:47 PM
  2. [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
  3. User defined function add-in
    By akash.add in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2010, 06:55 AM
  4. [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
  5. Replies: 0
    Last Post: 06-20-2006, 10:55 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