Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default conditional counts across columns

I want to count the number of times the date in cell (Row=N,Column=M)
is later than the date in cell (Row=N,Column=J), where N ranges down
some number of rows. Is there a way of doing this with pure Excel
expressions? I think it could be done with some magic combination of
INDIRECT, OFFSET, ROW, and so on, but for example the formula
=IF(("$D$"&ROW())"$C$"&ROW(),1,0) seems to compare the strings and
not the contents of the cells.

Steven Stovall

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default conditional counts across columns

Hi
could you give some real cell references. I think COUNTIF isn what
you're looking for

--
Regards
Frank Kabel
Frankfurt, Germany

"Steven Stovall" schrieb im Newsbeitrag
m...
I want to count the number of times the date in cell (Row=N,Column=M)
is later than the date in cell (Row=N,Column=J), where N ranges down
some number of rows. Is there a way of doing this with pure Excel
expressions? I think it could be done with some magic combination of
INDIRECT, OFFSET, ROW, and so on, but for example the formula
=IF(("$D$"&ROW())"$C$"&ROW(),1,0) seems to compare the strings and
not the contents of the cells.

Steven Stovall


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default conditional counts across columns

Steve,

This sounds like a simple

=SUMPRODUCT(--(M1:M100J1:J100))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Steven Stovall" wrote in message
m...
I want to count the number of times the date in cell (Row=N,Column=M)
is later than the date in cell (Row=N,Column=J), where N ranges down
some number of rows. Is there a way of doing this with pure Excel
expressions? I think it could be done with some magic combination of
INDIRECT, OFFSET, ROW, and so on, but for example the formula
=IF(("$D$"&ROW())"$C$"&ROW(),1,0) seems to compare the strings and
not the contents of the cells.

Steven Stovall



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default conditional counts across columns

"Bob Phillips" wrote in message ...
Steve,

This sounds like a simple

=SUMPRODUCT(--(M1:M100J1:J100))

--


That did the trick. I'm brand new to this stuff and I appreciate the help.

Steven Stovall
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
Sumproduct Formula to counts multiple criteria in two columns? EricB Excel Worksheet Functions 1 November 19th 08 10:24 AM
How does a macro total columns when sheets have diff row counts? Chuck@qgold Excel Discussion (Misc queries) 1 April 20th 07 04:24 PM
Need formula that Counts items matching criteria using two columns Juana Cafe Excel Worksheet Functions 4 March 3rd 06 08:41 PM
excel command that counts conditions met in 2 columns? brendalw Excel Discussion (Misc queries) 3 July 2nd 05 11:17 PM
Averages and Counts from different columns sonofroy Excel Worksheet Functions 21 May 6th 05 08:13 PM


All times are GMT +1. The time now is 09:55 PM.

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"