+ Reply to Thread
Results 1 to 8 of 8

Formula Help Needed - Problem having part of formula reference the correct cells

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Formula Help Needed - Problem having part of formula reference the correct cells

    I am using the following two formulas in Excel 2007

    =MIN($J$2:$M$2)

    =INDEX($J$1:$M$1,MATCH(Q2,J2:M2,0))

    I need to make the second formula apply to the rest of the cells in Column P but it when I try to paste it for the other cells I don't get the desired result.

    Basically I am trying to find the lowest value across a row of cells and then identify it by the header on that column. It is a least cost project for 4 suppliers. Its over 1400 rows of data.

    Thanks in advance for any help!
    Attached Files Attached Files
    Last edited by Paton27; 02-03-2013 at 05:44 PM. Reason: Adding Better Data Example

  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: Formula Help Needed - Problem having part of formula reference the correct cells

    those cell references don't match your example
    "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
    02-03-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula Help Needed - Problem having part of formula reference the correct cells

    I added a more accurate example. Thanks

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Formula Help Needed - Problem having part of formula reference the correct cells

    martin is right, your example doesn't match your post references, but in your example sheet, I am assuming you want the carrier name in column G, and the actual MIN in column H (which should match the carrier in col. G). Try this:

    In G2 and filled down: =INDEX($A$1:$D$1,1,MATCH(H2,$A2:$D2,0))
    In H2 and filled down: =MIN($A2:$D2)

    - Moo

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Formula Help Needed - Problem having part of formula reference the correct cells

    Your formulas work fine on my machine, are you sure you have automatic calculation turned on?

    - Moo

  6. #6
    Registered User
    Join Date
    02-03-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula Help Needed - Problem having part of formula reference the correct cells

    Auto calculation is on. When I paste that formula in the rest the cells in Column P it returns all of them with Carrier A...

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Formula Help Needed - Problem having part of formula reference the correct cells

    After filling the formula down, try hitting F9, and see if the values change. Whenever I open your workbook, Excel switches to Manual Calculation mode.

    - Moo

  8. #8
    Registered User
    Join Date
    02-03-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula Help Needed - Problem having part of formula reference the correct cells

    ok I'll try that. will be away from my computer until later tonight.

    That was it! Thanks again for the help
    Last edited by Paton27; 02-04-2013 at 10:48 AM. Reason: Solved

+ 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