#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Count If

Hi
I'm trying to get the following formula to work:
COUNT(IF(Page1!$J$5:$J$10000,$H$1,IF(Page1!$D$5:$D $5000,"*"&A10&"*",0)))

But it isn't. I'm trying to count the cells on page 1 that have H in
coloumn J, but also contain A10 in coloumn D.

I've done th {} at each end but it doeasn't work.

Any help would be very much appreciated.

Thanks
Fiona
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Count If

Fiona,

Try this

=COUNT(IF(Page1!$J$5:$J$10000=$H$1,IF(ISNUMBER(FIN D(A10,Page1!$D$5:$D$5000)),1)))

still array entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Fiona" wrote in message
...
Hi
I'm trying to get the following formula to work:
COUNT(IF(Page1!$J$5:$J$10000,$H$1,IF(Page1!$D$5:$D $5000,"*"&A10&"*",0)))

But it isn't. I'm trying to count the cells on page 1 that have H in
coloumn J, but also contain A10 in coloumn D.

I've done th {} at each end but it doeasn't work.

Any help would be very much appreciated.

Thanks
Fiona



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Count If

Thanks Bob but that didn't seem to work

"Bob Phillips" wrote:

Fiona,

Try this

=COUNT(IF(Page1!$J$5:$J$10000=$H$1,IF(ISNUMBER(FIN D(A10,Page1!$D$5:$D$5000)),1)))

still array entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Fiona" wrote in message
...
Hi
I'm trying to get the following formula to work:
COUNT(IF(Page1!$J$5:$J$10000,$H$1,IF(Page1!$D$5:$D $5000,"*"&A10&"*",0)))

But it isn't. I'm trying to count the cells on page 1 that have H in
coloumn J, but also contain A10 in coloumn D.

I've done th {} at each end but it doeasn't work.

Any help would be very much appreciated.

Thanks
Fiona




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Count If

Care to elucidate, it worked in my test.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Fiona" wrote in message
...
Thanks Bob but that didn't seem to work

"Bob Phillips" wrote:

Fiona,

Try this

=COUNT(IF(Page1!$J$5:$J$10000=$H$1,IF(ISNUMBER(FIN D(A10,Page1!$D$5:$D$5000)),1)))

still array entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Fiona" wrote in message
...
Hi
I'm trying to get the following formula to work:
COUNT(IF(Page1!$J$5:$J$10000,$H$1,IF(Page1!$D$5:$D $5000,"*"&A10&"*",0)))

But it isn't. I'm trying to count the cells on page 1 that have H in
coloumn J, but also contain A10 in coloumn D.

I've done th {} at each end but it doeasn't work.

Any help would be very much appreciated.

Thanks
Fiona






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Count If

Sorry Bob, I've been looking at it again and the problem is that in my
previous formula I used the 'contains' feature ("*"&A10&"*") but with your
formula the match needs to be exact. I've tried to enter the 'contains' bit
but this does not give the correct result.

I want to count D5:D5000 if it contains A10.

Thanks again for your help

Fiona
:)

"Bob Phillips" wrote:

Care to elucidate, it worked in my test.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Fiona" wrote in message
...
Thanks Bob but that didn't seem to work

"Bob Phillips" wrote:

Fiona,

Try this

=COUNT(IF(Page1!$J$5:$J$10000=$H$1,IF(ISNUMBER(FIN D(A10,Page1!$D$5:$D$5000)),1)))

still array entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Fiona" wrote in message
...
Hi
I'm trying to get the following formula to work:
COUNT(IF(Page1!$J$5:$J$10000,$H$1,IF(Page1!$D$5:$D $5000,"*"&A10&"*",0)))

But it isn't. I'm trying to count the cells on page 1 that have H in
coloumn J, but also contain A10 in coloumn D.

I've done th {} at each end but it doeasn't work.

Any help would be very much appreciated.

Thanks
Fiona






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Count If

I did read your post and that is why I used Find, so I cater for contains.

It might be a case problem, try changing FIND to SEARCH.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Fiona" wrote in message
...
Sorry Bob, I've been looking at it again and the problem is that in my
previous formula I used the 'contains' feature ("*"&A10&"*") but with your
formula the match needs to be exact. I've tried to enter the 'contains'
bit
but this does not give the correct result.

I want to count D5:D5000 if it contains A10.

Thanks again for your help

Fiona
:)

"Bob Phillips" wrote:

Care to elucidate, it worked in my test.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Fiona" wrote in message
...
Thanks Bob but that didn't seem to work

"Bob Phillips" wrote:

Fiona,

Try this

=COUNT(IF(Page1!$J$5:$J$10000=$H$1,IF(ISNUMBER(FIN D(A10,Page1!$D$5:$D$5000)),1)))

still array entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Fiona" wrote in message
...
Hi
I'm trying to get the following formula to work:
COUNT(IF(Page1!$J$5:$J$10000,$H$1,IF(Page1!$D$5:$D $5000,"*"&A10&"*",0)))

But it isn't. I'm trying to count the cells on page 1 that have H
in
coloumn J, but also contain A10 in coloumn D.

I've done th {} at each end but it doeasn't work.

Any help would be very much appreciated.

Thanks
Fiona








  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Count If

Thankyou, that solved it.

"Bob Phillips" wrote:

I did read your post and that is why I used Find, so I cater for contains.

It might be a case problem, try changing FIND to SEARCH.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Fiona" wrote in message
...
Sorry Bob, I've been looking at it again and the problem is that in my
previous formula I used the 'contains' feature ("*"&A10&"*") but with your
formula the match needs to be exact. I've tried to enter the 'contains'
bit
but this does not give the correct result.

I want to count D5:D5000 if it contains A10.

Thanks again for your help

Fiona
:)

"Bob Phillips" wrote:

Care to elucidate, it worked in my test.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Fiona" wrote in message
...
Thanks Bob but that didn't seem to work

"Bob Phillips" wrote:

Fiona,

Try this

=COUNT(IF(Page1!$J$5:$J$10000=$H$1,IF(ISNUMBER(FIN D(A10,Page1!$D$5:$D$5000)),1)))

still array entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Fiona" wrote in message
...
Hi
I'm trying to get the following formula to work:
COUNT(IF(Page1!$J$5:$J$10000,$H$1,IF(Page1!$D$5:$D $5000,"*"&A10&"*",0)))

But it isn't. I'm trying to count the cells on page 1 that have H
in
coloumn J, but also contain A10 in coloumn D.

I've done th {} at each end but it doeasn't work.

Any help would be very much appreciated.

Thanks
Fiona









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
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 10:14 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"