value is greater in a column than corresponsing value in ano

mzsaad

New Member
Joined
Aug 24, 2006
Messages
27
here is the question:

i need to know how many rows exist in which value of A is greater than corresponding value in B.

for example, i have two columns. A and B. Both have numbers:

A|B
----
1|3
2|4
5|4
2|4
2|4

for this example, i m looking for the answer 1 here (as there is only one column in which value of A is greater than corresponding value of B (3rd row)).

thanks in advance.

regards
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
thnx for the reply.

i think ur formula is giving me sums of numbers in A whose value is greater than corresponding number in B.

what i need is number of rows in which number in A is greater than corresponding number in B.

regards
 
Upvote 0
Hi,

I have tested the same formula and it works fine for me. The answer after applying the formula based on the example you posted showed as 1

Peace
Wismer
 
Upvote 0
Fairwinds' formula does what you're asking

To return the sum of the values, you'd use =SUMPRODUCT(--(A1:A10>B1:B10),A1:A10)
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,425
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top