Correct result for team when home or away

William53

New Member
Joined
Jul 8, 2017
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hi All
I have just got back into excel after some years of absence and have a problem which I cannot seem to solve, so ask the experts.

1645995224410.png

I have the above table showing a team, Wellington Phoenix and the last four actual games with dates. I have a simple formula in R1 column which is just "H" minus "A".
In R2 I have the following formula which refers to R1 column =IF(P2<>"",IF(P2>0,"W",IF(P2<0,"W",IF(P2=0,"D","L")))). This is fine for the actual result of the match but I want R2 to show the actual Wellington Phoenix result. As you can see in the sixth result it is showing a win when in fact Wellington lost.

Is there a formula that can capture what the result is for Wellington whether or not they are home or away?
Any help or assistance would be gratefully received.

Thanks

William
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi,

May be something like this:

Book3.xlsx
LMNOPQ
1HomeAwayHAR1R2
2Wellington PhoenixMelbourne101W
3Wellington PhoenixAdelaide110D
4Wellington PhoenixBrisbane000D
5Wellington PhoenixSydney110D
6NewcastleWellington Phoenix121W
7Wellington PhoenixPerth12-1L
Sheet1025
Cell Formulas
RangeFormula
P2:P7P2=IF(COUNT(N2:O2)=2,IF(L2="Wellington Phoenix",N2-O2,O2-N2),"")
Q2:Q7Q2=IF(P2="","",IF(P2>0,"W",IF(P2=0,"D","L")))
 
Upvote 0
Hi "jtakw" and "steve the fish" many thanks for your assistance, both solutions work perfectly well. Made my Monday morning.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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