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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
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)
 

West Man

Well-known Member
Joined
Mar 27, 2006
Messages
1,175
Or possibly in C5:
=IF(B5>A5,"G"&TEXT(B5-A5,"#"),IF(A5>B5,"B"&TEXT(A5-B5,"#"),"Tie"))
 

dlvgolf

New Member
Joined
Dec 16, 2004
Messages
19
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.
 

Forum statistics

Threads
1,176,627
Messages
5,904,113
Members
435,074
Latest member
McKay_S

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
Top