Vlookup and IsError functions in sports data

Jwan622

New Member
Joined
Jul 17, 2013
Messages
40
NameDay 1Day 2Average data (if there does not exist data for both days, use 1)
KevinDurantKevin Durant#N/A41.6??
LeBronJamesLeBron James#N/A56.6??
KevinLoveKevin Love#N/A47.5??
ChrisPaulChris Paul42.3#N/A??
CarmeloAnthonyCarmelo Anthony#N/A38.3
JohnWallJohn Wall54.741.4

<colgroup><col span="2"><col><col span="4"></colgroup><tbody>
</tbody>



So here's the problem. This is a section of my 6000 entry excel file. In the Day 1 column, I have the point total for some point weighing system. If there's an N/A it means they didn't play on day 1. In Day 2 column, there's the point total for some point weighing system (these are like fantasy points). In the average column, I want to compute the average IF both days there exists fantasy points. If there's only points for Day 1 or Day 2, then I want to use that day's point total and don't average it. How do I do this?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
=IF(NOT(OR(ISERROR(A1),ISERROR(B1)),AVERAGE(A1,B1),IF(ISERROR(A1),B1,A1))

not tested, but I think that should work.
 
Upvote 0
* messed up parathesis

=IF(NOT(OR(ISERROR(A1),ISERROR(B1))),AVERAGE(A1,B1),IF(ISERROR(A1),B1,A1))
 
Upvote 0

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

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