Okay so I need some help here.
[TABLE="width: 300"]
<tbody>[TR]
[TD]Apple[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Drink[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Chicken[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Oil[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
I want to be able to either:
1. Convert certain words into numbers. E.g "apple", "orange" and "banana" into a 1. "Chicken" into 2, "Oil" into 3, and "Drink" into 4. So it will look like this:
[TABLE="width: 300"]
<tbody>[TR]
[TD]1[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]4
[/TD]
[/TR]
</tbody>[/TABLE]
OR
2. I want to sum each of the categories. For example: (Apple + Orange + Banana = 28) and (Chicken = 3) and (Oil = 4) and (Drink = 4).
Things to know:
The data that I need this to work on contains over 1000 rows - and has around 100-150 categories. Depending on the data that I load, not all categories are always present.
Things I have tried:
I have tried the sumif function. However the problem that I have noticed is that the formula needs a specific range to work with - and I can't guarantee that the range will always be the same. The bigger problem is that the sumif function doesn't seem to allow more than 3 categories at a time.
[TABLE="width: 300"]
<tbody>[TR]
[TD]Apple[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Drink[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Chicken[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Oil[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
I want to be able to either:
1. Convert certain words into numbers. E.g "apple", "orange" and "banana" into a 1. "Chicken" into 2, "Oil" into 3, and "Drink" into 4. So it will look like this:
[TABLE="width: 300"]
<tbody>[TR]
[TD]1[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]4
[/TD]
[/TR]
</tbody>[/TABLE]
OR
2. I want to sum each of the categories. For example: (Apple + Orange + Banana = 28) and (Chicken = 3) and (Oil = 4) and (Drink = 4).
Things to know:
The data that I need this to work on contains over 1000 rows - and has around 100-150 categories. Depending on the data that I load, not all categories are always present.
Things I have tried:
I have tried the sumif function. However the problem that I have noticed is that the formula needs a specific range to work with - and I can't guarantee that the range will always be the same. The bigger problem is that the sumif function doesn't seem to allow more than 3 categories at a time.
Last edited: