Complicated counting

marek256

New Member
Joined
Sep 14, 2014
Messages
15
Hey Guys, here at the company, we used to release shipping containers according to references.
We have a simple sheet where we used to write released containers.
The problem is that there are really a lot of references and we need to keep track how many containers we need to release and because of that we need to count it manually.
Because of that I would like to ask if there would be a function to count it. I know that there is a counta, countif function but there are an empty lines which should not count.
Basically I need, how many 20´DC containers left to release, how many 40´DC containers left to release and how many 40´HC containers left to release.
I am attaching a tiny part of the list to see what I am talking about.
Thanks in advance
Code:
http://www61.zippyshare.com/v/bkFWfw53/file.html
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hey buddy,
thanks, the formula works in your file but unfortunately I have expressed myself obviously wrong because this counts number of released containers and not the opposite, how many remains. I think I explained it wrong, I need the counter for remaining containers in total in those 3 categories. I add in the next column the right numbers. I think you should be able to fix it because you are close. I got lost in the formula immediately :)
Code:
http://www104.zippyshare.com/v/kiN2XmB8/file.html
 
Upvote 0
Hi Marek,
Sorry for the delay have been away. The formula below works as requested.
Code:
=SUMIF($D$2:$F$26,G1,$E$2:$E$26)-COUNTIFS($D$2:$D$26,G1,$F$2:$F$26,"<>"&"")
 
Upvote 0
Hello,
you are my superhero! It works amazingly! You have helped me a lot, thanks you a million!
I am going to apply it into entire sheet.
Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,754
Messages
6,126,681
Members
449,328
Latest member
easperhe29

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