+ Reply to Thread
Results 1 to 4 of 4

Calculate cheapest price based on two criteria’s from a selection of cells in spreadsheet

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Northamptonshire
    MS-Off Ver
    Excel 2010
    Posts
    54

    Calculate cheapest price based on two criteria’s from a selection of cells in spreadsheet

    Hi,

    I'm not sure if someone can help but I think I am looking for a formula so I can calculate the cheapest price in a specific range of cells and highlight the supplier from the spreadsheet. The formula will need to look at two criterias in order to achieve this. I think this is quite complicated but I am not so good with formulas so perhaps it is not as bad as I think it is. As I don't know where to begin I have attached an example spreadsheet which will hopefully explain better what I am looking for. It maybe that a formula is not sufficient but I hope that someone can advise and help me find a solution.

    Many thanks for your help
    Kaz
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Calculate cheapest price based on two criteria’s from a selection of cells in spreadsh

    Hello Kaz,

    Try these.

    P10; with CTRL+SHIFT+ENTER not just ENTER

    =MIN(IF(B5:B23=L5,INDEX(F5:J23,0,MATCH(M5,F4:J4,0))))

    P11; with CTRL+SHIFT+ENTER, not just ENTER

    =INDEX(C5:C23,MATCH(1,IF(INDEX(F5:J23,0,MATCH(M5,F4:J4,0))=P10,IF(B5:B23=L5,1)),0))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Northamptonshire
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Calculate cheapest price based on two criteria’s from a selection of cells in spreadsh

    Hi Haseeb,

    Unfortunately the calculation is not finding the correct price and does not hightlight the supplier code. Would you mind taking another look incase I have done something wrong. I have attached the spreadsheet again with your formulas so you can see what I am getting - sorry.

    Any help is greatly appreciated.
    Kaz
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-25-2012
    Location
    Northamptonshire
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Calculate cheapest price based on two criteria’s from a selection of cells in spreadsh

    Hi Haseeb,

    Sorry, I realised my mistake, I was not entering with CTRL+SHIFT+ENTER as you clearly pointed out. This is fantastic, it is so good, thank you.

    You are very kind helping me, I really appreciate it. I am just so impressed and amazed

    Thank you ever so much
    Kaz

+ 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