To create a logarithmic forecast in Excel, apply a logarithmic trendline to your data series and display the equation on the chart, then use that equation to calculate future values. This method is useful when data increases or decreases rapidly at first and then levels off, such as in population growth, technology adoption, or decay processes. You’ll need a dataset with time-based independent variables (like months or years) and corresponding dependent values.

What You'll Need

  • Microsoft Excel (2016 or later recommended for full trendline functionality)
  • A dataset with two columns: one for time periods (e.g., dates, months, years) and one for measured values
  • Basic familiarity with Excel charts and formulas

Step-by-Step

  1. Enter your data into two adjacent columns: column A for the independent variable (e.g., time in months: 1, 2, 3...) and column B for the dependent variable (e.g., sales, users, temperature). Ensure there are no blank rows or text entries in the data range.
  2. Select both columns of data, including headers if present.
  3. Go to the Insert tab on the ribbon.
  4. In the Charts group, choose Scatter and select the first scatter plot option (Scatter with only Markers). This ensures Excel treats the X-axis as numerical, not categorical.
  5. Once the chart appears, right-click on any data point in the series and select Add Trendline from the context menu.
  6. In the Format Trendline pane that opens, choose Logarithmic under Trendline Options.
  7. Check the boxes for Display Equation on chart and Display R-squared value on chart. The equation will appear in the form y = m*ln(x) + b, where m is the slope, b is the intercept, and ln(x) is the natural logarithm of x.
  8. Note the displayed equation (e.g., y = 2.5*ln(x) + 10). You will use this to calculate forecast values.
  9. In a new column (e.g., column D), list the future time periods you want to forecast (e.g., 13, 14, 15 for the next three months).
  10. In the adjacent column (e.g., column E), enter the forecast formula using the equation from the trendline. For example, if the equation is y = 2.5*ln(x) + 10, and your future x value is in D2, enter: =2.5*LN(D2)+10 in E2.
  11. Copy the formula down for all future periods to generate the logarithmic forecast.
  12. (Optional) To visualize the forecast, add the forecasted points to the chart: right-click the chart, choose Select Data, click Add, and set the X values to your future time periods and Y values to the forecast column.

Common Mistakes

  • Using a line chart instead of a scatter plot: Line charts treat the X-axis as categories, not numerical values, which prevents accurate logarithmic trendline fitting.
  • Forgetting to use the natural logarithm (LN) function in Excel: The logarithmic trendline uses ln(x), not log10(x), so using LOG or LOG10 will produce incorrect results.
  • Including zero or negative values in the time variable (x): ln(x) is undefined for x ≤ 0, so your time periods must start at 1 or higher.
  • Misreading the equation: The trendline equation uses ln(x), so ensure you apply the LN function, not a simple multiplication.
  • Ignoring the R-squared value: A low R-squared (e.g., below 0.7) indicates the logarithmic model may not fit your data well; consider other trendlines.

Tips

  • Always verify your data makes sense for a logarithmic trend: rapid initial change that slows over time. If your data shows exponential growth, use an exponential trendline instead.
  • Use consistent time intervals (e.g., monthly, yearly) and ensure the first time period is 1 to avoid errors in LN(0).
  • If your time starts at a different number (e.g., year 2020), subtract a base value to make it start at 1: for example, use (year - 2019) as your x variable.
  • Format the trendline equation to show more decimal places: right-click the equation on the chart, choose Format Trendline Label, and increase decimal places under Number Format for better accuracy.
  • Combine the forecast with actuals in a line chart to visually assess how well the logarithmic model tracks historical data.

Troubleshooting

  • #NUM! error in forecast: This occurs if you tried to calculate LN of zero or a negative number. Check that all time values (x) are greater than 0. Adjust your time scale so the first period is 1.
  • Trendline option missing or grayed out: You likely selected a line, column, or area chart. Switch to a scatter plot (Insert > Scatter) to enable trendline options for logarithmic, exponential, etc.
  • Forecast values seem unreasonably high or low: Recheck the trendline equation and ensure you used LN(x), not LOG(x). Also verify that the R-squared value indicates a decent fit.
  • Equation doesn’t update when data changes: If you copied the equation manually, it won’t update. For dynamic forecasts, consider using the FORECAST.LINEAR function with transformed data: =FORECAST.LINEAR(new_x, LN(known_y’s), LN(known_x’s)) — but note this fits ln(y) vs ln(x), which is different. For true logarithmic y vs x, manual equation use is simplest.
  • Chart shows a straight line instead of a curve: Double-check that you selected Logarithmic in the Trendline Options, not Linear or Moving Average.

Frequently Asked Questions

Can I use a logarithmic forecast for data that decreases over time?

Yes, a logarithmic trendline can model both rapid initial increases that plateau and rapid initial decreases that level off (e.g., cooling or decay). The slope (m) in the equation will be negative for decreasing trends.

Is the logarithmic forecast the same as using the LOGEST function?

No. LOGEST fits an exponential curve (y = ab^x). For a logarithmic model (y = m*ln(x) + b), you must use the trendline method or manually apply the LN function as described.

What if my data has gaps or missing time periods?

Excel’s trendline ignores missing points if they are completely blank. However, for forecasting, it’s best to have consistent intervals. If gaps exist, consider interpolating missing values or using only complete segments.

How many data points do I need for a reliable logarithmic forecast?

At least 5 data points are recommended to calculate a meaningful logarithmic trendline. More points improve reliability, especially if the data shows variability.

Can I automate the forecast so the equation updates when I add new data?

Not directly with a static equation from the chart. For full automation, use Excel’s GROWTH or TREND functions on ln-transformed x values, but note this requires setting up ln(x) as a helper column. The chart trendline method is best for quick, visual forecasting.

Does Excel use natural log or base-10 log for the logarithmic trendline?

Excel’s logarithmic trendline uses the natural logarithm (LN), not base-10 log. Always use the LN function in your forecast formula to match the trendline equation.