+ Reply to Thread
Results 1 to 2 of 2

Lookups Using Multiple Arrays

Hybrid View

  1. #1
    Registered User
    Join Date
    07-29-2010
    Location
    Mexico City, Mexico
    MS-Off Ver
    Excel 2007
    Posts
    16

    Lookups Using Multiple Arrays

    In the example that I've attached, I'm trying to look up prices for my "Final Data Set" from two different arrays of data, "Array 1" and "Array 2".

    You'll notice that there are some repeating part #'s with different prices in the 2 arrays.

    My question: How can I insert either an average or highest value for a given part # into the "Final Data Set" from the Arrays the simplest way?


    BONUS: In my data set there already are some prices filled in (for example in cell C6 there'd be the number 30). How do I average this in with the newly "lookeduped" data or simple not have it overwritten when I copy the formula down the column. NOTE: the real data set is huge - 10's thousands of rows.
    Attached Files Attached Files
    Last edited by jcy1011; 08-09-2010 at 10:39 PM. Reason: extra question

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookups Using Multiple Arrays

    If your arrays are actually listed side by side like your sample (or you can get them that way), then to get Average try:

    =SUMIF($G$2:$L$8,B2,$H$2:$M$8)/COUNTIF($G$2:$L$8,B2)

    or XL2007, perhaps

    =AVERAGEIF($G$2:$L$8,B2,$H$2:$M$8)


    copied down

    and to get Minimum try:

    =MIN(IF($G$2:$L$8=B2,$H$2:$M$8))

    This formula needs to be confirmed with CTRL+SHIFT+ENTER not just ENTER so that { } brackets appear around it.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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