How do I subtract in either direction?

dlvgolf

New Member
Joined
Dec 16, 2004
Messages
19
Here is what I tried:
=IF(SUM(A5)<A5,=(A5-A5),IF(SUM(A5)=A5,"0",IF(SUM(A5)>A5,=)A5-A5))))

But, even if I could get that to work, it wouldn't show me if the result was for the Blue or Green Team

Column A = Blue Team; Column B = Green Team
Cell A5 = 1; Cell B5 = 2
Cell C5 needs to show "G1" (Green Team wins by 1)
or if
Cell A5 = 3; Cell B5 = 1
Cell C5 would need to show "B2" (Blue Team wins by 2)

then

in another cell add the number result from above (Cell C5) to a number in a completely different cell (Cell D15).


Thanks again for all your help.

Green Team Blue Team
- 1 - Whib / Ski Craig / Hugo
Front -1 +2 G+2
Back +2 +1 B+2
Birdies 2 3 (1)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Say A1 and B1 contain Blue and Green respectively. In C5:

=LEFT(INDEX(A$1:B$1,,MATCH(MAX(A5:B5),A5:B5,0)))&ABS(A5-B5)
 
Upvote 0
Or possibly in C5:
=IF(B5>A5,"G"&TEXT(B5-A5,"#"),IF(A5>B5,"B"&TEXT(A5-B5,"#"),"Tie"))
 
Upvote 0
Just a little more help please...

What would I use in Cell D15 to add the results from the above number to another cell?

Thanks again for your help.
 
Upvote 0

Forum statistics

Threads
1,215,586
Messages
6,125,681
Members
449,249
Latest member
ExcelMA

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