+ Reply to Thread
Results 1 to 2 of 2

My list items have a number that will change when the item is selected, how to update?

  1. #1
    Registered User
    Join Date
    06-12-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1

    My list items have a number that will change when the item is selected, how to update?

    Hello. My list contains names and a number next to the person's name that updates based on a count. How can I make the cells that have that name selected update automatically to reflect the count number?

    D10 reads: ="Jane ("& E10 &")"

    E10 Reads: =COUNTIF($E$5:$E$7,"*Jane*")

    and E5:E7 are data validation lists.

    The problem I have is that D10 and E10 update as expected but I want a way to have E5:E7 update their count as well without having to choose the item from the list twice.

    excel help.png

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,968

    Re: My list items have a number that will change when the item is selected, how to update?

    DV operates in the same way as if you had manually typed in the contents - there is no underlying formula there.

    So, based on that, if cells contain data that was selected from DV, there is no way to have then update automatically, the way you want.

    If you need them to update, why even select them in the 1st place? Why not just have a formula to do the count instead? Or, if that is not an option, get the name (only) via DV, and in an adjacent cell, reference that DV along with a countif based on that DV
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] How to update selected item in a listbox using a combo box?
    By reddwarf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2017, 03:40 PM
  2. [SOLVED] How to get row number of selected item of list box with duplicates?
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2017, 07:37 AM
  3. Replies: 6
    Last Post: 07-11-2016, 11:33 AM
  4. Listbox, Need to change number of items in List (not the items)
    By Kalithro in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2013, 09:23 PM
  5. [SOLVED] Macro to Update a Cell Based on Number of Items Selected in Pivot Slicer
    By MBeedle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2013, 01:47 PM
  6. Replies: 3
    Last Post: 04-02-2013, 06:02 PM
  7. Replies: 2
    Last Post: 12-06-2012, 05:52 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