+ Reply to Thread
Results 1 to 12 of 12

Count Text within Multiple Selection on a Drop Down List

  1. #1
    Registered User
    Join Date
    08-08-2019
    Location
    Scotland
    MS-Off Ver
    2019
    Posts
    51

    Count Text within Multiple Selection on a Drop Down List

    Hello,

    I have used a macro to ensure I can select multiple options from a drop down list, which is fantastic and works.

    However the drop down list are names, and I need to count how the names.

    I am not sure how to do this, pleas see attached spreadsheet for additional info.

    Any help would be greatly appreciated!

    Thanks

    Jodie
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count Text within Multiple Selection on a Drop Down List

    In sheet3 B7:

    =COUNTIFS(Master!$H$5:$H$2000,"*"&A7&"*",Master!$J$5:$J$2000,"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-08-2019
    Location
    Scotland
    MS-Off Ver
    2019
    Posts
    51

    Re: Count Text within Multiple Selection on a Drop Down List

    I was close just not close enough, thanks so much Glenn

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count Text within Multiple Selection on a Drop Down List

    Execl is a curse... so pernicketty about syntax.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

  5. #5
    Registered User
    Join Date
    08-08-2019
    Location
    Scotland
    MS-Off Ver
    2019
    Posts
    51

    Re: Count Text within Multiple Selection on a Drop Down List

    so sorry Glenn it worked yesterday and I have come in this morning to sort the spreadsheet and its not working.. I know its probably something silly but could you have a look for me please?
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count Text within Multiple Selection on a Drop Down List

    Nope. It was ME being silly, not looking closely enough at your data.

    Use:

    =IF(A11="","",COUNTIF(Master!$I$5:$I$2000,"*"&A11&"*"))

    copied down to the total row.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-08-2019
    Location
    Scotland
    MS-Off Ver
    2019
    Posts
    51

    Re: Count Text within Multiple Selection on a Drop Down List

    Hi thanks that certainly pulled through numbers for the names on the list, but I was looking to only have ones pulled that did not have dates in column K? So sorry for this!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count Text within Multiple Selection on a Drop Down List

    In your sample ALL odf the date columns are completed. Hence no results are returned. That's why I removed that bit. Delete a few dates here and there.

    However, it's still better to use

    =IF(XX="","",formula)

    all the way down the boxes. Done for the yellow shaded cells, only.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-08-2019
    Location
    Scotland
    MS-Off Ver
    2019
    Posts
    51

    Re: Count Text within Multiple Selection on a Drop Down List

    Hi,

    I took one of the dates out and kept one of the dates in and its returning names

    e,g, on attached it should technically only pull through Siobhan but its pulling Kate Ward as well.

    My brain is officially fried! haha!

    Thanks

    J
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count Text within Multiple Selection on a Drop Down List

    It NEEDS to be fried... You used the wrong version of the file. Close ALL others and use this one ONLY. It has a NEW and DISTINCTIVE name.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-08-2019
    Location
    Scotland
    MS-Off Ver
    2019
    Posts
    51

    Re: Count Text within Multiple Selection on a Drop Down List

    ok, clear!

    Thank you so much I am away for a strong gin...

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Count Text within Multiple Selection on a Drop Down List

    You have my permission!

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

+ 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. Looking to make drop down list selection generate text box.
    By Lam22 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-19-2018, 02:29 PM
  2. [SOLVED] Multiple Selection Drop Down List
    By Terror9 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-15-2018, 03:57 AM
  3. [SOLVED] Need help having a drop down list change multiple cells depending on the list selection
    By jennis7242 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-12-2017, 01:20 PM
  4. [SOLVED] list box and text box --drop down and selection problem
    By catchnanan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-18-2014, 01:25 PM
  5. Make same selection for multiple drop down list and clear all for all dropdown list
    By salomip13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 01:34 PM
  6. [SOLVED] Drop Down List Selection Changes the Text Below
    By EXCELlent2 in forum Excel General
    Replies: 10
    Last Post: 04-13-2012, 12:26 PM
  7. Multiple selection from drop down list
    By Dinny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2011, 11:12 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