PC Review


Reply
Thread Tools Rate Thread

Challlenging COUNT IFS?

 
 
MikeF
Guest
Posts: n/a
 
      3rd May 2010

This has become quite challenging.

IF in range d23:023 there are only zeros, nothing[s], or a mix of both,
would like cell q23 to return zero, otherwise 1.

Can’t use a sum because sometimes there are offsetting numbers, ie +100 and
-100 in the same row that would return 0.
Some cells in the range are a formula [which is why there’s a zero], others
are just blank.

The end result is to import a large table into Access, using row q as import
criteria, so Access does not import any rows that are meaningless.
In other words, if *something* is in the row, put a 1 in column q, if there
is nothing meaningful in the row [zeros or nothings] put a zero in column q.

Have tried numerous COUNT IFS formulas to no avail.

Any assistance would be sincerely appreciated.

Thanx,
- Mike


 
Reply With Quote
 
 
 
 
OssieMac
Guest
Posts: n/a
 
      3rd May 2010
Hi Mike,

Hope I have understood the question correctly.

Try the following formula. CountIf <> zero treats blanks as <> zero
therefore need to count the blanks separately and subtract them.

=IF(COUNTIF(D23:O23,"<>0")-COUNTBLANK(D23:O23)>0,1,0)


--
Regards,

OssieMac


"MikeF" wrote:

>
> This has become quite challenging.
>
> IF in range d23:023 there are only zeros, nothing[s], or a mix of both,
> would like cell q23 to return zero, otherwise 1.
>
> Can’t use a sum because sometimes there are offsetting numbers, ie +100 and
> -100 in the same row that would return 0.
> Some cells in the range are a formula [which is why there’s a zero], others
> are just blank.
>
> The end result is to import a large table into Access, using row q as import
> criteria, so Access does not import any rows that are meaningless.
> In other words, if *something* is in the row, put a 1 in column q, if there
> is nothing meaningful in the row [zeros or nothings] put a zero in column q.
>
> Have tried numerous COUNT IFS formulas to no avail.
>
> Any assistance would be sincerely appreciated.
>
> Thanx,
> - Mike
>
>

 
Reply With Quote
 
MikeF
Guest
Posts: n/a
 
      4th May 2010
Ossie,

Thanx, that provided the correct result.
Much appreciated.

- Mik


"OssieMac" wrote:

> Hi Mike,
>
> Hope I have understood the question correctly.
>
> Try the following formula. CountIf <> zero treats blanks as <> zero
> therefore need to count the blanks separately and subtract them.
>
> =IF(COUNTIF(D23:O23,"<>0")-COUNTBLANK(D23:O23)>0,1,0)
>
>
> --
> Regards,
>
> OssieMac
>
>
> "MikeF" wrote:
>
> >
> > This has become quite challenging.
> >
> > IF in range d23:023 there are only zeros, nothing[s], or a mix of both,
> > would like cell q23 to return zero, otherwise 1.
> >
> > Can’t use a sum because sometimes there are offsetting numbers, ie +100 and
> > -100 in the same row that would return 0.
> > Some cells in the range are a formula [which is why there’s a zero], others
> > are just blank.
> >
> > The end result is to import a large table into Access, using row q as import
> > criteria, so Access does not import any rows that are meaningless.
> > In other words, if *something* is in the row, put a 1 in column q, if there
> > is nothing meaningful in the row [zeros or nothings] put a zero in column q.
> >
> > Have tried numerous COUNT IFS formulas to no avail.
> >
> > Any assistance would be sincerely appreciated.
> >
> > Thanx,
> > - Mike
> >
> >

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      4th May 2010
On Mon, 3 May 2010 14:56:02 -0700, MikeF <(E-Mail Removed)>
wrote:

>
>This has become quite challenging.
>
>IF in range d23:023 there are only zeros, nothing[s], or a mix of both,
>would like cell q23 to return zero, otherwise 1.
>
>Can’t use a sum because sometimes there are offsetting numbers, ie +100 and
>-100 in the same row that would return 0.
>Some cells in the range are a formula [which is why there’s a zero], others
>are just blank.
>
>The end result is to import a large table into Access, using row q as import
>criteria, so Access does not import any rows that are meaningless.
>In other words, if *something* is in the row, put a 1 in column q, if there
>is nothing meaningful in the row [zeros or nothings] put a zero in column q.
>
>Have tried numerous COUNT IFS formulas to no avail.
>
>Any assistance would be sincerely appreciated.
>
>Thanx,
>- Mike
>


Try:

This formula must be **array-entered**:

=--OR(D23:O23<>0)
----------------------------------------

To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl><shift> while hitting <enter>. If you did this
correctly, Excel will place braces {...} around the formula.

The above methods require that blanks are truly empty cells, and do not contain
formulas that return a null string ("").

If some of the cells might contain a null string, then try:

**array-entered**

=--OR((D23:O23<>0)*(D23:O23<>""))

--ron
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
count duplicats, display incremental count, restart count at changein value JenIT Microsoft Excel Programming 2 24th Aug 2010 09:10 PM
Count unique field1 combined with count field2, both grouped andungrouped john.mctigue@health.wa.gov.au Microsoft Access Queries 3 19th Dec 2008 03:52 AM
Count Employee Work Time - Don't Double-count Overlapping Apts. =?Utf-8?B?Sg==?= Microsoft Excel Worksheet Functions 0 27th Apr 2007 05:52 AM
how to get count(col1), count(col2), count(sol3) with only one query Mario Krsnic Microsoft Access Queries 2 27th Oct 2006 06:52 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Microsoft Excel Worksheet Functions 9 31st Jul 2005 03:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:33 PM.