ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   countif with a condition and contains @ (https://www.excelbanter.com/excel-worksheet-functions/259181-re-countif-condition-contains-%40.html)

Pete_UK

countif with a condition and contains @
 
Try this:

=SUMPRODUCT(--(A1:A20="M&P),--(NOT(ISNUMBER(SEARCH("@",B1:B20)))))

Adjust the ranges to suit your data.

Hope this helps.

Pete

On Mar 17, 4:04*pm, whyrajesh wrote:
Hello all

column 1 * *column 2

M&P * * * * * xy.yahoo.com
others * * * *
M&P * * * * *
M&P * * * * * BLANK
others * * * *
M&P * * * * * mn.gmail.com

From the table above , I want to count M&P which doesnt contain @ in
Column 2

So here the answer should be 3.

Someone please help me with the formula !!!!

Thanks alot for the help

RYAN



whyrajesh

countif with a condition and contains @
 
On Mar 17, 6:27*pm, Pete_UK wrote:
Try this:

=SUMPRODUCT(--(A1:A20="M&P),--(NOT(ISNUMBER(SEARCH("@",B1:B20)))))

Adjust the ranges to suit your data.

Hope this helps.

Pete



Hello Pete

Thank you so much for the reply

But unfortunately, this formula is not working ..I am getting some
value ,,,but it was not showing the result..showing different figures

Can you please find any another solution for me...

Thanks alot


All times are GMT +1. The time now is 12:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com