Is there a way to get the data from a trendline into a cell? I have a 3rd order polynomial regression that I want to get the coeffiecents from.
Thanks
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Polynomial Regression (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Polynomial Regression (2000)
- This topic has 3 replies, 3 voices, and was last updated 23 years, 8 months ago.
AuthorTopicWSgibbindr
AskWoody LoungerSeptember 10, 2001 at 6:17 pm #360168Viewing 0 reply threadsAuthorReplies-
WSJIMbythebay
AskWoody LoungerSeptember 10, 2001 at 11:23 pm #541788Here are several ways, which are all variations on the same theme. This is a distillation of what I learned in many exchanges with Hans and others (many thanks!)
1)
Select four cells together in a single row. Type the following formula, then type Ctrl-Shift-Enter (instead of just plain-old Enter):=LINEST(YRange, XRange^{1,2,3},TRUE,TRUE)
where YRange is the range containing the Y data on the chart, and XRange contains the X data on the chart. Make sure YRange and XRange have the same number of cells in them, and that none of the cells are empty. The formula in the formula bar will now look like this:
{=LINEST(YRange,XRange^{1,2,3},TRUE,TRUE)}
The first cell will contain the cubed term, second cell the squared term, third cell the X term and the fourth cell the constant term.
2)
If you don’t like the terms in a row and want them in a column instead, select four cells in a column and type the following formula, then press Ctrl-Shift-Enter:=TRANSPOSE(LINEST(YRange,XRange^{1,2,3},TRUE,TRUE))
3)
If you don’t like array-entry (Ctrl-Shift-Enter), you can calculate each term individually, by typing formulas as follows:=INDEX(LINEST(YRange,XRange^{1,2,3},TRUE,TRUE),1,4)
This particular one will calculate the constant term only. For the other tterms, use the same formula, but change the 4 to 3, 2 or 1 for the X term, squared term and cubed term respectively.
If your data has gaps at the “ends”, these formulas will choke on the empty cells. Someone else posted a very nice custom VBA formula that takes account of empty cells, but I don’t know how to post a link to another thread (sorry, maybe someone else can point the way!).
-
WSWebGenii
AskWoody LoungerSeptember 11, 2001 at 12:24 am #541802I’m going to stay far away from polynomial regression – but I will answer the question about linking to another thread.
The button circled in Red is from the 1-Click TagPanel. It will insert a tag (hard brackets have been replace by | symbol, so the board doesn’t turn it into code)like this:
|url=link|description|[/url|
Replace the word “link” with the address of the thread you wish to link to (this can be copied out of the address bar).
Replace the word “description” with your descriptive text.FAR FAR easier than polynomial regression I’m sure.
Cheers
-
WSgibbindr
AskWoody Lounger
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 7 ISO /Windows 10 ISO
by
ECWS
1 hour, 33 minutes ago -
No HP software folders
by
fpefpe
2 hours, 18 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
18 minutes ago -
Stay connected anywhere
by
Peter Deegan
7 hours, 41 minutes ago -
Copilot, under the table
by
Will Fastie
4 hours, 55 minutes ago -
The Windows experience
by
Will Fastie
13 hours, 55 minutes ago -
A tale of two operating systems
by
Susan Bradley
4 hours, 51 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
19 hours, 15 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 10 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
3 hours, 41 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 11 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 3 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 3 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 5 hours ago -
MS Passkey
by
pmruzicka
1 day, 7 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 13 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 23 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 12 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 7 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 16 hours ago -
AI slop
by
Susan Bradley
1 day, 10 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 17 hours ago -
Two blank icons
by
CR2
1 day, 2 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 4 hours ago -
End of 10
by
Alex5723
4 days, 5 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 days, 3 hours ago -
test post
by
gtd12345
4 days, 11 hours ago -
Privacy and the Real ID
by
Susan Bradley
4 days, 1 hour ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
2 days, 4 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.