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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,214,569
Messages
6,120,286
Members
448,953
Latest member
Dutchie_1

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