+ Reply to Thread
Results 1 to 5 of 5

how to solve the problem with dynamic criteria list

  1. #1
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    509

    how to solve the problem with dynamic criteria list

    Dear all

    I may have post the same question many times but everything the answer has further push me for a better solution.

    thanks for all Excel guru

    See below :
    price.PNG

    the criteria is listed in a table - G5:G8

    If the unit in B column show any items as list in G column, the price state the same , otherwise , it will be divided by the no. of participants
    i.e is D8:E8

    Thanks in advance
    Eric
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: how to solve the problem with dynamic criteria list

    Hi Eric,

    This looks like you need to learn about Dynamic Named Ranges and then how to use the Advanced Filter. Find the attached where I've set up the problem on Sheet 2. You might also need to do a DNR for the result data and add some formula at the bottom of it. I've also recorded a very short macro that will use the DNRs to recalculate after you change the yellow cells.

    See if this helps..

    AdvFilter using DNRs.xlsm

    There might be an easier way to do this problem using Tables and Slicers. A Pivot table and slicers might also do what you need but would look a little different that what you show.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    509

    Re: how to solve the problem with dynamic criteria list

    Dear Marvin

    Thanks and appreciated

    Your way is very sophisticated. We can not use Marco in the workplace.. (funny ah)

    The idea is right.

    if the Name= the Name in the Yellow Zone. Their amount stay the same.
    if their Name is not list in the Yeloow Zone, their amount need to be "divided"bythe participants. ( as we are making a shared quotation)

    For the Dynamic Range, i can first convert the text into Table, and then Name them. It will automatic become Dynamic.
    However, it does not work for verticial, i.e the header column. In a table, it can expand but the name range is not grow as the same as the horizonal rows

    Thanks and i remember i saw the method somewhere, i will keep searching

    Appreciated

    I have further attached the excel file for your comment
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,522

    Re: how to solve the problem with dynamic criteria list

    On Sheet 2 select the two cell highlighted in yellow (D3:D4) and move them up to D2:D3
    Modify the formula in H3 to read, then copy down to H5: =IF(COUNTIFS(CriteriaDNR,F3),G3,G3/$H$2)
    Test by changing Name 25, which should now be in cell D2, to Name 20.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: how to solve the problem with dynamic criteria list

    In D9 then dragged across.

    =IF(COUNTIF($G$3:$G$5,$B9)>0,$C9,$C9/D$8)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Problem with dynamic dropdown list
    By franz89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2017, 10:21 AM
  2. dynamic validation list under criteria
    By Petros Georgilas in forum Excel General
    Replies: 12
    Last Post: 11-17-2015, 03:01 PM
  3. validation for dynamic list with criteria
    By nikenis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2013, 10:22 AM
  4. How to use Solver & Dynamic Programming to solve this problem?
    By brooklyn12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2013, 03:45 PM
  5. How to solve same date problem in "Summary List"?
    By peri1224 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2012, 12:25 PM
  6. Create Dynamic List with 3 criteria
    By smoggy in forum Excel General
    Replies: 4
    Last Post: 05-24-2011, 01:33 PM
  7. Dynamic Drop Down List...with Criteria
    By TimE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2008, 11:43 AM

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