+ Reply to Thread
Results 1 to 3 of 3

display cell value based on value in a range

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    18

    display cell value based on value in a range

    Hello,

    I am trying to figure out a formula that will display the value of a cell based on the value in a range of cells. For example, I have 4 cities with sales by month. I want to display the top 2 cities each month below the range of values for those months.

    Month1 Month2 Month3 Month4
    Milwaukee 5 4 5 6
    Chicago 3 6 3 3
    Tempe 2 7 2 7
    New York 1 8 6 2

    Top City Milwaukee New York New York Tempe
    2nd Top City Chicago Tempe Milwaukee Milwaukee

    The attached file show the higlighted cells that I would like as formulas
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: display cell value based on value in a range

    In B7

    =INDEX($A$2:$A$5,MATCH(LARGE(B$2:B$5,1),B$2:B$5,0))

    in B8

    =INDEX($A$2:$A$5,MATCH(LARGE(B$2:B$5,2),B$2:B$5,0))

    and copy across.
    Martin

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: display cell value based on value in a range

    Thanks. That worked!

+ 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. Display Text Based on Values in Cell Range
    By kythom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2013, 02:25 PM
  2. Display Value based on Pre-determined Range
    By amonty78 in forum Excel General
    Replies: 8
    Last Post: 01-18-2012, 12:07 AM
  3. Display value in corresponding cell based on a range between two columns?
    By keithk78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2010, 11:26 AM
  4. Can name range display value based on the input of specific cell?
    By rusoo7 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-24-2010, 11:17 AM
  5. Display range based on cell value
    By d1zz13 in forum Excel General
    Replies: 3
    Last Post: 03-02-2005, 01:50 PM

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