count how many of which

dado6612

Well-known Member
Joined
Dec 4, 2009
Messages
591
Hi to all

In range A4:A7 i have list of products
I have other table with names of factories where i type how many units of some product that factory made

Every factory make always the same product from the first list

Arghh its hard to explain :biggrin:

there are 30 factories..

number of factories are not always the same in same position

After i choose which product of 4 in list some factory made i type number of units done that day for each factory

what i need is count how many units of each is made that day

ex. apples, oranges, bananas and peach

some factory make something of those fruits and if factory1 made 10 apples, factory2 14 oranges, factory3 20 oranges, factory4 44 bananas and so on..

i need at the and this
apples: 100
oranges: 47
bananas: 200
peach: 32

what every factory make is in range B15:DN15 (every second column, and they are merged, so actually its every 4th)

in range B17:B118 is number of units made each day for selected factory
for second factory that list is in range F17:F118 and for next factory is 4 column ahead and so on..

I don't know how to describe it better and i hope u experts understand what i looking for

and i also hope ill get answer which will solve mine problem:rolleyes:
 
Oh i have new question
how to make this formula transpose?

data is same, cells are same, but table with sum now looks like this

Excel Workbook
ABCDEFGHIJKL
1Choose factory
2Fruit
3FruitUpB
4Apple20
5Orange15
6Bananas40
7Peach15
8
9AppleBananasPeachAppleAppleOrangeBananas
10125322523000
11273462326000
123276812171000
...




I realized that this version is more efficient for me :)

ps: there is peach at the end of table, but jeanie's html maker don't allow me to use more than 12 columns
 
Last edited:
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Where are your day numbers now situated?

Could you provide an example similar to what you provided in post #3?

Matty
 
Upvote 0
I can't edit previous post..

its same as #3

just, i moved table from range C3:E7 to J9:M

days are in column A, row 10 and downward
formula still must calculate how many apples are in day 1, oranges..and so for day 2..

count for apples in day 1 will be 55, orange 0, bananas 32 and so on..

its same principle as previous case, just now table is transposed, days are on the left and fruits are on the top
 
Upvote 0
Even simpler with your new layout...

J10, copied down and across:

=SUMIF($B$9:$H$9,J$9,$B10:$H10)

Matty
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,667
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top