A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

countif with a condition and contains @



 
 
Thread Tools Display Modes
  #1  
Old March 17th, 2010, 05:27 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default 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


  #2  
Old March 18th, 2010, 09:15 AM posted to microsoft.public.excel.worksheet.functions
whyrajesh
external usenet poster
 
Posts: 1
Default 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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.