I have an OpenOffice spreadsheet that has several categories (different kinds of meat and vegetables, for example) and for each of them, it lists the spices that go well with it (thyme, garlic, etc).
Is there a way to make a table/spreadsheet, that has the categories as one axis and the spices as the other, and marks the matches with an X
or a colored cell?
A bit like this:
I have:
Pork Garlic Parsley Chive
Beef Garlic Thyme Sage
Cauliflower Curry Thyme
Tomato Garlic Curry Sage
I would like to have:
Garlic Curry Parsley Chive Thyme Sage
Pork X X X
Beef X X X
Cauliflower X X
Tomato X X X
I really do have a list of spices and food, inspired by this Infographic. I expanded a lot upon it with other sources, and now I want to be able to see my data a bit better.
You can do something like this using the
Pivot Table
functionality (in LibreOffice Calc: MenuData
->Pivot Table
->Create...
). In Apache OpenOffice Calc, this feature is namedData Pilot
. In your use case, you will have to normalize the raw data before you can create a pivot table (AFAIK). So, if your raw data would look like this:you can easily create a pivot table looking like this:
To adapt the layout, just use the conditional formatting tools (this allows for replacing the count
1
by anX
and applying background colors). The pivot table definition simply looks as follows: