Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

trend function excel

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Trend function in excel

Trend function in excel

ResolvedVersion 365

Uday has attended:
Excel Intermediate course

Trend function in excel

Hello.

I am working on a spreadsheet to forecast billing for next financial year. My spreadsheet is set up as follows:

List of clients in column A (i.e. client on each row from 1 to 200) and financial years as column heads from B (2021) to F (2025)

In column F I an extrapolating data using the trend function from the data in columns B to E.

Where there has been a decline in sales for any particular customer, the trend function is returning a negative amount in column F.

How do I input this formula so that any row which would return a negative number instead returns "0"?

I think this should be done by embedding the trend formula inside an if formula, but i cannot seem to get that right. The box either reads as "false" or the problem with formula box pops up.

RE: Trend function in excel

Hi Uday,

Thank you for the forum question.

As I understand it you work with one independent variable and one dependent variable. Normally the TREND function is used for linear regression with multiple independent variable.

The issue with the TREND function and why you cannot just use an IF is that the TREND function is an array function.

Please copy your TREND function in F2 and paste the function here in the forum. Then I will convert it to do what you want.




Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Will be marked as resolved in 5 days

Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.

Thu 18 Jan 2024: Automatically marked as resolved.

Excel tip:

Shared Conditional Formatting

In a shared workbook, conditional formats applied before the workbook was shared will continue to work; however you cannot modify the existing conditional formats or apply new ones.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.