Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Malcolm Austin
 
Posts: n/a
Default INDIRECT WITH COUNTIF

Hi, I'm sure this is a simple one, but my one remaining brain cell can't
see it!

My formula currently is:- =COUNTIF('FLYING TIMES'!F4:F22,"W")

What I want to do is use a cell reference where the "W" is now.

Something like:- =COUNTIF('FLYING TIMES'!F4:F22,INDIRECT(H3))

Working in Excel 2000 SR1

Can anyone put me right please?

Thanks, Malcolm..


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

That will work if H3 contains a reference to your criterion (e.g., H3
contiains "J1" where cell J1 contains "W").

If your criterion is *in* H3 (i.e., H3 contains "W"), use

=COUNTIF('FLYING TIMES'!F4:F22, H3)

In article ,
"Malcolm Austin" wrote:

Hi, I'm sure this is a simple one, but my one remaining brain cell can't
see it!

My formula currently is:- =COUNTIF('FLYING TIMES'!F4:F22,"W")

What I want to do is use a cell reference where the "W" is now.

Something like:- =COUNTIF('FLYING TIMES'!F4:F22,INDIRECT(H3))

Working in Excel 2000 SR1

Can anyone put me right please?

Thanks, Malcolm..

  #3   Report Post  
Malcolm Austin
 
Posts: n/a
Default

Hi,
yes my criteria will be in H3 (or other) so this should work fine
for me.

Many thanks, Malcolm...


"JE McGimpsey" wrote in message
...
That will work if H3 contains a reference to your criterion (e.g., H3
contiains "J1" where cell J1 contains "W").

If your criterion is *in* H3 (i.e., H3 contains "W"), use

=COUNTIF('FLYING TIMES'!F4:F22, H3)

In article ,
"Malcolm Austin" wrote:

Hi, I'm sure this is a simple one, but my one remaining brain cell can't
see it!

My formula currently is:- =COUNTIF('FLYING TIMES'!F4:F22,"W")

What I want to do is use a cell reference where the "W" is now.

Something like:- =COUNTIF('FLYING TIMES'!F4:F22,INDIRECT(H3))

Working in Excel 2000 SR1

Can anyone put me right please?

Thanks, Malcolm..



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
Countif bjg Excel Worksheet Functions 11 November 27th 04 03:32 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
Countif ??? terryv Excel Worksheet Functions 2 November 8th 04 09:03 AM
countif reno Excel Worksheet Functions 5 November 5th 04 12:20 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 07:01 AM.

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"