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  

"Count non blanks" if cells don't equal certain values



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2009, 11:50 AM posted to microsoft.public.excel.worksheet.functions
thegymshoe
external usenet poster
 
Posts: 3
Default "Count non blanks" if cells don't equal certain values

I need to figure out a formula that counts the non blanks in a row, but omits
non blanks equalling "UA", "UE" and "AA".
Can anyone give me a simple formula please, I've tried all sorts of IFs,
AND's and MAYBE's thanks!
  #2  
Old June 23rd, 2009, 12:33 PM posted to microsoft.public.excel.worksheet.functions
Sheeloo
external usenet poster
 
Posts: 797
Default "Count non blanks" if cells don't equal certain values

If you want to exclude only the three values you mentioned then try
=COUNTA(B1:B9)-COUNTIF(B1:B9,"EE")-COUNTIF(B1:B9,"UA")-COUNTIF(B1:B9,"UE")

You can comeup with more elegant formulas but all of them will essentially
do the same process...

Adjust the range according to your data.

Click 'Yes' if this helped.

"thegymshoe" wrote:

I need to figure out a formula that counts the non blanks in a row, but omits
non blanks equalling "UA", "UE" and "AA".
Can anyone give me a simple formula please, I've tried all sorts of IFs,
AND's and MAYBE's thanks!

  #3  
Old June 23rd, 2009, 12:43 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default "Count non blanks" if cells don't equal certain values

=256-COUNTBLANK(1:1)-COUNTIF(1:1,"AA")-COUNTIF(1:1, "UE")-COUNTIF(1:1,"UA")

--
Gary''s Student - gsnu200858
  #4  
Old June 23rd, 2009, 02:04 PM posted to microsoft.public.excel.worksheet.functions
thegymshoe
external usenet poster
 
Posts: 3
Default "Count non blanks" if cells don't equal certain values

If I have 8 values I need to omit, this might be quite longwinded - is there
any way of condensing it so that you only need to put the range in twice?

Thanks

"Sheeloo" wrote:

If you want to exclude only the three values you mentioned then try
=COUNTA(B1:B9)-COUNTIF(B1:B9,"EE")-COUNTIF(B1:B9,"UA")-COUNTIF(B1:B9,"UE")

You can comeup with more elegant formulas but all of them will essentially
do the same process...

Adjust the range according to your data.

Click 'Yes' if this helped.

"thegymshoe" wrote:

I need to figure out a formula that counts the non blanks in a row, but omits
non blanks equalling "UA", "UE" and "AA".
Can anyone give me a simple formula please, I've tried all sorts of IFs,
AND's and MAYBE's thanks!

  #5  
Old June 23rd, 2009, 04:01 PM posted to microsoft.public.excel.worksheet.functions
RagDyeR
external usenet poster
 
Posts: 3,482
Default "Count non blanks" if cells don't equal certain values

Replace the characters within the quotes with your values and adjust for
your ranges:

=COUNTA(A1:Z1)-SUM(COUNTIF(A1:Z1,{"AA","BB","CC","DD","EE","FF"," GG","HH"}))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"thegymshoe" wrote in message
...
If I have 8 values I need to omit, this might be quite longwinded - is there
any way of condensing it so that you only need to put the range in twice?

Thanks

"Sheeloo" wrote:

If you want to exclude only the three values you mentioned then try
=COUNTA(B1:B9)-COUNTIF(B1:B9,"EE")-COUNTIF(B1:B9,"UA")-COUNTIF(B1:B9,"UE")

You can comeup with more elegant formulas but all of them will essentially
do the same process...

Adjust the range according to your data.

Click 'Yes' if this helped.

"thegymshoe" wrote:

I need to figure out a formula that counts the non blanks in a row, but
omits
non blanks equalling "UA", "UE" and "AA".
Can anyone give me a simple formula please, I've tried all sorts of IFs,
AND's and MAYBE's thanks!



  #6  
Old June 23rd, 2009, 04:11 PM posted to microsoft.public.excel.worksheet.functions
thegymshoe
external usenet poster
 
Posts: 3
Default "Count non blanks" if cells don't equal certain values


Sorry must have posted it wrong - how do you include everyone in the reply?
As you can see Im new to this!

The answer is what I'm looking for - excellent thanks

"RagDyeR" wrote:

Replace the characters within the quotes with your values and adjust for
your ranges:

=COUNTA(A1:Z1)-SUM(COUNTIF(A1:Z1,{"AA","BB","CC","DD","EE","FF"," GG","HH"}))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"thegymshoe" wrote in message
...
If I have 8 values I need to omit, this might be quite longwinded - is there
any way of condensing it so that you only need to put the range in twice?

Thanks

"Sheeloo" wrote:

If you want to exclude only the three values you mentioned then try
=COUNTA(B1:B9)-COUNTIF(B1:B9,"EE")-COUNTIF(B1:B9,"UA")-COUNTIF(B1:B9,"UE")

You can comeup with more elegant formulas but all of them will essentially
do the same process...

Adjust the range according to your data.

Click 'Yes' if this helped.

"thegymshoe" wrote:

I need to figure out a formula that counts the non blanks in a row, but
omits
non blanks equalling "UA", "UE" and "AA".
Can anyone give me a simple formula please, I've tried all sorts of IFs,
AND's and MAYBE's thanks!




  #7  
Old June 23rd, 2009, 08:29 PM posted to microsoft.public.excel.worksheet.functions
RagDyeR
external usenet poster
 
Posts: 3,482
Default "Count non blanks" if cells don't equal certain values

Don't understand your comment ... I don't see anything wrong with your
posting!

Anyway, you're welcome and thank you for the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"thegymshoe" wrote in message
news

Sorry must have posted it wrong - how do you include everyone in the
reply?
As you can see Im new to this!

The answer is what I'm looking for - excellent thanks

"RagDyeR" wrote:

Replace the characters within the quotes with your values and adjust for
your ranges:

=COUNTA(A1:Z1)-SUM(COUNTIF(A1:Z1,{"AA","BB","CC","DD","EE","FF"," GG","HH"}))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"thegymshoe" wrote in message
...
If I have 8 values I need to omit, this might be quite longwinded - is
there
any way of condensing it so that you only need to put the range in twice?

Thanks

"Sheeloo" wrote:

If you want to exclude only the three values you mentioned then try
=COUNTA(B1:B9)-COUNTIF(B1:B9,"EE")-COUNTIF(B1:B9,"UA")-COUNTIF(B1:B9,"UE")

You can comeup with more elegant formulas but all of them will
essentially
do the same process...

Adjust the range according to your data.

Click 'Yes' if this helped.

"thegymshoe" wrote:

I need to figure out a formula that counts the non blanks in a row,
but
omits
non blanks equalling "UA", "UE" and "AA".
Can anyone give me a simple formula please, I've tried all sorts of
IFs,
AND's and MAYBE's thanks!






 




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 07:31 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.