Can I Use an IF Statement for Regression in Excel?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
MaxManus
Messages
268
Reaction score
1
Regression in Excel

I want to make an regression of some data, but I only want to use some of the data. The data I want use is where Vacant = 1.
Is this possible in excel?

I have tried to use the if-function but the regression does not like "false"


More info

I want to make a regression of Price = B1 + B2*sqft for the vacant houses.
 

Attachments

Last edited:
Physics news on Phys.org
Excel is mostly hands-on

The simple solution is sort on the vacancy column and then graph the data with vacancy=1 using scatter plot.
This would be the result: price = 69.9 SQFT - 4793
 

Attachments