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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,224,942
Messages
6,181,900
Members
453,068
Latest member
DCD1872

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