+ Reply to Thread
Results 1 to 20 of 20

Input combinations for single output

  1. #1
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Input combinations for single output

    Hello all,

    I am hoping the Excel wizards of this forum can help me make something to make my life (and that of my colleagues!) mush easier.

    I have had an idea about an Excel 'one-stop-shop' file that seems unfortunately beyond my skill-set and knowledge to create.

    We currently work with several hundred 'categories' that we may assign to different people in a day. Each of these categories contain dozens of 'assignments'. We will often need to create combine several sets of categories to achieve a very specific mix, I will call this combination 'profiles'. Once this 'profile' is created, we need to follow a specific naming convention. There are also further variables such as should this 'profile' be focused on fruit only/veg only/both fruit and veg. And should it include only assignments with 'apple' in the name, or assignments with 'apple' and 'orange' etc... (there would be three fruits to choose from).
    (I really hope that made sense! Please let me know if clarification is needed!)

    So my idea is that we could use a file, and on one tab we have a list of all existing categories and their relevant assignments(is each assigment a fruit or veg in one columne, what type of fruit in another etc). On a different tab in the file I would like a row with several cells containing 'drop-down' menus that must be selected. And once all the drop-down's are selected, the file will return an output list of all assignments necessary, and in the order all these assignments should be listed in the new 'profile'.

    An example of a possible output - I need to create a new 'profile' to match a nutritional need.

    I open the file and select that I would like this nutritional profile to contain both 'fruit' and 'veg' and 'dairy'. Since fruit and veg will always be a higher priority than dairy, the output returns a list of assignments that rank then as such. Within these rankings, it also recognises that I would prefer to have organic food before non-organic food, so the list begins to look like this

    1. Organic Broccoli
    1. Organic Apple
    2. Non-organic Broccoli
    2. Non-organic Apple
    3. Organic Dairy
    4. Non-organic Dairy

    And finally, based on the combination of categories I have in this 'profile', it should return a specific naming convention like: KEVYWEVZ_ORG_VEG_FRUIT_DAIRY

    I realise this ask may not be particularly well explained but any assistance you can offer (even if it is just pointing me in the direction of what functions/tools to explore) would be massively appreciated.

    Kindest regards,
    KW

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    Just so that you understand the nature of a help forum, we don't take on entire projects and realise them for you from start to finish (in other words, we refine and you do the donkey work). So, with this in mind, please show us what you have achieved so far.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    Apologies Ali, I do not mean to have this project completed for me at all, but I am simply so stuck on where to even start in achieving this I wanted to give people the full context of what I was trying to achieve

    I hope the attachment has worked

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    Thanks - just making sure the ground rules are clear, as we have had a few chancers in the past. I am sure you understand.

    Bear with us - somebody will offer some advice soon.

  5. #5
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    Bump for visibility

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    Administrative Note:

    We don't expect you to bump threads more than once in 24 hours - it has been only a few hours since you posted. Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    I have looked at your sample file and I haven't a clue what you are trying to do - sorry.

  8. #8
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    Apologies Ali, this is a busy forum and I do not have an expected response time but was just trying to ensure the post was not lost amongst all the queries. I am of course happy to abide by forum rules/etiquette

    I am struggling to outline the need without divulging any sensitive data

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    I think it's more your explanation.

    Can you just say a few words about what is meant to be happening on each sheet - just simple statements. I'm finding your opening post too verbose and I'm losing my way with it - sorry. You know what you want, but I can't fathom it - yet!

  10. #10
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    Will do my best here

    On the sheet I provided, row 16 of the 'Input' tab has cells highlighted in yellow, each with a dropdown menu. In this these dropdowns are a few options. When an option is selected for each of these yellow cells, that is the 'combination' I am looking for.

    I would then like the Output tab to return the assignments according to the combination I selected in the Input tab

    The key point is that some categories will always be a higher priority than others (the example I gave in the sheet was that organic produce will always be a higher priority than non-organic produce)

    The data tab is included so that the categories outlined in the 'Input' tab can be matched with the correct assignment/fruit. In the actual data sets I will be using this data tab will be thousands of rows

    Hopefully this might clear it up just a little bit. If it does I will edit my first and second post to this so as to make keep people's attention! :D

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    Questions:

    1. How do you get DESERT (sic - a bit dry, maybe) from snack?
    2. In what way is the output code related to the list of foodstuffs? Is that orange list meant to be generated automatically? If so, how?

  12. #12
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    Thanks for your efforts here Ali, they truly are very much appreciated!

    1.) A foodstuff can be categorised as a desert or a snack (example, cheese is a desert, but yoghurt is a snack), but it cannot be both. Both a desert and a snack can be requested in the combination but any one food type(/assignment) cannot be both.
    2.) The cells highlighted in orange on the OUTPUT tab is what I hope would be the result of the combinations selected in the INPUT tab. X options selected in the INPUT tab result in Y combination in the OUTPUT tab

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    KevyWevz - before we go any further, you really need to correct the spelling error. I don't think sand is very good for anyone ...

    Just about to read and digest (no pun intended!) your latest post.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    Quote Originally Posted by KevyWevz View Post
    1.) A foodstuff can be categorised as a desert or a snack (example, cheese is a desert, but yoghurt is a snack), but it cannot be both. Both a desert and a snack can be requested in the combination but any one food type(/assignment) cannot be both.
    So what is the rationale for it changing from SNACK in the drop-down selector to DESSERT (see how I spelt that?) in the code?

    Quote Originally Posted by KevyWevz View Post
    2.) The cells highlighted in orange on the OUTPUT tab is what I hope would be the result of the combinations selected in the INPUT tab. X options selected in the INPUT tab result in Y combination in the OUTPUT tab
    How have you decided on that particular selection?

    Excel can't do these things for you unless it understands your logic. At the moment, I don't understand your logic, so I can't explain to you how to tell Excel what to do.

  15. #15
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    Quote Originally Posted by AliGW View Post
    So what is the rationale for it changing from SNACK in the drop-down selector to DESSERT (see how I spelt that?) in the code?
    Point taken!

    Quote Originally Posted by AliGW View Post
    How have you decided on that particular selection?
    The order is as below

    Priority Assignment
    1 Org-Apple
    1 Org-Orange
    1 Org-Banana
    1 Org-Kiwi
    1 Org-Blueberry
    2 Org-Yoghurt
    3 Apple
    3 Orange
    3 Banana
    3 Kiwi
    3 Blueberry
    4 Yoghurt

    Here, anything that is organic (with identifier in the DATA tab and selected in the INPUT tab) will take priority over anything non-organic. Concurrently, the fruit family will always be a higher priority than the dairy family. Hence the above order

    (hoping it format correctly in this post)
    Attached Files Attached Files

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    Sorry, but you haven't really answered my question. I do NOT understand the logic that has caused you to create that particular list.

    As I said, it's obvious to you, but not at all to me.

  17. #17
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    So there will always be a hierarchy or priority for all categories.

    In this list, Fruit/Veg has a quicker 'Use Before' date than Dairy(for argument's sake). So if Fruit and/or Veg is selected then it must always be consumed first, hence it's higher priority than Dairy produce. Further still, Organic produce has an even shorter shelf-life than 'regular' produce so must be consumed even quicker.

    So if the selection includes fruit and dairy with organic produce;

    - Organic fruit produce will be highest priority
    - Next priority will be 'regular' fruit produce
    - Next will be organic dairy produce (as this is shorter shelf life than regular dairy, but still better than regular fruit)
    - Lastly would be regular dairy

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    OK, but you stiull haven't actually answered my question. How did you arrive at the list that appears in the orange area? Explain how you chose these items from the data loist.

  19. #19
    Registered User
    Join Date
    11-03-2014
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    43

    Re: Input combinations for single output

    The data in orange is the expected output of the selections of the yellow cells in the INPUT tab

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Input combinations for single output

    Yes, I know this, but WHY? Explain why those particular items need to appear on that list. I'm sorry, you just are not ansering the questions I'm asking.

    I'm going to step away now in the hope that someone else can work out the logic you aren't sharing with us. Sorry - I've run out of time. Good luck!

+ 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. How to get combinations from string input
    By levak_bob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2018, 11:44 AM
  2. Output a set of cells based on a single input cell w/o macros
    By chubby127 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-31-2017, 03:24 AM
  3. how to input all combinations for 6 dice
    By demonuga in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 08-21-2015, 05:55 PM
  4. [SOLVED] Transferring of input from input cell to output cells
    By bebongtheshark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2014, 01:28 AM
  5. [SOLVED] Paste variable output (SQL Output) into a single cell.
    By fblaze in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 06:24 AM
  6. Output combinations to 100% with parameters
    By braco22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2012, 04:57 PM
  7. [SOLVED] four input single output logic problem
    By Hammer_757 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-11-2012, 02:02 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