Displaying the Value of a Specific Point on a Trendline

I want to find a specific value for a point on a Trend line. My X values are dates and my Y values are currency. My arrays have blanks to complicate it. I know I can manually calculate using the equation but I want this automated so when I add the values for future months the cell will recalculate. The goal is to forecast end of year spending based on monthly expenditures to date. If there is an easier way to do this (instead of trendlines) I'm all ears.

MacBook Pro 13″, macOS 15.6

Posted on Sep 29, 2025 12:54 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 29, 2025 1:27 PM

Isn't this what FORECAST() does?


Given an array of values (e.g. your monthly expenditures) and an array of indices (e.g. months of the year) FORECAST() will return an expected value for a given period:


For example, I replicated your table (at least what I could wean from your description).


I added an additional column B which calculates MONTH(A) to extract the month number (FORECAST() can't mix date and numeric fields, so I just extract the relevant month data.



Now the formula in the footer cell is:


=FORECAST(12,C2:C13,B2:B13)


This calculates the forecasted 12th value based on the expenses in C2:13, based on the indexes in B2:B13 (months). In this case, based on the expenses listed, it forecasts my December expense will be $154.06


3 replies
Question marked as Top-ranking reply

Sep 29, 2025 1:27 PM in response to Guns

Isn't this what FORECAST() does?


Given an array of values (e.g. your monthly expenditures) and an array of indices (e.g. months of the year) FORECAST() will return an expected value for a given period:


For example, I replicated your table (at least what I could wean from your description).


I added an additional column B which calculates MONTH(A) to extract the month number (FORECAST() can't mix date and numeric fields, so I just extract the relevant month data.



Now the formula in the footer cell is:


=FORECAST(12,C2:C13,B2:B13)


This calculates the forecasted 12th value based on the expenses in C2:13, based on the indexes in B2:B13 (months). In this case, based on the expenses listed, it forecasts my December expense will be $154.06


Sep 29, 2025 4:22 PM in response to Guns

> I was using the date as one of the arrays not the month so I just put in a month column like yours that I can hide.


There is a way to do it - it's just a little more work, but may be better depending on the consistency of the dates (e.g. the expenses are paid on the first of every month, then the month index is sufficient, but if the expenses vary, then you may want a specific date).


The solution in this way would be to use the date column (rather than month index) as the third parameter to FORECAST(), and provide a date value as the first parameter, like:


=FORECAST(DATE(2025,12,1),C,A)


which may be more flexible, depending on circumstances.


Sep 29, 2025 2:25 PM in response to Camelot

That solves it. I was using the date as one of the arrays not the month so I just put in a month column like yours that I can hide. Also Im interested in the end of year forecast so I have a "Cumulative" column...the formula still works.



I then put in a simple IF-Then statement in the Cumulative cells to auto-populate once I add values for the monthly expenses for future months. Im using a linear Trend line but I think a polynomial Trend line would be "closer" might be more precise. Id have to research that a bit. Thank you!


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Displaying the Value of a Specific Point on a Trendline

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.