+ Reply to Thread
Results 1 to 3 of 3

How to write an array formula with vlookup

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    sc
    MS-Off Ver
    Excel 2007
    Posts
    32

    How to write an array formula with vlookup

    Hello All,

    Would anyone be able to help me write the following formula as an array formula. I can't figure it out with vlookup:

    =AV$5/$BH$19*$F$46/((IFERROR(VLOOKUP($D$25,DL!$AE$2:$AG$16,3)*$G$25,0)+IFERROR(VLOOKUP($D$26,DL!$AE$2:$AG$16,3)*$G$26,0)+IFERROR(VLOOKUP($D$27,DL!$AE$2:$AG$16,3)*$G$27,0)+IFERROR(VLOOKUP($D$28,DL!$AE$2:$AG$16,3)*$G$28,0)+IFERROR(VLOOKUP($D$29,DL!$AE$2:$AG$16,3)*$G$29,0)+IFERROR(VLOOKUP($D$30,DL!$AE$2:$AG$16,3)*$G$30,0)+IFERROR(VLOOKUP($D$31,DL!$AE$2:$AG$16,3)*$G$31,0)+IFERROR(VLOOKUP($D$32,DL!$AE$2:$AG$16,3)*$G$32,0)+IFERROR(VLOOKUP($D$33,DL!$AE$2:$AG$16,3)*$G$33,0)+IFERROR(VLOOKUP($D$34,DL!$AE$2:$AG$16,3)*$G$34,0)+IFERROR(VLOOKUP($D$35,DL!AC$2:$AE$16,3)*$G$35,0)+IFERROR(VLOOKUP($D$36,DL!$AE$2:$AG$16,3)*$G$36,0)+IFERROR(VLOOKUP($D$37,DL!$AE$2:$AG$16,3)*$G$37,0)+IFERROR(VLOOKUP($D$38,DL!$AE$2:$AG$16,3)*$G$38,0)+IFERROR(VLOOKUP($D$39,DL!$AE$2:$AG$16,3)*$G$39,0)+IFERROR(VLOOKUP($D$40,DL!$AE$2:$AG$16,3)*$G$40,0)+IFERROR(VLOOKUP($D$41,DL!$AE$2:$AG$16,3)*$G$41,0)+IFERROR(VLOOKUP($D$42,DL!$AE$2:$AG$16,3)*$G$42,0)+IFERROR(VLOOKUP($D$43,DL!$AE$2:$AG$16,3)*$G$43,0)+IFERROR(VLOOKUP($D$44,DL!$AE$2:$AG$16,3)*$G$44,0))*AV$2)

    Thanks in advance

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to write an array formula with vlookup

    Array Formula - Requires CTRL+SHIFT+ENTER - Untested

    =AV$5/$BH$19*$F$46/(SUM(IFERROR(SUMIF(DL!$AE$2:$AE$16,$D$25:$D$44,DL!$AG$2:$AG$16)*$G$25:$G$44,0))*AV$2)

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-25-2013
    Location
    sc
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How to write an array formula with vlookup

    Had to correct a few typos, but it works!

    Correct formula is:

    =AU$5/$BH$19*$F$46/(SUM(IFERROR(SUMIF(DL!$AF$2:$AF$16,$D$25:$D$44,DL!$AH$2:$AH$16)*$G$25:$G$44,0))*AU$2)

    Thanks Sixthsense

+ 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. Replies: 33
    Last Post: 02-14-2013, 01:51 AM
  2. Macro to write Vlookup formula with variable column index
    By Ashali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2012, 09:40 PM
  3. write column vector of 2D array into 1 D array
    By twd000 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-22-2010, 06:01 PM
  4. Need Help with Array Formula using Vlookup and MAX
    By jllogan111 in forum Excel General
    Replies: 3
    Last Post: 11-07-2008, 10:06 PM
  5. Clueless as to how to write VLOOKUP formula
    By moodwalker in forum Excel General
    Replies: 3
    Last Post: 06-06-2005, 08:25 AM

Tags for this Thread

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