![]() |
Lookup with multiple conditions
I have two cells as followes :
A B 1 Sachin Vikas 2 Sachin Amit 3 Sachin Vikas 4 Sachin Vikas i want to count no of times Sachin and Vikas comes in one row Here ans is Three. |
=sumproduct(--(a1:a4="sachin"),--(b1:b4="vikas"))
is one way. =sumproduct() wants to work with numbers. -- converts true/false to 0/1. Sachin Narute wrote: I have two cells as followes : A B 1 Sachin Vikas 2 Sachin Amit 3 Sachin Vikas 4 Sachin Vikas i want to count no of times Sachin and Vikas comes in one row Here ans is Three. -- Dave Peterson |
Thank You Sir,
Regard, SACHIN "Dave Peterson" wrote: =sumproduct(--(a1:a4="sachin"),--(b1:b4="vikas")) is one way. =sumproduct() wants to work with numbers. -- converts true/false to 0/1. Sachin Narute wrote: I have two cells as followes : A B 1 Sachin Vikas 2 Sachin Amit 3 Sachin Vikas 4 Sachin Vikas i want to count no of times Sachin and Vikas comes in one row Here ans is Three. -- Dave Peterson |
All times are GMT +1. The time now is 12:10 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com