Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ragdyer
 
Posts: n/a
Default GREATER OR EQUAL TO BUT LESS THAN Problem using Sumproduct

Does this work for you:

=SUMPRODUCT((DATA!C2:C2500=AA16)*(DATA!C2:C2500<= AA34)*(DATA!H2:H2500=18)*
(DATA!H2:H2500<=20))

?
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Iain Halder" wrote in message
...
Hi,

I have a list of ages of various patients from 18 to 65.

I'm breaking them into age groups and am using SUMPRODUCT.


=SUMPRODUCT((DATA!C2:C2500=AA16)*(DATA!C2:C2500<= AA34)*(DATA!H2:H2500=18<2
0))

C2:C2500 are date fields in format 01-Jan-05.
AA16 & AA34 are Start and Finish dates (months really).
H2:H2500 are the various ages.

AGE MONTH
<18 ?
18-20 ?
21-25 ?
26-30 ?
31-35 ?

... and so on up to age greater than 65

The problem is the =(age)<(age) bit ... how do I type this in
properly? I've tried a few variations which make sense to me but not,
alas, the computer.

Thank you for your help in this guys!

Iain

o< Rescued Cats & Kittens Needing Homes o<
o< www.celiahammond.org o<
o< www.cat77.org.uk o<


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
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
problem office assistant R.VENKATARAMAN Excel Discussion (Misc queries) 0 June 15th 05 06:22 AM
How to solve problem (equal to 0) with unknown value nj125 Excel Discussion (Misc queries) 0 May 19th 05 03:31 AM
Slight problem automating Excel in a service someone Setting up and Configuration of Excel 2 May 13th 05 10:04 PM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 09:08 PM


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