+ Reply to Thread
Results 1 to 3 of 3

Quick lookup (SUMPRODUCT OR INDEX)

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    61

    Quick lookup (SUMPRODUCT OR INDEX)

    I am struggling to come up with a formula for the attached file with 2 sets of criteria (zone and weight). The zone is straightforward 1,2,3. However, the weight brackets are such that I would like it to pull the same rate as the table or the next higher one. For example a 0.1 weight would pull the 0.125 rate as there isn't a 0.1 weight rate and the next higher rate is under 0.125 weight.

    In cell i2 I tried sumproduct((b6:d28*(g2=b1:d1)*(h2=<a5:a28)) and a similar index/match formula but no luck.

    Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Quick lookup (SUMPRODUCT OR INDEX)

    i like your example. it's clear what you want. you can use this array formula:
    =INDEX($B$5:$D$28,MATCH(TRUE,($A$5:$A$28>=H2),0),MATCH(G2,$B$3:$D$3,0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    you can also rearrange your table by descending order, then this formula will do:
    =INDEX($B$5:$D$28,MATCH(H2,$A$5:$A$28,-1),MATCH(G2,$B$3:$D$3,0))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-21-2011
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Quick lookup (SUMPRODUCT OR INDEX)

    Thank you! That array formula worked like a charm!

+ 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] Index Match-Sumproduct- Lookup-type formula?
    By eyoonbbj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-23-2014, 11:45 AM
  2. [SOLVED] Index Match-Sumproduct- Lookup-type formula?
    By eyoonbbj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2014, 11:15 AM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. Replies: 9
    Last Post: 03-08-2014, 09:54 PM
  5. [SOLVED] Range lookup for x and y - sumproduct? index?
    By outatime1.21 in forum Excel General
    Replies: 5
    Last Post: 06-07-2012, 06:41 PM
  6. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  7. Quick Index Query
    By Dbeethekidd in forum Excel General
    Replies: 6
    Last Post: 09-05-2009, 06:28 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