Eriktoinfinity
New Member
- Joined
- Apr 1, 2014
- Messages
- 6
I need to find a specific value in a column and then sum a specific range in that row belonging to the value, but the column location changes whenever someone inputs their data for their specific project, even though the value doesn't. Is this possible in a formula or would that require a macro?
Example: my value is the category number and I need to find category 5 (row 6 for store 1) and sum up the sales in the 3rd, 4th and 5th columns of that row. The location of category 5 changes to row 5 for store 2.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Store[/TD]
[TD]Category[/TD]
[TD]Jan Sales[/TD]
[TD]Feb Sales[/TD]
[TD]Mar Sales[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]3000[/TD]
[TD]3000[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]6[/TD]
[TD]6000[/TD]
[TD]6000[/TD]
[TD]6000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store[/TD]
[TD]Category[/TD]
[TD]Jan Sales[/TD]
[TD]Feb Sales[/TD]
[TD]Mar Sales[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]7[/TD]
[TD]7000[/TD]
[TD]7000[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]8[/TD]
[TD]8000[/TD]
[TD]8000[/TD]
[TD]8000[/TD]
[/TR]
</tbody>[/TABLE]
Example: my value is the category number and I need to find category 5 (row 6 for store 1) and sum up the sales in the 3rd, 4th and 5th columns of that row. The location of category 5 changes to row 5 for store 2.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Store[/TD]
[TD]Category[/TD]
[TD]Jan Sales[/TD]
[TD]Feb Sales[/TD]
[TD]Mar Sales[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]3000[/TD]
[TD]3000[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]6[/TD]
[TD]6000[/TD]
[TD]6000[/TD]
[TD]6000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Store[/TD]
[TD]Category[/TD]
[TD]Jan Sales[/TD]
[TD]Feb Sales[/TD]
[TD]Mar Sales[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]7[/TD]
[TD]7000[/TD]
[TD]7000[/TD]
[TD]7000[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]8[/TD]
[TD]8000[/TD]
[TD]8000[/TD]
[TD]8000[/TD]
[/TR]
</tbody>[/TABLE]