Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - comparison question 1

Status
Not open for further replies.

tikual

Technical User
Jun 10, 2003
237
HK
Hi,

As follows:

A B C D
1 Dept Status Finance
2 IT Pending
3 Finance Done
4 HR Pending
5 Finance Pending
6 Finance Done

I want to check row A2 to A6, when its name same as D1 and the status is pending. Then give me the total no. This case should be 1. How can I do that? Thanks!



tikual
 
=SUMPRODUCT(--(A2:A6=D1),--(B2:B6="Pending"))

Regards
Ken.......

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Thanks for your fast reply!

tikual
 
You're welcome :)

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top