+ Reply to Thread
Results 1 to 9 of 9

Find value based on three criterias

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    Stockholm, Sweden
    MS-Off Ver
    Professional Plus 2010
    Posts
    28

    Find value based on three criterias

    I have tried to find the correct solution both here in the forum and on various sites, but I canīt wrap my head around how to solve this.
    Attached you find an easy example of what Iīm trying to achieve, but in reality the file is of course much larger.

    • In column A I have the first criteria, in this example a fruit.
    • On row 1 is the second criteria, in this example Cost price
    • On row 2 is the third criteria, in this example month

    So how would a formula look that answers the question “What was the Cost price of Pears in March” based on the values in A8:A10?

    I have experimented both with an array INDEX/MATCH and a VLOOKUP with multiple MATCH, but canīt get it to work.

    Very thankful for all input, thank you!
    Attached Files Attached Files
    Last edited by AliGW; 07-09-2019 at 08:24 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Find value based on three criterias

    Try this:

    =SUMPRODUCT(($B$1:$K$1=A8)*($B$2:$K$2=A9)*($A$3:$A$5=A10),$B$3:$K$5)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Find value based on three criterias

    Hi Busk,

    Use this formula, hope this will solve your purpose

    =INDEX($A$1:$K$5,MATCH($A$17,$A$1:$A$5,0),MATCH(A15&A16,A1:K1&A2:K2,0))
    Thanks
    Nisha Dhawan


    If you like my answer please click on * Add Reputation
    "If you can dream it, You can do it "

  4. #4
    Registered User
    Join Date
    06-11-2015
    Location
    Stockholm, Sweden
    MS-Off Ver
    Professional Plus 2010
    Posts
    28

    Re: Find value based on three criterias

    Wow, thanks!

    Very neat forumula I never used before.

    I send huge appriciation your way

  5. #5
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Find value based on three criterias

    Thanks for the appreciation!

    If you liked the solution then you can add reputation by just clicking on "Add Reputation".

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Find value based on three criterias

    Busk:

    1. Do NOT post-edit your posts removing information that may be useful to someone else with a similar issue later. I have reinstated your opening post - leave it alone, please.
    2. I have just seen your rep - thank you.
    Last edited by AliGW; 07-09-2019 at 08:31 AM.

  7. #7
    Registered User
    Join Date
    06-11-2015
    Location
    Stockholm, Sweden
    MS-Off Ver
    Professional Plus 2010
    Posts
    28

    Re: Find value based on three criterias

    Quote Originally Posted by AliGW View Post
    Busk - two things:

    1. Do NOT post-edit your posts removing information that may be useful to someone else with a similar issue later. I have reinstated your opening post - leave it alone, please.
    2. I gave you a working formula in post #2. For some reason, you have chosen to completely ignore it. Please acknowledge ALL help that has been offered to you.
    Dear AliGW,

    My mistake. I used the "reply" button instead of "Reply with Quote" when I read your answer. I opened the thread after your (very quick) answer, tried it in Excel, then replied without updating the browser. Therefor I hadnīt even seen the response from Nisha Dhawan when I added my comment, so even if that formula might work as well as yours, it was your formula i responded to. I tried to "fix" my problem by giving Reputation to the correct answer.
    Neither did I inted to remove any information from my original post, so thank you for correcting my mistake.

    Itīs now very clear that Iīm not used to this forum and I will take my time to make things right the next time.

    Sorry again, i really didnīt mean any disrespect.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Find value based on three criterias

    Sorry - I have already amended my post. It looked as if you were responding to Nisha, and had ignored my suggestion. I realise now this was not the case. However, the reverse is true: you should thank ALL respondents to your thread, so Nisha is due some credit, too. Reputation points are nice, but saying 'thank you' in your thread matters more, in my view.

  9. #9
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Find value based on three criterias

    I Agreed with you!

+ 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. Find sum of difference in a single column based on criterias.
    By ankitpsaraogi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2019, 04:14 AM
  2. Find value based off 2 Criterias
    By spunner87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2018, 12:36 PM
  3. [SOLVED] Find a value based on multiple criterias
    By Charli53 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2017, 05:09 AM
  4. [SOLVED] Macro Find set criterias to a colomn of number, delete the rows that don't meet criterias
    By TAMMY32 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-03-2017, 04:09 PM
  5. [SOLVED] Find the first and second corresponding value based on criterias
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2015, 12:26 PM
  6. find top 10 values based on multiple criterias
    By saurabhlotankar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2014, 01:47 AM
  7. Replies: 4
    Last Post: 09-08-2010, 10:57 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