+ Reply to Thread
Results 1 to 3 of 3

Array formula help!

  1. #1
    Registered User
    Join Date
    04-08-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    6

    Array formula help!

    Can anyone tell me why the first of the following functions works when used in an array formula and the second does not?

    Very simple test:

    Please Login or Register  to view this content.
    when i use it in an array formula using {} brackets such as:
    {=test(A1:A20)}
    it works

    BUT, when I try to make the following work I keep getting #VALUE! error:

    Please Login or Register  to view this content.
    I know the function is working, but cannot get it to work as part of an array formula.
    I have been trying the following but keeps giving me an error.

    {=+ArrayCapFloor(A1:A20,33,107)}

    Am I missing something????

    Thanks help.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Array formula help!

    Try

    Public Function ArrayCapFloor(myarray As Variant, floor As Long, cap As Long) as Variant

  3. #3
    Registered User
    Join Date
    04-08-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Array formula help!

    Hi Marcol,

    Actually I had tried that already and sadly doesn't work. I'm really not sure what the missing part of this puzzle is....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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