#1   Report Post  
Posted to microsoft.public.excel.misc
JohnD
 
Posts: n/a
Default Formula Question

=IF(Info!$B$5:$B$502="May",COUNTIF(Info!$L$5:$L$50 0,"=15"),"0")
Why doesn't this formula work. Information is being pulled from an Access97
database into 'Info' worksheet. This information is then being analysed in
another worksheet using this formula in one of the cells, but it doesn't
recognise anything labelled 'May' seems count everything. Seperate cells for
other months.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default Formula Question

You might consider this. Notice 500 for both instead of 502 and 500

=sumproduct((Info!$B$5:$B$500="May")*(Info!$L$5:$L $500=15))

if you are looking at real dates in col B instead of text for the months
=sumproduct((month(Info!$B$5:$B$500)=5)*(Info!$L$5 :$L$500=15))

--
Don Guillett
SalesAid Software

"JohnD" wrote in message
...
=IF(Info!$B$5:$B$502="May",COUNTIF(Info!$L$5:$L$50 0,"=15"),"0")
Why doesn't this formula work. Information is being pulled from an
Access97
database into 'Info' worksheet. This information is then being analysed in
another worksheet using this formula in one of the cells, but it doesn't
recognise anything labelled 'May' seems count everything. Seperate cells
for
other months.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Formula Question

Do you want countif to function if
ALL of B5:B502 are May
or
ANY of B5:B502 are May
??
--
Gary's Student


"JohnD" wrote:

=IF(Info!$B$5:$B$502="May",COUNTIF(Info!$L$5:$L$50 0,"=15"),"0")
Why doesn't this formula work. Information is being pulled from an Access97
database into 'Info' worksheet. This information is then being analysed in
another worksheet using this formula in one of the cells, but it doesn't
recognise anything labelled 'May' seems count everything. Seperate cells for
other months.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default Formula Question

Hi John,

One possible reason in case of imported data that Excel doesn't treat them
as text, not even if they are formatted as text. Try convert Info!B column
with the TEXT function!

Regards,
Stefi


€˛JohnD€¯ ezt Ć*rta:

=IF(Info!$B$5:$B$502="May",COUNTIF(Info!$L$5:$L$50 0,"=15"),"0")
Why doesn't this formula work. Information is being pulled from an Access97
database into 'Info' worksheet. This information is then being analysed in
another worksheet using this formula in one of the cells, but it doesn't
recognise anything labelled 'May' seems count everything. Seperate cells for
other months.

  #5   Report Post  
Posted to microsoft.public.excel.misc
JohnD
 
Posts: n/a
Default Formula Question

Brilliant, works a treat.

Cheers Don.

"Don Guillett" wrote:

You might consider this. Notice 500 for both instead of 502 and 500

=sumproduct((Info!$B$5:$B$500="May")*(Info!$L$5:$L $500=15))

if you are looking at real dates in col B instead of text for the months
=sumproduct((month(Info!$B$5:$B$500)=5)*(Info!$L$5 :$L$500=15))

--
Don Guillett
SalesAid Software

"JohnD" wrote in message
...
=IF(Info!$B$5:$B$502="May",COUNTIF(Info!$L$5:$L$50 0,"=15"),"0")
Why doesn't this formula work. Information is being pulled from an
Access97
database into 'Info' worksheet. This information is then being analysed in
another worksheet using this formula in one of the cells, but it doesn't
recognise anything labelled 'May' seems count everything. Seperate cells
for
other months.






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
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Formula Question Formula Question Excel Discussion (Misc queries) 2 April 23rd 06 12:00 AM
Excel formula question bb Excel Discussion (Misc queries) 3 April 20th 06 03:11 AM
Formula Question Marcus Feldmore Excel Worksheet Functions 1 November 11th 05 03:47 PM
I have a question regarding countif formula. Fahad Farid Ansari Excel Worksheet Functions 6 October 1st 05 11:57 PM


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