+ Reply to Thread
Results 1 to 3 of 3

dynamic array for matching value in another column

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    India
    MS-Off Ver
    Excel 2003/2010
    Posts
    38

    dynamic array for matching value in another column

    Hi,

    Can someone help me to find a way to get a dynamic range/array based on a criteria in another column?

    Let's say in column A, the range A1:A10 has "Coffee", A11:A20 has "Tea" and in column B, I have their different rates. I need to right a formula to calculate the MIN and MAX value. The challenge I am facing is the the ranges are not fixed as the "Coffee" or "Tea" can have more than 10 instances in column A.

    Is there any way to decide the dynamic range for "Coffee" or "Tea" in column A or their rates in column B?

    Thanks.

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: dynamic array for matching value in another column

    Maybe these (to be entered using Ctrl+Shift+Enter, not just enter):

    =MAX(IF(A1:A100="Coffee",B1:B100))
    =MIN(IF(A1:A100="Coffee",B1:B100))

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: dynamic array for matching value in another column

    Try:

    =AGGREGATE(14,6,B1:B100/(A1:A100="Coffee"),1)

    Or:

    =MAX(OFFSET($B$1,MATCH("Coffee",A:A,0)-1,,COUNTIF(A:A,"Coffee"),1))

    Normal Enter.

+ 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. Replies: 5
    Last Post: 11-24-2015, 08:15 AM
  2. [SOLVED] Help with index and matching to a dynamic array
    By tpieken333 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 11-03-2015, 06:14 PM
  3. Array based on matching Row & Column
    By Katch22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2015, 07:36 AM
  4. Replies: 2
    Last Post: 09-12-2014, 03:05 AM
  5. [SOLVED] Dynamic counting of matching text cells in column
    By Scoopdoug in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2014, 10:23 PM
  6. Dynamic matching cell in table and returning column
    By geoffffffff in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-25-2013, 10:47 AM
  7. Excel 2007 : dynamic column and array
    By APPLEBEE in forum Excel General
    Replies: 4
    Last Post: 05-25-2011, 04:23 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