+ Reply to Thread
Results 1 to 8 of 8

Index with double match

  1. #1
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Index with double match

    Good morning,

    im struggling with, i think what has to be some kind of index with a double match formula.
    I have attached an example.

    I have two worksheets.
    Worksheet A is my overview. I will need to put a formula there to get the "Hours" for 1,2, and 3 out of worksheet B, based on the weeknumber in the the orange cell which can be changed to the right week number.
    Worksheet B is my database of hours for each week for 1, 2 and 3. In this case worksheet A has weeknumber 2 selected so the 10 should be shown in worksheet A.

    So somehow i need to match the client, the 1,2 or 3 and the weeknumber.
    Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index with double match

    Given nature of result (data type) I would be inclined to use SUMIFS approach; using your sample:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    the alternative INDEX/MATCH approach you suggested would be:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    obviously you will need to adapt the above suggestions to reflect fact your source data is, in reality, on a different sheet (unlike your sample).

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index with double match

    D6=IFERROR(INDEX(OFFSET(INDEX($M$6:$R$15,,MATCH($A$2,$M$3:$R$3,0)),,D$5-1),MATCH($A6,$L$6:$L$15,0)),"")
    Please Login or Register  to view this content.
    Try this copy and paste across across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Index with double match

    Thank you both.
    I tried the first one. the sumifs one. It seems to work so thats great!!

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index with double match

    The above formula will works without Row5 of worksheetB
    1 1 1 2 2 2

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index with double match

    @samba_ravi,

    as the INDEX/MATCH approach in post #2 illustrates {itself devoid of dependency on row 5}, you don't need to use Volatile OFFSET -- I'm not sure why you would be advocating this unnecessary, and persistent, calculation overhead?

    an outer IFERROR can be appended as required.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index with double match

    Quote Originally Posted by XLent View Post
    @samba_ravi,

    as the INDEX/MATCH approach in post #2 illustrates {itself devoid of dependency on row 5}, you don't need to use Volatile OFFSET -- I'm not sure why you would be advocating this unnecessary, and persistent, calculation overhead?

    an outer IFERROR can be appended as required.
    My post no 5 is just for information to OP, I am also against Volatile Function unless it is needed

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Index with double match

    In D6 and copied other ranges.

    =IFERROR(1/(1/(INDEX($M$6:$R$15,MATCH($A6,$L$6:$L$15,0),MATCH($A$2,$M$3:$R$3,0)+MATCH(D$5,$M$5:$O$5,0)-1))),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Double Index and Match?? Formula Help!
    By pearson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2016, 11:41 AM
  2. Index with Double Match
    By rajuganapathy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2015, 02:50 AM
  3. Index with double match
    By Gianniz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2015, 06:23 AM
  4. [SOLVED] Double match and index
    By TimothyS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2014, 12:42 PM
  5. Double layered INDEX/MATCH?
    By kuni-d in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-09-2014, 11:01 AM
  6. Double lookup or index and match?
    By dan_manchester in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2013, 09:01 AM
  7. Double VLookup or INDEX MATCH or something else?
    By carlwin in forum Excel General
    Replies: 5
    Last Post: 06-20-2010, 08:00 PM

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