+ Reply to Thread
Results 1 to 3 of 3

Dynamic Formula based on two vertical criteria and one horizontal

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2003
    Posts
    10

    Dynamic Formula based on two vertical criteria and one horizontal

    Hello,

    I'm trying to create a table that will automatically update depending on which country is entered in cell B1, which economic indicator is entered in A4, and which year is in row 3. I have attached a example spreadsheet with how my data is formulated on sheet 2 and what I'm looking for on sheet 1. I have two criteria that search vertically through column A and B on sheet 2, but I want to add another criteria for a vertical

    I can currently Index Match with Country and economic indicator, but I hard set my years, so for B4 I hard code to return number from 2011 on my data. My index match formula would be =INDEX(Sheet2!F:F,MATCH(1,($B$1=Sheet2!A:A)*($A$4=Sheet2!B:B),0))


    I'm trying to make the Sheet2!F:F reference dynamic to recognize the years in Row 3 in Sheet 1 and match them to the years in Row 1 in Sheet 2.

    Forum Example 1.xls

    Thank You. Please let me know if I need further explanation.

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

    Re: Dynamic Formula based on two vertical criteria and one horizontal

    hi there. try this in B4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    same like what you have done, CTRL + SHIFT + ENTER. to handle errors in Excel 2003, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if you have Excel 2007, then:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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
    12-06-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Dynamic Formula based on two vertical criteria and one horizontal

    I used the first formula and it worked. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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