How to model tagged data in Excel
November 7, 2008 8:32 AM
Subscribe
What's the best way to represent tagged data in Excel? I want to be able to give an item multiple tags. I would like to use these tags to generate pivot tables. But I'd rather not have to create a new column for each tag (at least, I'd rather not have to create them manually).
This problem comes up for me very frequently. Here's trivial example:
WORD LENGTH TAGS
drum 4 toy, instrument
hawk 4 animal, bird
cat 3 animal, mammal, pet
bear 4 animal, mammal, toy
orange 6 color, food, fruit
apple 5 food, fruit
Oh, and I'm using Excel on the Mac, and a pretty old version at that. So I'd want a solution that doesn't rely on macros or scripting.
posted by alms to technology (6 comments total)
1 user marked this as a favorite
You want a a database for this, with
threetwo tables: dictionary (id int not null primary key, word varchar(40)); word_tag(word_id int not null, class_id int not null, primary key unique (word_id, class_id).For each word, you enter into dictionary the word and its tags; then you enter into word_tag the word's id and its tags' ids.
posted by orthogonality at 9:04 AM on November 7, 2008