#1. I do not know VBA or how to use it, so there's that.
#2. I think this might be a pivot table thing, but its been over a decade since I've done those and quite frankly it was rather hit and miss.
SO here we are....
On Sheet1, currently has just over 5,500 records (and growing).
Column A has a list of Categories (20)
Columns B-F are data columns
Column G has a unit price for each record.
On Sheet2, list each of the 20 categories (ColumnA), and the number of occurances per category (ColumnB).
What I want to do is in ColumnC I'd like the total price spent on each category. I just can't figure out how to do this, unsure of how to configure a formula for this purpose.
For instance, categories Apples, Bananas, Cherries
Apples, 324
Bananas, 1,217
Cherries, 3,075
Column C pulling the total of the prices related to each category from Sheet1.
Sheet 2, Columns A, B, C
Category Total Units Total Price
Apples (324) ($125.48)
Bananas (1,217) ($3,053.97)
Cherries (3,075) ($982.36)
I can easily figure out the total units, but pulling out the price from Column G on Sheet1 by adding the prices by line item for each category befuddles me. Now sheet1 is sorted this way and that for different purposes so, it would have to maintain the calculation.
I'm sorry I'm so limited in my knowledge regarding Pivot Tables and/or VBA because I bet that's what I need.
but I really need formulas, those I can figure out when I look at them, I just am not keen on compiling the more difficult ones like I think might be, or not. <shrug>
Thanks,
Laurie[tt][/tt]
PS, I don't know how to make this test appear in neat columns here, I tried but since I can't figure that out, I put the units and cost in () so you are sure what is what.
#2. I think this might be a pivot table thing, but its been over a decade since I've done those and quite frankly it was rather hit and miss.
SO here we are....
On Sheet1, currently has just over 5,500 records (and growing).
Column A has a list of Categories (20)
Columns B-F are data columns
Column G has a unit price for each record.
On Sheet2, list each of the 20 categories (ColumnA), and the number of occurances per category (ColumnB).
What I want to do is in ColumnC I'd like the total price spent on each category. I just can't figure out how to do this, unsure of how to configure a formula for this purpose.
For instance, categories Apples, Bananas, Cherries
Apples, 324
Bananas, 1,217
Cherries, 3,075
Column C pulling the total of the prices related to each category from Sheet1.
Sheet 2, Columns A, B, C
Category Total Units Total Price
Apples (324) ($125.48)
Bananas (1,217) ($3,053.97)
Cherries (3,075) ($982.36)
I can easily figure out the total units, but pulling out the price from Column G on Sheet1 by adding the prices by line item for each category befuddles me. Now sheet1 is sorted this way and that for different purposes so, it would have to maintain the calculation.
I'm sorry I'm so limited in my knowledge regarding Pivot Tables and/or VBA because I bet that's what I need.
but I really need formulas, those I can figure out when I look at them, I just am not keen on compiling the more difficult ones like I think might be, or not. <shrug>
Thanks,
Laurie[tt][/tt]
PS, I don't know how to make this test appear in neat columns here, I tried but since I can't figure that out, I put the units and cost in () so you are sure what is what.