How much did X do Y and Z

Thanhpi

New Member
Joined
Feb 2, 2018
Messages
10
Hi,

Let's say I have a list with orders with every row has seller ID and a product serial nr

So it could be (the name and serial nr are different cells)

John A23
John A23
Marcus A25
John A25

So in another sheet I have
A23 A25
John 2 1
Marcus 0 1


Im in mobile so formatting might be bad. But what I want is for it to count how many units John and other personally have sold A23 and A25 each etc.

No this isn't actually about sale stars its just the easiest example describing the scenario since I can't do a spreadsheet on mobile.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Depending on which ver. of Excel you have try either COUNTIFS or SUMPRODUCT functions.

Copy formula down and across as needed.

Excel Workbook
ABC
1A23A25
2John21
3Marcus01
4
5
6A23A25
7John21
8Marcus01
Sheet2
Excel Workbook
AB
1JohnA23
2JohnA23
3MarcusA25
4JohnA25
Sheet1
 
Upvote 0
Depending on which ver. of Excel you have try either COUNTIFS or SUMPRODUCT functions.

Copy formula down and across as needed.

Sheet2

ABC
1 A23A25
2John21
3Marcus01
4
5
6 A23A25
7John21
8Marcus01

<colgroup><col style="width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=COUNTIFS(Sheet1!$A$1:$A$4,$A2,Sheet1!$B$1:$B$4,B$1)
B7=SUMPRODUCT(--(Sheet1!$A$1:$A$4=$A7),--(Sheet1!$B$1:$B$4=B$6))

<tbody>
</tbody>

<tbody>
</tbody>


Sheet1

AB
1JohnA23
2JohnA23
3MarcusA25
4JohnA25

<colgroup><col style="width:30px; "><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Thanks for the response much appreciated! :)
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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