=SUM issue

CrazyCanuck

New Member
Joined
Oct 30, 2023
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I'm using the formulas below to calculate wins and losses and ties, but when I try to add them after in another cell with =SUM they don't add up it shows "0". What do I need to do to be able to add up these cells?

=IF(B2>D2,"1","") Win
=IF(B2<D2,"1","") Lose
=IF(AND(B2=D2,B2<>"",D2<>""),"1","") Tie (but not empty cells)
 

Attachments

  • minisheet.PNG
    minisheet.PNG
    13.4 KB · Views: 3

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
the "1" is text and not a number
change to just 1
=IF(B2>D2,1,"") Win
then it will sum
=IF(B2<D2,1,"") Lose
=IF(AND(B2=D2,B2<>"",D2<>""),1,"") Tie (but not empty cells)
 
Upvote 0
the "1" is text and not a number
change to just 1
=IF(B2>D2,1,"") Win
then it will sum
=IF(B2<D2,1,"") Lose
=IF(AND(B2=D2,B2<>"",D2<>""),1,"") Tie (but not empty cells)

Perfect. Thank you
 
Upvote 0

Forum statistics

Threads
1,215,221
Messages
6,123,701
Members
449,117
Latest member
Aaagu

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