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:
AB
11.2
1213
1< 1.0
1< 1.0
1213
10.0014
10.0109
14
0.0010.00045
0.0030.1
0.0032
0.0050.074
0.0030.08
0.003< 0.000020
0.015< 0.000020
0.0001< 2.0
0.0001< 0.000050
0.0005< 0.000050

<tbody>
</tbody><colgroup><col><col></colgroup>


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
You are welcome!
 
Upvote 0

Forum statistics

Threads
1,215,340
Messages
6,124,386
Members
449,155
Latest member
ravioli44

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