+ Reply to Thread
Results 1 to 4 of 4

Count inputs

  1. #1
    Registered User
    Join Date
    05-29-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Count inputs

    Is there a way to count how many different inputs exist in a column?

    And is there a way to have excel output all the different variables?

    So if I have a row that says Dog, cat, dog, horse, horse, cat, How do I get it to tell me that there is 3 variables, and then output Dog, cat, horse to tell me what the 3 variables are.
    Last edited by jammerculture; 07-09-2015 at 01:25 PM.

  2. #2
    Registered User
    Join Date
    05-29-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Count inputs

    And is there a way to have excel output all the different variables?

    So if I have a row that says Dog, cat, dog, horse, horse, cat, How do I get it to tell me that there is 3 variables, and then output Dog, cat, horse to tell me what the 3 variables are.

  3. #3
    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
    53,048

    Re: Count inputs

    See if thios will get you started...
    A
    B
    2
    aa aa
    3
    bb bb
    4
    cc cc
    5
    aa dd
    6
    dd ee
    7
    bb
    8
    dd
    9
    ee

    B2=IFERROR(INDEX($A$2:$A$9,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$2:$A$9),0,0),0)),"")
    copied down
    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

  4. #4
    Registered User
    Join Date
    05-29-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Count inputs

    Thanks for the reply

    Can you walk me through this a little. I have tried to modify it for my actual use and it is not working as I expected.

+ 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. Where can I see the the different inputs for formatconditions?
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2015, 07:23 PM
  2. Macro to join text inputs with slight variation provide a count of its repetition
    By eemrun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2014, 11:08 PM
  3. multiple inputs
    By DrJC in forum Excel General
    Replies: 1
    Last Post: 08-23-2012, 03:03 PM
  4. VBA Function inputs
    By BFlick11 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2010, 05:34 PM
  5. Multiple inputs
    By toby1 in forum Excel General
    Replies: 5
    Last Post: 11-05-2008, 10:21 AM

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