+ Reply to Thread
Results 1 to 12 of 12

How to make name list dynamic

  1. #1
    Registered User
    Join Date
    09-02-2010
    Location
    us
    MS-Off Ver
    Excel 2007
    Posts
    7

    Smile How to make name list dynamic

    Hello experts,

    i have a complicated report as attached. my struggle is to automate the name list due to the changes/updates in the feeding data query and a bunch of other criteria.

    Please help.


    thanks.
    Attached Files Attached Files
    Last edited by weiwei; 09-07-2010 at 04:05 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make name list dynamic

    There are some hefty array formulas, but I'm not a big fan of them. By simply adding a "key" column you can create a quick index of each row that fits your criteria. I used column H. You can hide this column if you wish. The formulas in I and J do their work off of that index in column H.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: How to make name list dynamic

    Welcome to the forum!

    This looks like a Pivot Table might help out, though aggregating total for projects that are less than $1000 may be a little harder. See the attached. I am using Excel 2003, so I had to back convert the file.
    Make%20List%20Dynamic(1).xls
    Bob
    Click my star if my answer helped you. Mark the thread as [SOLVED] if it has been.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make name list dynamic

    I missed the GreenSmall requirement cell. I've added that in this updated version.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-02-2010
    Location
    us
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to make name list dynamic

    Hello Jerry,

    thanks for your quick response.
    the formulas in the project name list is very cool. but there is another problem unsolved:
    i want the project spendings bigger than 1000 to be displayed, but those project spending records appear multiple times, so it is the sum of all the "AA" projects to be the total spendings i am looking at instead of the spending in each single record.

    could you advise on this one? thank you very much.

  6. #6
    Registered User
    Join Date
    09-02-2010
    Location
    us
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to make name list dynamic

    Thanks Bob, but when i feed the names into a structured report, i don't know a good way to make it dynamic and auto-update when the query changes.
    but thanks again.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make name list dynamic

    Can you demonstrate exactly what you mean? Did my second workbook get the correct project names? What totals would you expect instead? Add them in column K so I can compare.

  8. #8
    Registered User
    Join Date
    09-02-2010
    Location
    us
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to make name list dynamic

    Hello Jerry,

    please see attached file.
    this time, i changed one record for AA, made every single spending record of AA is smaller than 1000, but the total spending of AA is larger than 1000 ( it needs to be listed to the report individually but the current logic was unable to pick it up).
    Attached Files Attached Files

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make name list dynamic

    Hmm.... so you want to sum ALL the AA rows together regardless of their column F values, and for the ones that have a grand total above 1000, then display the lines that have a match in column F, too?

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make name list dynamic

    Try this in H7 and copied down...

    =IF(AND(F7=$J$6, SUMIF($C$7:$C$24, $C7, $G$7:$G$24)>1000, COUNTIF($A$7:$A7,$A7)=1), $H6+1, $H6)

  11. #11
    Registered User
    Join Date
    09-02-2010
    Location
    us
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to make name list dynamic

    Hi Jerry,

    It works!
    i used this :
    =IF(AND(F7=$L$6, SUMIF($A$7:$A$24, $A7, $G$7:$G$24)>1000, COUNTIF($A$7:$A7,$A7)=1), $I6+1, $I6)
    in cell I2,

    Thank you so much!

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make name list dynamic

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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