Hi,
I'm trying to create a formula that will allow me use some exported data to create a simple summary of it, which will be used for other calculations.
Our system exports data that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Item1[/TD]
[TD][/TD]
[TD][/TD]
[TD]
[/TD]
[TD]I want Item1 SUM here[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot1[/TD]
[TD][/TD]
[TD]1000[/TD]
[TD]I want to drag the same formula all the way down, not modify a new one for each item, because the items will not be in the same place every time[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot2[/TD]
[TD][/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Sum:[/TD]
[TD]1500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Item2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]I want Item2 SUM here[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot1[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot2[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot3[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Sum:[/TD]
[TD]900[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And so on...
I need to reference the item (I plan to use vlookup to get the sum for each item later, and I'm trying to create an intermediate step to get the sum for each item in the same row...maybe there is an easier way?)
Anyway, ultimately what I need is data that looks like this so I can use it elsewhere in the workbook.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Item1[/TD]
[TD]1500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Item2[/TD]
[TD]900[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I started with something like =IF($B2<>"",OFFSET($B2,COUNTA(C2:C4)+1,3),"")
I think I can use offset or index somehow, but I'm not sure how to because when I use COUNTA to find the amount of rows under an item, I don't know how to make sure I don't run into the data set for the next item (or make sure I capture all the data in a block), because the data sets can be of a different size every time (Not just Item1 being 2 rows and item 2 being 3 rows, but each item may vary daily: Item1 may have 3 lot numbers (rows) one day and 7 rows the next).
I'm sure this is doable, but I'm not sure how. Thanks for your help!
I'm trying to create a formula that will allow me use some exported data to create a simple summary of it, which will be used for other calculations.
Our system exports data that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Item1[/TD]
[TD][/TD]
[TD][/TD]
[TD]
[/TD]
[TD]I want Item1 SUM here[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot1[/TD]
[TD][/TD]
[TD]1000[/TD]
[TD]I want to drag the same formula all the way down, not modify a new one for each item, because the items will not be in the same place every time[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot2[/TD]
[TD][/TD]
[TD]500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Sum:[/TD]
[TD]1500[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Item2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]I want Item2 SUM here[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot1[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot2[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Lot3[/TD]
[TD][/TD]
[TD]300[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Sum:[/TD]
[TD]900[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And so on...
I need to reference the item (I plan to use vlookup to get the sum for each item later, and I'm trying to create an intermediate step to get the sum for each item in the same row...maybe there is an easier way?)
Anyway, ultimately what I need is data that looks like this so I can use it elsewhere in the workbook.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Item1[/TD]
[TD]1500[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Item2[/TD]
[TD]900[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I started with something like =IF($B2<>"",OFFSET($B2,COUNTA(C2:C4)+1,3),"")
I think I can use offset or index somehow, but I'm not sure how to because when I use COUNTA to find the amount of rows under an item, I don't know how to make sure I don't run into the data set for the next item (or make sure I capture all the data in a block), because the data sets can be of a different size every time (Not just Item1 being 2 rows and item 2 being 3 rows, but each item may vary daily: Item1 may have 3 lot numbers (rows) one day and 7 rows the next).
I'm sure this is doable, but I'm not sure how. Thanks for your help!