+ Reply to Thread
Results 1 to 3 of 3

Can I use the offset function in combination with the min function?

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Can I use the offset function in combination with the min function?

    Hi there! I have a list of stores and a list of prices. I want Excel to tell me which store has the lowest price.

    Here's how my spreadsheet looks:
    The first row has a list of stores. The second row has the price of an item at those stores. Like this:



    Cell A1: Albertson's B1: Safeway C1: Target
    Cell A2: $11 B2: $14 C2: $13

    What I want is a formula to tell me that Albertson's has the lowest price on the item.
    I know how to use the min function, but I don't want the formula to tell me the lowest price, I want it to tell me the store that corresponds to the lowest price (in the adjacent cell)

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Can I use the offset function in combination with the min function?

    =index(a1:c1,match(min(a2:c2),a2:c2,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-16-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Can I use the offset function in combination with the min function?

    THANK YOU MARTIN!!
    I had been trying to find a way to do this all morning.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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