#1   Report Post  
Scott Calkins via OfficeKB.com
 
Posts: n/a
Default ="Z" dual use?

I am using the following 2 formulas to pull occurrances of a letter in a
column.
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="L"),'Raw
data'!Q1:Q65500))}
and
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="Z"),'Raw
data'!Q1:Q65500))}

The first formula works fine, but the second comes back with the wrong
total(should be 20 with my test data, giving 230). The only difference is
changing the "L" to a "Z". Is ="Z" used for something else in excel, i.e.
z-test or something? If so is there another way to get the occurrances of
"Z" in column B when column L ="A"?

--
Message posted via http://www.officekb.com
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

I cut the range down in my test, but worked fine. Sure you don't have 230
(in 65500 it may be hard to find).

--
HTH

Bob Phillips

"Scott Calkins via OfficeKB.com" wrote in
message ...
I am using the following 2 formulas to pull occurrances of a letter in a
column.
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="L"),'Raw
data'!Q1:Q65500))}
and
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="Z"),'Raw
data'!Q1:Q65500))}

The first formula works fine, but the second comes back with the wrong
total(should be 20 with my test data, giving 230). The only difference is
changing the "L" to a "Z". Is ="Z" used for something else in excel, i.e.
z-test or something? If so is there another way to get the occurrances of
"Z" in column B when column L ="A"?

--
Message posted via http://www.officekb.com



  #3   Report Post  
Scott Calkins via OfficeKB.com
 
Posts: n/a
Default

Yep, the range may be 1-65500 but only 1-262 have data in them and of those
"Z" only is used 20 times.

--
Message posted via http://www.officekb.com
  #4   Report Post  
Sandy Mann
 
Posts: n/a
Default

Scott,

I don't have an answer to your question but when I test your formula with
Column L empty and Column B with several Z's then, like Bob, I get a
(correct) count of the number of Z's in Column B provided that Column Q is
empty or has numbers. If Column Q has letters then the count decreases by 1
for every letter in Q in the same row as a Z in Column B. It may be
therefore that a re-write of your formula may be in order. What data is
contained in Column Q? If it is just Z'd with no corresponding A in Column
L you want then

{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="Z"),))}

works just as well for me. Try reducing the range sizes and then
highlighting everything in your formula except the COUNT and press F9 to see
what is actually being counted.


Regards

Sandy

--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Scott Calkins via OfficeKB.com" wrote in message
...
Yep, the range may be 1-65500 but only 1-262 have data in them and of

those
"Z" only is used 20 times.

--
Message posted via http://www.officekb.com




  #5   Report Post  
bj
 
Posts: n/a
Default

try selecting everything
<data<filter<auto filter
Select custom not equal to "A" in column L and "Z" in column B .
Check column Q what is there.

This should let you see if there is something odd in your file.
try also
=sumproduct(--('Raw data'!L1:L65500<"A"),--('Raw
data'!B1:B65500="Z"),--(isnumber('Raw data'!B1:B65500))

"Scott Calkins via OfficeKB.com" wrote:

I am using the following 2 formulas to pull occurrances of a letter in a
column.
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="L"),'Raw
data'!Q1:Q65500))}
and
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="Z"),'Raw
data'!Q1:Q65500))}

The first formula works fine, but the second comes back with the wrong
total(should be 20 with my test data, giving 230). The only difference is
changing the "L" to a "Z". Is ="Z" used for something else in excel, i.e.
z-test or something? If so is there another way to get the occurrances of
"Z" in column B when column L ="A"?

--
Message posted via http://www.officekb.com



  #6   Report Post  
bj
 
Posts: n/a
Default

one additional comment your equations show when L < A but your Question is
for when column L = A. change my trys to =A ranter than < A if you really
do want to have the =

"Scott Calkins via OfficeKB.com" wrote:

I am using the following 2 formulas to pull occurrances of a letter in a
column.
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="L"),'Raw
data'!Q1:Q65500))}
and
{=COUNT(IF(('Raw data'!L1:L65500<"A")*('Raw data'!B1:B65500="Z"),'Raw
data'!Q1:Q65500))}

The first formula works fine, but the second comes back with the wrong
total(should be 20 with my test data, giving 230). The only difference is
changing the "L" to a "Z". Is ="Z" used for something else in excel, i.e.
z-test or something? If so is there another way to get the occurrances of
"Z" in column B when column L ="A"?

--
Message posted via http://www.officekb.com

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
Dual Justifications in a cell? John Keith Excel Discussion (Misc queries) 0 April 26th 05 02:45 PM
Opening two excel worksheets with dual monitors. Brian Finnerty Excel Worksheet Functions 2 March 29th 05 08:49 PM
I have dual monitors. I need to view spreadsheets on both monito. Judy New Users to Excel 7 February 22nd 05 02:12 AM
How do you create dual drop down menus in excel 2000? Phlashh Excel Discussion (Misc queries) 1 January 11th 05 08:56 PM
Does a dual processor configuration noticeably improve Excel spre. sabspenc Excel Discussion (Misc queries) 2 January 7th 05 07:06 PM


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