Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 275
Default COUNTIFS using an array, but a continual -1 reference

I have the current working formula:

{=COUNTIFS(TRIP!$A$2:TRIP!$A$65536,D$16,TRIP!$B$2: TRIP!$B$65536,"<5")}

This works tremendously, however I need to add one more restriction and
can't figure out how to include it. I need to add a:
TRIP!$C$2:TRIP!$C$65536,TRIP!C3<TRIP!C2

To further specify, here is an example:
TRIP!A TRIP!B TRIP!C D
1 3 4598
1
1 4 1578
1
1 0 1579
1
1 8 3568
1
1 4 8585
1

In this scenario I want to count 4 trips. Trip 1, 2, 3, and 5. My current
formula counts three because it dismisses trip 3 due to the zero value. If I
can put the < expression in the formula I will eliminate the 0 expression
(as the 0 would automatically dismiss that record anyhow... currently it's
the closest expression I've found to what I actually want).

Thank you!!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default COUNTIFS using an array, but a continual -1 reference

{=COUNTIFS(TRIP!$A$2:TRIP!$A$65536,D$16,TRIP!$B$2 :TRIP!$B$65536,"<5")}

That formula doesn't need to be array entered. Also, you don't need to
repeat the sheet name in your references.

Normally entered:

=COUNTIFS(TRIP!$A$2:$A$65536,D$16,TRIP!$B$2:$B$655 36,"<5")

Not sure what you're trying to say with this:

I need to add a:
TRIP!$C$2:TRIP!$C$65536,TRIP!C3<TRIP!C2


That would look something like this *but* it won't work:

TRIP!$C$3:$C$65536<TRIP!$C$2:TRIP!$C$65535

If you want to exclude 0 from the count:

=COUNTIFS(TRIP!$A$2:$A$65536,D$16,TRIP!$B$2:$B$655 36,"0",TRIP!$B$2:$B$65536,"<5")

--
Biff
Microsoft Excel MVP


"Anthony" wrote in message
...
I have the current working formula:

{=COUNTIFS(TRIP!$A$2:TRIP!$A$65536,D$16,TRIP!$B$2: TRIP!$B$65536,"<5")}

This works tremendously, however I need to add one more restriction and
can't figure out how to include it. I need to add a:
TRIP!$C$2:TRIP!$C$65536,TRIP!C3<TRIP!C2

To further specify, here is an example:
TRIP!A TRIP!B TRIP!C D
1 3 4598
1
1 4 1578
1
1 0 1579
1
1 8 3568
1
1 4 8585
1

In this scenario I want to count 4 trips. Trip 1, 2, 3, and 5. My
current
formula counts three because it dismisses trip 3 due to the zero value.
If I
can put the < expression in the formula I will eliminate the 0
expression
(as the 0 would automatically dismiss that record anyhow... currently
it's
the closest expression I've found to what I actually want).

Thank you!!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr Steve Excel Worksheet Functions 2 January 4th 09 05:36 PM
Countifs with same reference? CEBeau Excel Worksheet Functions 19 July 25th 08 06:52 PM
I need to do a continual document merge with excel and word Patrick Excel Discussion (Misc queries) 9 October 25th 07 09:57 PM
Inter-spreadsheet Referencing - Continual need to locate linked fi Atreides Excel Discussion (Misc queries) 0 February 22nd 05 07:01 AM
how do i set up a single cell continual entry in excel to total f. mike@swallow Excel Discussion (Misc queries) 1 December 7th 04 12:29 PM


All times are GMT +1. The time now is 06:18 PM.

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

About Us

"It's about Microsoft Excel"