+ Reply to Thread
Results 1 to 4 of 4

multiplying an array by a VLOOKUP value

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    2

    multiplying an array by a VLOOKUP value

    I'm a little rusty on arrays. I'd like cell H2 to look at cells $C2:$F2, and for each cell, multiply by the value that the name in cells $C$1:$F$1 represents, looking up based on the values in the Compensation tab, then sum the products.

    Thanks in advance for your help!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: multiplying an array by a VLOOKUP value

    Hi
    h2 cell =SUM(C2:F2*TRANSPOSE(Compensation!$B$2:$B$5)) Ctrl+Shift+enter

    Sorting of of column names have to be same with Names in Compensation worksheet
    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: multiplying an array by a VLOOKUP value

    That didn't work for me, but this did:

    =SUMPRODUCT(C2:F2,TRANSPOSE(Compensation!$B$2:$B$5))

    Thanks!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: multiplying an array by a VLOOKUP value

    If you can sort the data on the Compensation sheet by column A in ascending order then you can use this formula:

    =SUMPRODUCT(LOOKUP(C$1:F$1,Compensation!A$2:B$5)*C2:F2)

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] VLOOKUP combined with multiplying a fixed cell
    By Bax in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2012, 11:18 AM
  2. Replies: 1
    Last Post: 04-19-2012, 04:37 AM
  3. Replies: 2
    Last Post: 06-01-2011, 07:43 AM
  4. Replies: 2
    Last Post: 02-23-2011, 07:24 AM
  5. Easiest one-cell formula for multiplying array elements
    By kayard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2008, 03: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