+ Reply to Thread
Results 1 to 9 of 9

2 + 1 dimentional search

  1. #1
    Registered User
    Join Date
    04-17-2007
    Posts
    30

    2 + 1 dimentional search

    If I have a 2 + 1 dimentional table to search, how do I use the Excel formula for it?

    Table

    Name Age Jan Feb Mar Apr May Jun
    John 10 100 200 300 400 500 600
    Jack 20 100 200 300 400 500 600
    Jake 30 100 200 300 400 500 600
    Jane 40 100 200 300 400 500 600
    June 50 100 200 300 400 500 600

    Results

    Seach for Jane and 50 and Apr = 500.

    I need the formula, index does not work well, sumproduct can't work on the row search...

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Do you mean Jane and 50 or should it be June and 50?
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    04-17-2007
    Posts
    30

    oops

    yah it's Jane 40.

  4. #4
    Registered User
    Join Date
    04-17-2007
    Posts
    30

    Help?

    Is there anyone who can help with this?

  5. #5
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    what exactly do you want to do? Find the total for June when jane and 40 are in columns a and b?
    not a professional, just trying to assist.....

  6. #6
    Registered User
    Join Date
    04-17-2007
    Posts
    30

    I need this

    I need to find the formula in the Result page that return a value from 2 columns + 1 row search.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    this is an array formaula so enter with control+shift+enter

    =OFFSET(Database!$A$1,MATCH(1,($C$1=Database!$A$2:$A$42)*($C$2=Database!$B2:$B42),0),MATCH($C$3,Database!$B$1:$N$1,0))

  8. #8
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    actually Bryan's solution should work as well

    =sumproduct(($c$1=database!$a$2:$a$42)*($c$2=database!$b$2:$b$42)*($c$3=database!$c$1:$n$1)*(database!$c$2:$n$42))

    this adds everyting in c2:n42 for which the critera for columns a and b are met, as well as the criteria for the column heading - which should be a unique solution, but if your data showed 2 rows having the criteria for example, the results would add

  9. #9
    Registered User
    Join Date
    04-17-2007
    Posts
    30

    Thanks :)

    Works wonder.

+ 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