Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Counting cells

I forgot sumproduct isn't case sensitive so you don't need upper

=SUMPRODUCT((ISNUMBER(C1:C2000)*(TRIM(H1:H2000)="B AILEY, DANIEL")))

Mike

"Mike H" wrote:

Try this small change

=SUMPRODUCT((ISNUMBER(C1:C2000)*(UPPER(TRIM(H1:H20 00))="BAILEY, DANIEL")))

Mike

"Joel D" wrote:

I've gotten it so that the message doesn't show up, but it says 0, where
there should be a value in it.

In Column 'C' there are dates(ex. 09/30/2008) in random rows. And in Column
H, there are names, (ex, BAILEY, DANIEL)

This is what I have typed in :
=SUMPRODUCT((ISNUMBER(C1:C2000)*(H1:H2000="BAILEY, DANIEL")))

To clarify, I am trying to see how many times "BAILEY, DANIEL" occurs if
there is a date in column C

Joel
"Mike H" wrote:

Joel,

I've tried many things and can't generate a #NUM error with this formula.
Did you copy and paste the formula or did you retype it?

Please post exactly what yo have in the 2 columns

Mike

"Joel D" wrote:

Hello,

I tried that and the #NUM! error message showed up. The cells are formatted
as "general", not number or date. Is there a way to do this with that format?

"Mike H" wrote:

Hi,

dates in Excel are numbers formatted to be seen as dates we recognise so
provided you have no numbers other than dates in Column C this should work

=SUMPRODUCT((ISNUMBER(C1:C30)*(H1:H30="Joe Bloggs")))

If you do have numbers that aren't dates in c then post back.

Mike

"Joel D" wrote:

Hi there,

Let me see if I can make this question make sense. I have two colums in
excel, C and H. Column 'C' contains some cells that have a date (in the form
of mm/dd/yyyy). Column 'H' contains names. I am trying to count the number
of times a name occurs, IF there is a date in column c. (No date specificly).

Thanks for your help

Joel

 
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
Counting the number of cells between 2 seperate cells mpenkala Excel Discussion (Misc queries) 2 April 16th 08 05:04 PM
counting cells that are 0 in a range of non-contiguous cells Mark Excel Worksheet Functions 9 March 14th 07 02:45 PM
Query counting cells in a row that exactly match cells in another Marlsnz Excel Discussion (Misc queries) 1 June 2nd 06 07:08 AM
Complicated counting of cells (based on other cells contents) George Excel Worksheet Functions 3 November 7th 05 06:39 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM


All times are GMT +1. The time now is 11:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"