+ Reply to Thread
Results 1 to 3 of 3

VBA for applying the lookup function to a formulaArray

  1. #1
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    VBA for applying the lookup function to a formulaArray

    Hey Everyone;

    Very quick question here, I received a formula that I will be using in my workbook:

    =SUM(IF($A2=data!$O$2:$O$238,IF(B$1=LOOKUP(TODAY()-data!$H$2:$H$238,{0,181,365,730,1095;"<180","181-360","1-2 Years","2-3 Years","3+ Years"}),1)))

    However, I don't know if there are other characters I need to use for the brackets as part of the Lookup array when writing it into VBA:


    Please Login or Register  to view this content.
    Produces an error.

    Any insight?
    Last edited by Miraun; 08-30-2011 at 05:00 PM.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: VBA for applying the lookup function to a formulaArray

    Hi,

    You've got one too many ) brackets near the end.
    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: VBA for applying the lookup function to a formulaArray

    ...facepalm...

    Thanks

+ 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