jblonde002
Board Regular
- Joined
- Jun 10, 2014
- Messages
- 61
Pardon my ignorance but I'm struggling with this one! I have an dataset as shown below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]77+[/TD]
[TD]77[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]98-[/TD]
[TD]88[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]66=[/TD]
[TD]66[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]55+[/TD]
[TD]66[/TD]
[/TR]
</tbody>[/TABLE]
The formula I would like to crack requires comparing the leftmost digit from column A to the leftmost digit in column B over the array and summing the total that are under/on/over. So using this example:
Over target (where A>B): 1 A2
On target (where A=B): 2 A1,A3
Below target (where A<B) 1A<b: <strong="">1 A4
I've tried =countif(value(left(A1:A4,1)=value(left(B1:B4,1) but I'm definitely not on the right lines as Excel won't even let me enter it! Thanks for any help you can give!</b:>
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]77+[/TD]
[TD]77[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]98-[/TD]
[TD]88[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]66=[/TD]
[TD]66[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]55+[/TD]
[TD]66[/TD]
[/TR]
</tbody>[/TABLE]
The formula I would like to crack requires comparing the leftmost digit from column A to the leftmost digit in column B over the array and summing the total that are under/on/over. So using this example:
Over target (where A>B): 1 A2
On target (where A=B): 2 A1,A3
Below target (where A<B) 1A<b: <strong="">1 A4
I've tried =countif(value(left(A1:A4,1)=value(left(B1:B4,1) but I'm definitely not on the right lines as Excel won't even let me enter it! Thanks for any help you can give!</b:>
Last edited: