Excel - linest function with blanks help

  • Thread starter Thread starter lavster
  • Start date Start date
  • Tags Tags
    Excel Function
Click For Summary
SUMMARY

The discussion focuses on using the Excel LINEST function with blank cells in the dataset. The specific formula provided is =INDEX(LINEST(E6:E16,A6:A16^{1,2,3}),1), where A6:A16 contains a series of numbers from 25 to 35, and E6:E16 contains measurements that may be blank. A solution is proposed using an array formula that requires pressing Ctrl+Shift+Enter, which utilizes the OFFSET and SMALL functions to handle the blanks effectively.

PREREQUISITES
  • Familiarity with Excel functions, particularly LINEST and INDEX
  • Understanding of array formulas in Excel
  • Knowledge of the OFFSET function in Excel
  • Basic statistical concepts related to regression analysis
NEXT STEPS
  • Research how to use Excel array formulas effectively
  • Learn about the OFFSET function and its applications in Excel
  • Explore advanced usage of the LINEST function for regression analysis
  • Investigate methods to handle blank cells in Excel datasets
USEFUL FOR

This discussion is beneficial for Excel users, data analysts, and anyone involved in statistical analysis who needs to perform regression calculations while managing incomplete datasets.

lavster
Messages
213
Reaction score
0
Hi,
Ive been trying to use the linest function with blanks but I can't get it to work... (specifically =INDEX(LINEST(E6:E16,A6:A16^{1,2,3}),1). Here A6:A16 is a number increasing in increments of 1 between 25 to 35, and E6:E16 is only filled if the corresponding measurment is made. Does anyone know how to do this? I attach a screen shot
Thanks
 

Attachments

  • screen shot.png
    screen shot.png
    3.4 KB · Views: 665
Physics news on Phys.org
LINEST can be expressed in terms of more basic functions, if the built-in function does not work. Alternatively, you can make a second list with only the measured values.
 
The solution to this is non-trivial. The following should work, but it is an array function. This means, when you place it, you must press Ctrl+Shift+Enter, rather than Enter.

Code:
=INDEX(LINEST(N(OFFSET(A6:A16,SMALL(IF(A6:A16<>0,ROW(A6:A16)-ROW(A6)),
  ROW(INDIRECT("1:"&COUNT(A6:A16)))),,1)),N(OFFSET(E6:E16,
  SMALL(IF(A6:A16<>0,ROW(A6:A16)-ROW(A6)),ROW(INDIRECT("1:"&
  COUNT(A6:A16)))),,1))),1)

I'm not sure what "^{1,2,3}" was supposed to do, but I'm sure you can incorporate that through careful editing of the above expression.
 

Similar threads

Replies
10
Views
2K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 75 ·
3
Replies
75
Views
13K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 2 ·
Replies
2
Views
621
  • · Replies 10 ·
Replies
10
Views
11K