+ Reply to Thread
Results 1 to 13 of 13

Adding names selected in a drop down list

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Shreveport, Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    8

    Adding names selected in a drop down list

    I have an excel spreadsheet I created to calculate deals for a car dealership. Each of the Salesmen are listed in a drop down and each time a purchase is made the Salesman is listed.

    What I want to do is create a factor that calculates how many times a certain Salesperson is selected. For example;

    Mike Smith sold a car
    Bill Jefferson sold a car
    Mike Smith sold a car
    Tammy White sold a car

    I would like to find a way to automatically calculate each person on a separate page.

    Mike Smith 2
    Bill Jefferson 1
    Tammy White 1

  2. #2
    Registered User
    Join Date
    01-23-2013
    Location
    Chennai, Tamil Nadu
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Adding names selected in a drop down list

    Check out the below formula, whether it works. Copy first formula and paste in the cell C1 and give ctrl + D.

    Column A Column B Column C Column D
    Mike Smith sold a car Mike Smith 2 =COUNTIF($A:$A,"*"&B1&"*")
    Bill Jefferson sold a car Bill Jefferson 1 =COUNTIF($A:$A,"*"&B2&"*")
    Mike Smith sold a car Tammy White 1 =COUNTIF($A:$A,"*"&B3&"*")
    Tammy White sold a car

  3. #3
    Registered User
    Join Date
    01-23-2013
    Location
    Chennai, Tamil Nadu
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Adding names selected in a drop down list

    Formula.PNG

    Checkout this screenshot

  4. #4
    Registered User
    Join Date
    12-12-2013
    Location
    Shreveport, Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding names selected in a drop down list

    Very close. Thank you.

    Here is my ultimate goal. I have tabs for different Agents and appointments they set. If thier appointment sells I use a drop down to select the Sales Person credited with the deal and the Source that brought the customer in. I'd like to have it tabulate how many deals each Sales Person closes for my department next to their name on my variables tab.

    I will present screenshots below.

  5. #5
    Registered User
    Join Date
    12-12-2013
    Location
    Shreveport, Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding names selected in a drop down list


  6. #6
    Registered User
    Join Date
    01-23-2013
    Location
    Chennai, Tamil Nadu
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Adding names selected in a drop down list

    can you attach these two tabs in a spreadsheet and send me.

    Also, please mention to which department you need details.

  7. #7
    Registered User
    Join Date
    01-23-2013
    Location
    Chennai, Tamil Nadu
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Adding names selected in a drop down list

    use the same countif formula next to the sales person name.

    =COUNTIF(range[select the Sales Person column in the 1st screenshot],criteria[select the sales person name in the 2nd screenshot i.e., cell #A2])

  8. #8
    Registered User
    Join Date
    12-12-2013
    Location
    Shreveport, Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding names selected in a drop down list

    Ok, I got it. Now another question. How do I add another column from a different page? IE; =COUNTIF(KAYLA!I4:I254,[FAITH A! + JOEL!, ETC] VARIABLES!A2)

    Thanks a ton for the help!

  9. #9
    Registered User
    Join Date
    01-23-2013
    Location
    Chennai, Tamil Nadu
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Adding names selected in a drop down list

    If you want the total count of the same sales person in all the tabs (KAYLA + JOEL + RANDY etc) then use below formula

    =COUNTIFS(KAYLA!I4:I254,VARIABLES!A2,FAITH A!I4:I254, VARIABLES!A2,JOEL!I4:I254,VARIABLES!A2)

    Else if you want the counts for each sales person sales from each tab separately, then insert a column in variable tab and enter the first formula referring each tab i.e., Joel, randy etc

  10. #10
    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,939

    Re: Adding names selected in a drop down list

    =COUNTIFS(KAYLA!I4:I254,VARIABLES!A2,FAITH A!I4:I254, VARIABLES!A2,JOEL!I4:I254,VARIABLES!A2)
    I have a feeling that will not work. It is looking to find cells in I that contain all 3 names, and seeing as a cell can only ever contain 1 name, it will return 0

    Try this instead...
    =SUM(COUNTIF(B1:B1000,{"Name1","name2","Name3"}))

    Rather than uploading a picture of your workbook, pPlease upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    Last edited by FDibbins; 10-13-2014 at 05:43 PM.
    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

  11. #11
    Registered User
    Join Date
    12-12-2013
    Location
    Shreveport, Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding names selected in a drop down list

    I ended up creating one for each tab / sheet and adding just the totals on the variables page. But it works! Thanks a ton for the help Sati!

  12. #12
    Registered User
    Join Date
    12-12-2013
    Location
    Shreveport, Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Adding names selected in a drop down list

    Sorry, still a newbie. But I got it fixed. I'd be impressed if you could edit my picture lol! I know better for next time.

  13. #13
    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,939

    Re: Adding names selected in a drop down list

    Perhaps if you uploaded a sample of what you are working with, we could stream-line it a bit for you?

+ 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. Replies: 2
    Last Post: 02-19-2014, 05:14 PM
  2. [SOLVED] Create a Drop down that will list all names starting with initial letter of names.
    By blue leader in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 01-16-2014, 03:58 PM
  3. Replies: 2
    Last Post: 09-03-2012, 02:56 PM
  4. [SOLVED] dont allow adding of data when drop down box has nothing selected
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2012, 12:04 PM
  5. how do i make a drop down list of selected names no repeatition
    By Mehboob Ellahi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2005, 12:35 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