compare cell A to corresponding cell B and count if B > A but ignore cells with "<" sign

dupont

New Member
Joined
Mar 1, 2018
Messages
3
I have the data set below and I need help to compare cell A to corresponding cell B and count if B > A but ignore cells with "<" sign:
[TABLE="width: 239"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1.2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]213[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]< 1.0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]< 1.0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]213[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]0.0014[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]0.0109[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]0.001[/TD]
[TD]0.00045[/TD]
[/TR]
[TR]
[TD]0.003[/TD]
[TD]0.1[/TD]
[/TR]
[TR]
[TD]0.003[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]0.005[/TD]
[TD]0.074[/TD]
[/TR]
[TR]
[TD]0.003[/TD]
[TD]0.08[/TD]
[/TR]
[TR]
[TD]0.003[/TD]
[TD]< 0.000020[/TD]
[/TR]
[TR]
[TD]0.015[/TD]
[TD]< 0.000020[/TD]
[/TR]
[TR]
[TD]0.0001[/TD]
[TD]< 2.0[/TD]
[/TR]
[TR]
[TD]0.0001[/TD]
[TD]< 0.000050[/TD]
[/TR]
[TR]
[TD]0.0005[/TD]
[TD]< 0.000050[/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]


Thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Welcome to the Board!

Assuming your data is in the range A2:B19, try this formula:
Code:
=SUMPRODUCT(--(B2:B19>A2:A19),--(LEFT(B2:B19,1)<>"<"))
 
Upvote 0
Joe4,

That works, thank you. what does that second part of the formula do?- pardon my limited knowledge in this.
 
Upvote 0
Basically, there are two parts to the formula, and both have to be TRUE in order for the record to be counted.
The first part checks for column B greater than column A.
The second part check for column B NOT to start with a "<" sign (note that "<>" means "not equal to").
 
Upvote 0

Forum statistics

Threads
1,223,959
Messages
6,175,645
Members
452,663
Latest member
MEMEH

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