haleysmithc
New Member
- Joined
- Mar 7, 2019
- Messages
- 2
I am trying to get a total of units sold for a particular UPC. The units are not summed up before they reach me, so vlookup does not work here--first I need to get the total of the units, and then I need to input that total. I usually use a pivot table for this, but recently I've run into issues and started to wonder if it was possible to do this with a formula.
This is where I am trying to total and gather the info:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]UPC #[/TD]
[TD="align: center"]Actual Units Sold[/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936856934[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936858136[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936859119[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936856972[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936858990[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936859300[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
But the info from the table where I am pulling from looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]UPC #[/TD]
[TD="align: center"]Actual Units Sold[/TD]
[/TR]
[TR]
[TD]786936856934
[/TD]
[TD]506[/TD]
[/TR]
[TR]
[TD]786936856934
[/TD]
[TD]37[/TD]
[/TR]
[TR]
[TD]786936856934
[/TD]
[TD]189[/TD]
[/TR]
[TR]
[TD]786936858136
[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]786936858136
[/TD]
[TD]806[/TD]
[/TR]
[TR]
[TD]786936859119[/TD]
[TD]224[/TD]
[/TR]
</tbody>[/TABLE]
Etc, etc... (the current table I'm working with has about ~4500 rows)
I assume some form of array would accomplish this, but after researching it I am not sure I am able to find the one I need. Any help is appreciated!
This is where I am trying to total and gather the info:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]UPC #[/TD]
[TD="align: center"]Actual Units Sold[/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936856934[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936858136[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936859119[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936856972[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936858990[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl4200, width: 92, align: right"]786936859300[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
But the info from the table where I am pulling from looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]UPC #[/TD]
[TD="align: center"]Actual Units Sold[/TD]
[/TR]
[TR]
[TD]786936856934
[/TD]
[TD]506[/TD]
[/TR]
[TR]
[TD]786936856934
[/TD]
[TD]37[/TD]
[/TR]
[TR]
[TD]786936856934
[/TD]
[TD]189[/TD]
[/TR]
[TR]
[TD]786936858136
[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]786936858136
[/TD]
[TD]806[/TD]
[/TR]
[TR]
[TD]786936859119[/TD]
[TD]224[/TD]
[/TR]
</tbody>[/TABLE]
Etc, etc... (the current table I'm working with has about ~4500 rows)
I assume some form of array would accomplish this, but after researching it I am not sure I am able to find the one I need. Any help is appreciated!