• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

excel formula

thifu3

New Member
Hello guys!


Is it possible that i can count the following using a formula. i want to check how many trousers are in medium size etc and how may shorts are small or medium.

[pre]
Code:
Trouser   Small
Shirt     Medium
Shirt     Large
Shirt     Medium
[/pre]
 
Hi,


Can you please download the below file and check.


http://www.2shared.com/file/m8bxVDyB/Book2.html


Thanks,

Suresh Kumar S
 
Good day thifu3


This formila in C1 and then pulled down you data range,


=COUNTIFS($B:$B,B1)

will give you this

[pre]
Code:
A       B     C
Trouser	Small	1
Shirt	Medium	2
Shirt	Large	1
Shirt	Medium
[/pre]
 
Hi thifu3,


The formula should be like:


=SUMPRODUCT((Type_Range="Trouser")*(Size_Range={"Medium","Small","Large"}))


You can delete from "Medium","Small","Large" things you don't want to count. you can also change trouser to shirt as well.


Regards,
 
Back
Top