+ Reply to Thread
Results 1 to 8 of 8

function that will aggregate selected data?

  1. #1
    Registered User
    Join Date
    03-08-2007
    Posts
    10

    function that will aggregate selected data?

    This forum has helped me a lot in the past. I tried searching and could not find an answer on this, and I fully admit that it could be because I'm using the wrong search terms. I will describe what I want to do as best I can.

    I want to have a list of characteristics which would lie in rows. For example:
    Has 4 legs.
    Has 2 eyes.
    Has fur.
    Has a tail.
    Has fins.


    Then I want to be able to select just the rows that apply to my "subject." Like this:

    x Has 4 legs.
    Has 2 eyes.
    x Has fur.
    x Has a tail.
    Has fins.

    In my mind, I would organize the characteristics in column B so that column A would be available to put an "x" next to the characteristics that apply to my subject.


    Finally--and this is where the formula comes in--I need a formula that will check the rows where I have placed an "x" and aggregate the corresponding characteristics into A SINGLE STRING. I feel that is the difference for what I'm trying to do and VLOOKUP. So, the formula would produce this string from my example:

    Has 4 legs. Has fur. Has a tail.


    Any ideas?
    Last edited by Eugene020202; 11-29-2014 at 05:06 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: is there a function for this?

    Can you build a sample book that contains this said data and then the final result (Where you would want it) then someone here can take a look from there
    -If you think you are done, Start over - ELeGault

  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: is there a function for this?

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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
    03-08-2007
    Posts
    10

    Re: function that will aggregate selected data?

    Here is the best I could mock up a book. All it's missing is the formula in cell A1 which would return the desired result.


    example.xlsx

  5. #5
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: function that will aggregate selected data?

    example.xlsx

    I would probably go with something like what is attached. Using Check boxes out of your developer ribbon since you plan on making this a check list. We could do other things as well such as add a leading "Helper" column that assigns a variable that we could then utilize to do a strung together Vlookup - you do have options but it comes down to how big is this data set (As it looks now this is going to power an RPG) which means there are a ton of lists... so scalability will be limited to your ability to recreate possible solutions.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: function that will aggregate selected data?

    Row\Col
    A
    B
    C
    1
    Has 4 legs. Has fur. Has a tail. B1: {=CatIf(A2:A6<>"", B2:B6, " ")}
    2
    x
    Has 4 legs.
    3
    Has 2 eyes.
    4
    x
    Has fur.
    5
    x
    Has a tail.
    6
    Has fins.


    Please Login or Register  to view this content.
    Two notes:

    1. Unmerge A1:B1 before entering the formula.

    2. The formula MUST be confirmed with Ctrl+Shift+Enter instead of just Enter.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    03-08-2007
    Posts
    10

    Re: function that will aggregate selected data?

    Thank you for the replies. I am doing something wrong with the =Catif function. I have unmerged those cells and am entering the formula with ctrl+shift+enter in cell B1. I get the result #NAME.

    I only pasted the formula within {} those brackets and those brackets reappear after entering with ctrl+shift+enter.

    Your thoughts?

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: function that will aggregate selected data?

    Copy the code from the post. In Excel, do Alt+F11 to open the VBE, Insert > Module, paste the code in the window that opens, then do Alt+Q to return to Excel

+ 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: 13
    Last Post: 04-08-2014, 05:46 AM
  2. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  3. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. Replies: 2
    Last Post: 03-20-2009, 01:29 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