![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 20
|
I'm wanting to compare two columns of figures, and below the second one use some sort of Count function to establish how many times the values in the second column are smaller than, equal to, and greater than the corresponding ones in the first column. Any idea's what formula I use? I thought it was Countif but I can't get it to work.
Thanks alot. |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 20
|
Ian,
Thanks for the reply, however while this works if I compare each row of the columns individually, it wont work if i try to use it on a range. (i.e. where you have put "cell value", i want to put a range instead). I know, i'm stupid !! Any ideas ?? |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=SUMPRODUCT((B1:B5>A1:A5)+0) You can also look at DCOUNT. Aladin |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 20
|
Thanks Aladin...just what I was looking for.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|