LINEST/REGRESSION skipping blanks

smeador

New Member
Joined
Nov 30, 2014
Messages
12
Hey guys,

This is my first post on the forum and I'm hoping to get some of the same help others have received. I am running a spreadsheet on excel for a daily fantasy basketball algorithm and so far I have succeeded in developing efficient macros to grab particular player data from a number of sites each day. I am not a 'master' of excel, but I have taken a college course and consider myself skilled.

So I am trying to run a multiple regression analysis on the data in an effort to forecast the player's actual fantasy score for the particular day. However, as you can see in the table I have posted below there are blanks in various categories on any given day. Some sites don't post projections for marginal players, and certain calculated statistics are irretrievable for some players on any given day for various reasons. Also, some of the projections/data were not made available to the public on the websites for the first few games due to the lack of predictability in the early season.

I have tried to take bits and pieces from a number of existing forums here but I just cannot seem to get any LINEST function to skip blanks effectively. I have tried using the SLOPE and INTERCEPT functions but it comes back with an error since the KNOWN X's have several columns and the KNOWN Y's has only one column. And yes I have array entered them.

What I need:
A formula that will give me AT LEAST the coefficients of each of the predictor variables and the intercept while skipping blanks. I do not want an entire row to be skipped due to a blank somewhere in the row. If this can be done using simply using the slope and intercept functions I would be thrilled, but I need a specific formula rather than just suggestions (sorry, learning most of this on the fly).

so the format I want: Actual=intercept + m1*AvgFP + m2*BaseV + ..... etc

KNOWN Y's (Actual): A1:A16
KNOWN X's (all other columns): B1:L16

Thanks so much in advance!


ActualAvgFPBaseVBaskMonsterCompVDvP_ DiffEaseExpertsMPGRestRotoGrindersWtd_FP
51.542.5412241.4168700.1536.8100
5641.8476146.9700651.50.6336.22
3742.5412244.8441653.750.3236.80
42.741.3852137.3228348.17-0.8735.82
56.541.3852139.297246.8-0.1735.82
45.442.5412239.667948.74-0.2436.80
27.741.3852142.2422348.18-0.0335.81
25.141.1540142.2084245.54-0.335.61
39.541.1540144.8275842.98750.62581635.6140.94
56.337.6859740.2864342.60.62885432.60
2939.5355940.7260943.97-0.0391334.2444.51
32.237.2235736.6109742.609090.05842232.2141.83
63.741.639.5433.9841.74-0.0173-0.61334.2140.7740.92
41.637.2236.2343.430.13050.35132.2042.6947.08
41.843.536.2137.8647.790.1330.54228.6145.3349.24

<tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Also,

The table above shows almost no blanks until the bottom part of some columns. However, this is not the case for most of the data sets for players. Most of the time there are not any columns with data in each cell.

Thanks
 
Upvote 0
Typically, the safest thing to do is exclude the entire row if it is missing a value for a given predictor. If you have lots of rows with a single different predictor missing - obviously this will reduce your dataset to virtually nothing. There are other statistical techniques for "filling the gaps", which are probably frowned upon to different degrees. You would find these options in standalone statistical environments, not in Excel.
 
Upvote 0

Forum statistics

Threads
1,216,771
Messages
6,132,611
Members
449,740
Latest member
tinkdrummer

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