Wrong result when using <>

marc01

Board Regular
Joined
Sep 17, 2018
Messages
50
Office Version
  1. 2016
Platform
  1. Windows
Hi all

I have a raw data table and using sum and countifs to calculate answers.

The 2 following formula should in theory return the same answer however the first formula gives the correct answer, but the second formula using not equal to (<>) for 'point won by' is giving the wrong answer (keeps giving me 1 more than it should be)

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIFS(Table1[Server],Summary!$C$2,Table1[1st serve],"T",Table1[Serve+1 Hand],"<>",Table1[Serve+1 Situation],"Neutral",Table1[Point won by],F2)

[/FONT][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=COUNTIFS(Table1[Server],Summary!$C$2,Table1[1st serve],"T",Table1[Serve+1 Hand],"<>",Table1[Serve+1 Situation],"Neutral",Table1[Point won by],"<>C2")[/FONT]

[/FONT]

Even when I change the 'point won by' criteria to "Roger Federer" for example, it works correctly, but not for "<>C2" where C2 may be Rafa Nadal and the only other raw data is Roger Federer. Any ideas on what is going on?

Thanks,

Marc
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Are you sure you want
Code:
[FONT=Verdana][FONT=Verdana]"<>C2"[/FONT][/FONT]
and not
Code:
[FONT=Verdana][FONT=Verdana]"<>"&C2[/FONT][/FONT]
?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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