#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Functions

Column A: Column C:
Jan - 18 19000
Jan - 21 24000
Jan - 24 15000
Feb - 11 39000
Feb - 15 62000
Feb - 26 7000
Mar - 7 15000

I need to get this in format

Jan Feb

<20k 2 1
21-49 1 1
50-75 1

The formula involved obviously involves a COUNTIF but need to condition on
the month

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Functions

Hi Teresa

one option is to use the following formulas
assuming your data range is A2:C8
and you want the answers in
B2:C14
the formula for B12 would be
=SUMPRODUCT(--(MONTH($A$2:$A$8)=1)*($C$2:$C$8<=20000))
for B13
=SUMPRODUCT(--(MONTH($A$2:$A$8)=1)*($C$2:$C$820000)*($C$2:$C$8< =49000))
and for B14
=SUMPRODUCT(--(MONTH($A$2:$A$8)=1)*($C$2:$C$849000)*($C$2:$C$8< =75000))

the formulas can then be copied for feb changing the 1 to 2 e.g.
=SUMPRODUCT(--(MONTH($A$2:$A$8)=2)*($C$2:$C$8<=20000))

Cheers
JulieD

"teresa" wrote in message
...
Column A: Column C:
Jan - 18 19000
Jan - 21 24000
Jan - 24 15000
Feb - 11 39000
Feb - 15 62000
Feb - 26 7000
Mar - 7 15000

I need to get this in format

Jan Feb

<20k 2 1
21-49 1 1
50-75 1

The formula involved obviously involves a COUNTIF but need to condition
on
the month

Thanks





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
Multiple functions, conditional functions HeatherBelle Excel Worksheet Functions 7 October 17th 08 03:57 PM
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Public Functions As Worksheet Available Functions Steve King Excel Programming 3 February 12th 05 07:55 PM
excel functions and User defined functions Kanan Excel Programming 4 May 20th 04 11:21 PM


All times are GMT +1. The time now is 07:08 PM.

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"