Count

j4ymf

Well-known Member
Joined
Apr 28, 2003
Messages
741
Office Version
  1. 365
Platform
  1. Windows
Hello

I was wondering if someone could help me write a formula to count my stock.
In Cell I6 i would like to count all my stock which is in the range of A4:B15, is this possible or would i need to create the table differently

Thank you in advance





Screenshot 2021-05-08 072722.jpg
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Like this?
Excel Formula:
=SUMIF($A$4:$A$15,F6,$B$4:$B$15)
 
Last edited:
Upvote 0
Glad to help. Please note the absolute reference if you are to replicate the formula for "Mastic"
 
Upvote 0
Count or Sum? Or Both
Count:
Excel Formula:
=Countif($A$4:$A$15,F6)
Sum
Excel Formula:
=SUMIF($A$4:$A$15,F6,$B$4:$B$15)
Both:
Excel Formula:
=SUMIF($A$4:$A$15,F6,$B$4:$B$15) & " , " & Countif($A$4:$A$15,F6)
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,015
Members
449,203
Latest member
tungnmqn90

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