PC Review


Reply
Thread Tools Rate Thread

CountIf on not number values. How can I solve?

 
 
Nicola M
Guest
Posts: n/a
 
      30th Nov 2008
Hi all.
Excel 2003.
I need to count not number values using criteria. In the cell to count I
have letters (like A, L, R etc stands for Absent, Leave, Rest etc). THis
count is to be for nation and I have nationalities in unsorted order in an
other cell. I can't use CountIf because cells don't contain number thought
the nation criteria is respected with this function. Using Count or COuntA I
count correctly the values but without the nation criteria. Even Using VBA is
there a way to solve this issue?
My sheet headers are on row 1. Data starts from Row 2 with the following
structure:
A= Surname and Name; B= Nationality; C to n= Days number

Thanks in advance for every kind of help or suggestion and for my non
perfect English.
Nicola M.
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      30th Nov 2008
Hi Nicola,

I don't understand your data layout. You refer to

A= Surname and Name; B= Nationality; C to n= Days number

but don't say where these are
letters (like A, L, R etc stands for Absent, Leave, Rest etc).

This may point you in the right direction

To count English absence
=SUMPRODUCT((B1:B20="English")*(C1:C20))

To count Nicola's absence

=SUMPRODUCT((A1:A20="Nicola M")*(B1:B20="English")*(C1:C20))

Mike




"Nicola M" wrote:

> Hi all.
> Excel 2003.
> I need to count not number values using criteria. In the cell to count I
> have THis
> count is to be for nation and I have nationalities in unsorted order in an
> other cell. I can't use CountIf because cells don't contain number thought
> the nation criteria is respected with this function. Using Count or COuntA I
> count correctly the values but without the nation criteria. Even Using VBA is
> there a way to solve this issue?
> My sheet headers are on row 1. Data starts from Row 2 with the following
> structure:
> A= Surname and Name; B= Nationality; C to n= Days number
>
> Thanks in advance for every kind of help or suggestion and for my non
> perfect English.
> Nicola M.

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      30th Nov 2008
If I understand your layout correctly, you can do something like this to
count all of the, say, American Leaves...

=SUMPRODUCT((B2:B200="American")*(C2:IV200="L"))

where the 200s need to be a number large enough to cover the maximum row
number you ever expect to have data in. You can also adjust the IV column
reference to the actual maximum column you ever expect to have data in. To
get any other statistics, just change the "American" and the "L" to what you
are looking for.

--
Rick (MVP - Excel)


"Nicola M" <(E-Mail Removed)> wrote in message
news:0BE3EE62-4AE9-41D7-91D5-(E-Mail Removed)...
> Hi all.
> Excel 2003.
> I need to count not number values using criteria. In the cell to count I
> have letters (like A, L, R etc stands for Absent, Leave, Rest etc). THis
> count is to be for nation and I have nationalities in unsorted order in an
> other cell. I can't use CountIf because cells don't contain number thought
> the nation criteria is respected with this function. Using Count or COuntA
> I
> count correctly the values but without the nation criteria. Even Using VBA
> is
> there a way to solve this issue?
> My sheet headers are on row 1. Data starts from Row 2 with the following
> structure:
> A= Surname and Name; B= Nationality; C to n= Days number
>
> Thanks in advance for every kind of help or suggestion and for my non
> perfect English.
> Nicola M.


 
Reply With Quote
 
Nicola M
Guest
Posts: n/a
 
      30th Nov 2008
Really I didn't know this formula. It's just that I need.
Sorry for the bad explanation of layout. C is 1st of the month, D is 2nd and
so on. Letters could be from C2" to lastRow,LastCol and I need to get daily
report of L,R and A divided by nation.
Thank you again.
Nicola M.

"Mike H" wrote:

> Hi Nicola,
>
> I don't understand your data layout. You refer to
>
> A= Surname and Name; B= Nationality; C to n= Days number
>
> but don't say where these are
> letters (like A, L, R etc stands for Absent, Leave, Rest etc).
>

[CUT]
 
Reply With Quote
 
Nicola M
Guest
Posts: n/a
 
      30th Nov 2008
Thank you Rick.


"Rick Rothstein" wrote:

> If I understand your layout correctly, you can do something like this to
> count all of the, say, American Leaves...
>
> =SUMPRODUCT((B2:B200="American")*(C2:IV200="L"))
>
> where the 200s need to be a number large enough to cover the maximum row
> number you ever expect to have data in. You can also adjust the IV column
> reference to the actual maximum column you ever expect to have data in. To
> get any other statistics, just change the "American" and the "L" to what you
> are looking for.
>
> --
> Rick (MVP - Excel)
>
>
> "Nicola M" <(E-Mail Removed)> wrote in message
> news:0BE3EE62-4AE9-41D7-91D5-(E-Mail Removed)...
> > Hi all.
> > Excel 2003.
> > I need to count not number values using criteria. In the cell to count I
> > have letters (like A, L, R etc stands for Absent, Leave, Rest etc). THis
> > count is to be for nation and I have nationalities in unsorted order in an
> > other cell. I can't use CountIf because cells don't contain number thought
> > the nation criteria is respected with this function. Using Count or COuntA
> > I
> > count correctly the values but without the nation criteria. Even Using VBA
> > is
> > there a way to solve this issue?
> > My sheet headers are on row 1. Data starts from Row 2 with the following
> > structure:
> > A= Surname and Name; B= Nationality; C to n= Days number
> >
> > Thanks in advance for every kind of help or suggestion and for my non
> > perfect English.
> > Nicola M.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
countif Access 2000 - counting the number of values above 0 =?Utf-8?B?WmFi?= Microsoft Access Queries 3 2nd Oct 2007 01:57 PM
Is there any function to solve the string to values? ABC Microsoft C# .NET 1 26th Jan 2007 05:09 AM
how to solve this by countif =?Utf-8?B?ZHJpYmxlcjI=?= Microsoft Excel Worksheet Functions 4 30th Dec 2006 10:49 PM
countif formula to find the occurances of a number that is greater than one number but less than another steveo Microsoft Excel Misc 3 8th Jul 2006 02:04 AM
count number of values using countif ronenpl Microsoft Excel Worksheet Functions 3 21st Mar 2004 12:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:01 PM.