+ Reply to Thread
Results 1 to 3 of 3

Dynamically Update CountIf Formula Based On Nested List

  1. #1
    Registered User
    Join Date
    12-31-2014
    Location
    US
    MS-Off Ver
    Microsoft Office Home and Student 2013
    Posts
    7

    Dynamically Update CountIf Formula Based On Nested List

    Hi. I have a workbook that multiple sheets, each with it's own portfolio. I have a main page that contains the charts that correlate to each portfolio. On the main page, I have a Portfolio dropdown list, which brings up the respective stock symbols that are on each Portfolio page. Currently, I have a CountIf formula that works only when the selected Portfolio is List 1. I would have to change the CountIf formula if I change the Portfolio to List 2 or List 3. I would like the CountIf to automatically update to the matching Portfolio selection.

    I have included a sample file.
    Attached Files Attached Files

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Dynamically Update CountIf Formula Based On Nested List

    You could do this with INDIRECT

    =COUNTIF(INDIRECT(A2&"!A2:A4896"), B2)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    12-31-2014
    Location
    US
    MS-Off Ver
    Microsoft Office Home and Student 2013
    Posts
    7

    Re: Dynamically Update CountIf Formula Based On Nested List

    Hi,

    So, I got the CountIf formula to work, but now the problem I'm having is that the coding in my table is not updating based on my Portfolio selection. I thought about adding the Indirect command to my data in the table, but I don't know where I would insert that code.
    Attached Files Attached Files
    Last edited by SamuraiSam83; 01-13-2015 at 11:47 PM. Reason: There's another problem.

+ 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. Update formula in cells based on list selection
    By XLNB in forum Excel General
    Replies: 1
    Last Post: 01-05-2014, 03:17 PM
  2. [SOLVED] Is it possible to dynamically update a charts data series, based on another cell
    By missydanni in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-14-2013, 11:29 AM
  3. Replies: 0
    Last Post: 02-16-2013, 01:39 PM
  4. How to dynamically update links based on data (not Cells) in PowerPoint via Excel?
    By pats2kdynasty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2012, 01:10 PM
  5. [SOLVED] Dynamically Update List
    By Joe L in forum Excel General
    Replies: 1
    Last Post: 03-06-2006, 06:20 PM

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