+ Reply to Thread
Results 1 to 12 of 12

Finding the first, then second, then third selection

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Finding the first, then second, then third selection

    I have a workbook where I'm trying to collect a group of data points based on checkbox selections that determines which groups of data are to be presented. I'm trying to show only the groups of data that are selected but I'm also trying to remove the blank sections in my results. The groups selected should be presented side by side.

    The attached spreadsheet shows the data as it'll be presented and also shows the results I'm trying to achieve. I've had various results where rows of data is repeated, or just skipped over. I can get the first two rows to work properly but after that I'm not able to find a reasonable logic to make it work properly.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Finding the first, then second, then third selection

    Hi Jim,

    Instead of using check boxes, your problem looks like more like needing slicers in a table.

    http://www.k2e.com/tech-update/tips/...ables-in-excel

    https://support.office.com/en-us/art...a-12651785d29d
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Finding the first, then second, then third selection

    I appreciate the slicer suggestion but to make it easier to provide an example spreadsheet I didn't present the whole picture...literately. Beside each set of data points, there's also a picture and the user will be scrolling through a bunch more potential options to select from, not just the 6 I gave in the example. I would prefer that the user be able to select what they see as they are scrolling through the options and not have to find a slicer to make their selection from. The image below should help to get a better sense of how this looks.

    Capture.PNG

  4. #4
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Finding the first, then second, then third selection

    What you are doing is really best suited for a database program, in which you can add each property into the data base (with all its fields) and then present end users with a form to help them query the database for what they want (or cross compare).

    Excel is really the wrong tool for this job, its not a database no matter how much some people wish it was, its meant for analyzing tabular data.

    You are very unlikely to accomplish your goal in Excel using just formulas (the forum you posted in). It would be a big undertaking to do it using macros, likely taking much more time and effort than doing the same in a database like Access and more than likely wouldnt work as well.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  5. #5
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Finding the first, then second, then third selection

    I'm not looking for a solution to my data needs, just a solution to the grouping I presented in my initial post and attachment. I was able to come close to a solution but after a couple rows into it, some of the logic fell apart but it's not outside the realm of a formula, or maybe even a pivot table to be able to do it, and doesn't require anything more than Excel to accomplish, just some additional logic which Excel can do just fine. I purposefully didn't initially share the second post with the picture just to prevent making this seem a much more difficult task. This is exactly a tabular data need.

    I very much appreciate that you would offer some advice but I don't appreciate the suggestion that it can't be done just because you can't see a way to do it. I hope that others will still consider trying...

  6. #6
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Finding the first, then second, then third selection

    Quote Originally Posted by JimDandy View Post
    I very much appreciate that you would offer some advice but I don't appreciate the suggestion that it can't be done just because you can't see a way to do it. I hope that others will still consider trying...
    Your entitled to your opinion as I am to mine, the difference is mine is a professional opinion based on years of experience and yours is based on you not liking the answer you got. I personally hope others dont waste their time as I will no longer waste mine providing any help to you. Good luck

  7. #7
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Finding the first, then second, then third selection

    It's not that I didn't like the answer I got but you didn't offer a solution. I even acknowledged you and appreciated that you would take the time to offer some advice, but instead you only suggested that a solution couldn't be had because of your "years of experience" didn't prepare you with a solution, so you deemed it necessary to take your personal frustration at a lack of a solution on me.

    Well, I've got many years of experience as well and despite all that I do know, I still know that I can always be wrong and that there's always room to learn more.

    I'm happy that you feel that there's nothing more for you to learn about the capabilities of an application you spend much time on, I just don't believe that you're the arbiter of the complete set of capabilities that Excel offers and I believe a solution exists. I'm just asking that others don't get put off by your aggression towards me and maybe someone else can come up with a solution that escapes your years of experience. Perhaps you could learn something new that you didn't know before.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,512

    Re: Finding the first, then second, then third selection

    Helper in Row 17

    in F17

    =SMALL(IF(TRANSPOSE($A$5:$A$10)=TRUE,COLUMN($A:$F),""),COLUMNS($A:A))


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy across

    in F20

    =IFERROR(INDEX($D$4:$D$45,(F$17-1)*7+1+ROWS($1:1)),"")

    copy across and down
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Finding the first, then second, then third selection

    JT, many thanks...I believe that I too came across a similar solution after getting told it couldn't be done (I hate not being able to do something). My solution also uses a helper row to create the same result, but it required some additional helper columns so your solution is much more flexible. Mine needed some extra rows at the top...

    Your solution is very much appreciated...thank you!
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,512

    Re: Finding the first, then second, then third selection

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

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,853

    Re: Finding the first, then second, then third selection

    Quote Originally Posted by Zer0Cool View Post
    Your entitled to your opinion as I am to mine, the difference is mine is a professional opinion based on years of experience and yours is based on you not liking the answer you got. I personally hope others dont waste their time as I will no longer waste mine providing any help to you. Good luck
    Common courtesy is the order of the day.You are entitled to drop out of the thread but not to denigrate the OP.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  12. #12
    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,959

    Re: Finding the first, then second, then third selection

    Seems that some opinions are right and others are wrong - good thing we are all entitled to them, they are like bad breath, we all have them sometimes

    I my years on this forum (and others), I have seem some amazing, sometimes incomprehensible, results from members.

    I guess a very valuable take-away from this, is that just because you dont think it can be done, doesnt mean that others might not be able to do it.

    Thanks for the input, John
    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. Replies: 2
    Last Post: 02-22-2013, 01:35 AM
  2. [SOLVED] finding min and max within selection criteria?
    By Ansie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2012, 10:16 PM
  3. Replies: 1
    Last Post: 07-12-2012, 12:20 PM
  4. [SOLVED] Finding the row of a combo box selection to input data into an adjacent column
    By tb13 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2012, 11:06 AM
  5. Easy problem for you, select rows after finding text string, delete selection
    By yeoman12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2009, 09:08 PM
  6. finding selection on different worksheet
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2009, 05:32 AM
  7. Finding a date & Selection.End(xlDown)
    By Clivey_UK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-26-2006, 01:40 PM
  8. [SOLVED] finding empty selection
    By Chimanrao in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2005, 11:30 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