calvinc123
New Member
- Joined
- Sep 24, 2015
- Messages
- 9
All,
I am completely stumped. I would rather not use VBA or Macros for this problem, but understand if that will make things a lot easier. This may be a simple formula, but I have been struggling to figure this one out. Here's the information.
I am trying to auto create a table based on the value selected from a data validation list.
Input: You select from three options in the data validation: Basket 1, 2 or 3. Each of which provide a different allocation of fruit and vegetables.
Output: A table that will provide the exact allocation of the fruit or vegetable WITHOUT returning a "False or 0" for the vegetables or fruits that are NOT included in the basket. Each time you select the different basket the output table regenerates with the right amount of rows based on how many items are in each basket.
Here is the table of data:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Kind[/TD]
[TD]Type[/TD]
[TD]Basket 1[/TD]
[TD]Basket 2[/TD]
[TD]Basket 3[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Fruit[/TD]
[TD]50%[/TD]
[TD]0%[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Fruit[/TD]
[TD]0%[/TD]
[TD]20%[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]Tomato[/TD]
[TD]Vegetable [/TD]
[TD]0%[/TD]
[TD]10%[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]Cherry[/TD]
[TD]Fruit[/TD]
[TD]25%[/TD]
[TD]20%[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]Celery[/TD]
[TD]Vegetable[/TD]
[TD]25%[/TD]
[TD]25%[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]Grape[/TD]
[TD]Fruit[/TD]
[TD]0%[/TD]
[TD]25%[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]Pumpkin[/TD]
[TD]Vegetable[/TD]
[TD]0%[/TD]
[TD]0%[/TD]
[TD]20%[/TD]
[/TR]
</tbody>[/TABLE]
After the output page is pulling ONLY information that is NOT equal to zero I am then planning on doing two pie charts one to show the allocation of each Kind & the other to show Type in the basket that is selected in the Input page dropdown.
Hopefully this makes some sense. Let me know if you have any questions!
C
I am completely stumped. I would rather not use VBA or Macros for this problem, but understand if that will make things a lot easier. This may be a simple formula, but I have been struggling to figure this one out. Here's the information.
I am trying to auto create a table based on the value selected from a data validation list.
Input: You select from three options in the data validation: Basket 1, 2 or 3. Each of which provide a different allocation of fruit and vegetables.
Output: A table that will provide the exact allocation of the fruit or vegetable WITHOUT returning a "False or 0" for the vegetables or fruits that are NOT included in the basket. Each time you select the different basket the output table regenerates with the right amount of rows based on how many items are in each basket.
Here is the table of data:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Kind[/TD]
[TD]Type[/TD]
[TD]Basket 1[/TD]
[TD]Basket 2[/TD]
[TD]Basket 3[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Fruit[/TD]
[TD]50%[/TD]
[TD]0%[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Fruit[/TD]
[TD]0%[/TD]
[TD]20%[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]Tomato[/TD]
[TD]Vegetable [/TD]
[TD]0%[/TD]
[TD]10%[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]Cherry[/TD]
[TD]Fruit[/TD]
[TD]25%[/TD]
[TD]20%[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]Celery[/TD]
[TD]Vegetable[/TD]
[TD]25%[/TD]
[TD]25%[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]Grape[/TD]
[TD]Fruit[/TD]
[TD]0%[/TD]
[TD]25%[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]Pumpkin[/TD]
[TD]Vegetable[/TD]
[TD]0%[/TD]
[TD]0%[/TD]
[TD]20%[/TD]
[/TR]
</tbody>[/TABLE]
After the output page is pulling ONLY information that is NOT equal to zero I am then planning on doing two pie charts one to show the allocation of each Kind & the other to show Type in the basket that is selected in the Input page dropdown.
Hopefully this makes some sense. Let me know if you have any questions!
C