+ Reply to Thread
Results 1 to 1 of 1

UDF that includes conditional arrays

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2007
    Posts
    29

    UDF that includes conditional arrays

    Hello,

    In the attached worksheet I have a rather long array formula in column V (under 'atm iv' heading). What I'd like to do is create a user defined function to replicate it, however, I get stuck where the IF statements come into play with the arrays. In plain english, for each row the function looks up the row that has the smallest absolute difference between 'undpx' (column B) and 'strike' (column I) but subject to constraint that 'und' (Column A) and 'expdate' (Column G) must be the same as the current row. It then returns the value under 'iv' (Column O) for that select row.

    Here's my start on the UDF to mimic cell V5, but as you can see it stops right where the first conditional array comes into play:
    Please Login or Register  to view this content.
    Appreciate any help or suggestions.

    -JonnyB
    Attached Files Attached Files

+ 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