+ Reply to Thread
Results 1 to 17 of 17

Sales Trend Formulae

  1. #1
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Sales Trend Formulae

    Hi Folk's

    I have sales values in 3 cells A1:A3 they are £20, £40, £60 and represent April May and June.
    Id like a formulae to look at the 3 cells and Identify that there has been an increase each month. If there has been an continued increase ie. May higher than April (A2 higher than A1) and June higher than May(A3 higher than A2), Id like the display cell B1 to say Up.

    Now if the figures for the same period are £60, £40, and £20 Id like the cell B1 to say Down.

    If the sales figures are neither up nor down or a combination, Id like B1 to say No Trend.

    Ive tried various nested IF's but to no avail..

    Can anyone help.. Many Thanks

    B
    Last edited by singerbatfink; 05-12-2010 at 05:52 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Sales Trend Formulae

    You could use =CHOOSE(SIGN(LOGEST(A1:A3) - 1) + 2, "Down", "No trend", "Up")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Sales Trend Formulae

    Quote Originally Posted by shg View Post
    You could use =CHOOSE(SIGN(LOGEST(A1:A3) - 1) + 2, "Down", "No trend", "Up")
    Hi, Thanks for this.. It kinda does the job but still returns a value of "down" when the cells are A1=30 A2=40 A3=10, when it should say "No Trend"

    I would like the formulae to return "Up" if there has been a progressive increase in sales, or "Down" if there has been a progressive decrease in sales for 3 successive months. If sales fluctuate between up and down then "No Trend"


    Thanks for any help you can give.

    B

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Sales Trend Formulae

    Plot the points 30, 40, 10 on a line graph, and then add a exponential trendline. Month-over-month sales are 58%, a frightening downward trend.
    Last edited by shg; 05-08-2010 at 11:49 AM.

  5. #5
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Sales Trend Formulae

    Quote Originally Posted by shg View Post
    Plot the points 30, 40, 10 on a line graph, and then add a exponential trendline. Month-over-month sales are 58%, a frightening downward trend.
    Thanks, but I cant use a graph in this scenario..

    Can anyone else help with the above query??

    Cheers

    B

  6. #6
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Up or Down Trend Formula..

    Hi

    I need a formula that looks at the last 3 months figures.. If the figures are all up on the previous month Id like it return a value of “UP”.

    If the figures for the last 3 months are all down on the previous month Id like it to return a value of “Down”.

    If the figures fluctuate then Id like a value of “No Trend”

    Lets say the figures are for April May & June and are 10, 15, 20 this would be UP, as the figures increase each month..

    If the figures were 20, 15, 10 then the trend would be down as June is less than May and May is less than April..

    The formula has to identify an increase or decrease in the same direction over a 3 month period.

    If the figures are not either continuously Up or Down then “No Trend” would be returned..

    This is what I have so far (thanks to SHG)
    HTML Code: 
    This works when the figures are up or down, but not when the figures show no trend I.e 10, 20, 15.

    Can anyone help please..

    B

  7. #7
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Up or Down Trend Formula..

    Starting a new thread with the same question wont make you popular!

    SHG's answer is the correct one, for what you are asking

    your way try :-

    =CHOOSE((SIGN(A1-A2)+SIGN(A2-A3)+2)/2+1,"Upward","No Trend","Downward")
    Last edited by squiggler47; 05-10-2010 at 05:11 AM.
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  8. #8
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Up or Down Trend Formula..

    hmmm early morning! Caffeine not hit home yet!

    =CHOOSE((SIGN(B7-C7)+SIGN(C7-D7)+4)/2,"Upward","No Trend","Downward")

    removes the extra+1


    10 15 20 UP
    20 15 10 Down
    20 25 10 No Trend
    10 25 20 No Trend
    10 10 10 No Trend
    25 25 10 Down
    10 25 25 UP


    I thought about the last 2 cases as an afterthough, if you want them then the formula is :-

    =CHOOSE((SIGN(B9-C9)+SIGN(C9-D9))+3,"UP","UP","No Trend","Down","Down")
    Last edited by squiggler47; 05-10-2010 at 05:44 AM.

  9. #9
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Up or Down Trend Formula..

    singerbatfink,

    I've reversed the infraction because you closed your first thread about the same topic. However, you should have continued the discussion there, instead of opening a new thread.

    shg's suggestion to use a chart was only to demonstrate to you that the data you provided showed a downward trend, not an upward one, like you thought. It does not mean that you will need a chart to solve your problem.

  10. #10
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Up or Down Trend Formula..

    Quote Originally Posted by squiggler47 View Post
    Starting a new thread with the same question wont make you popular!

    SHG's answer is the correct one, for what you are asking

    your way try :-

    =CHOOSE((SIGN(A1-A2)+SIGN(A2-A3)+2)/2+1,"Upward","No Trend","Downward")
    Point noted... Thanks for your help.

  11. #11
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Up or Down Trend Formula..

    Sorry for the confusion... I closed the thread because I though it was exhausted and a few days old.. Id never knowingly break the rules. I just needed a solution for this, Im sure you know what its feels like..lol

    Thanks to SHG and Squiggler47 for your help and comments..

    B

  12. #12
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Red face Re: Up or Down Trend Formula..

    Quote Originally Posted by squiggler47 View Post
    hmmm early morning! Caffeine not hit home yet!

    =CHOOSE((SIGN(B7-C7)+SIGN(C7-D7)+4)/2,"Upward","No Trend","Downward")

    removes the extra+1


    10 15 20 UP
    20 15 10 Down
    20 25 10 No Trend
    10 25 20 No Trend
    10 10 10 No Trend
    25 25 10 Down
    10 25 25 UP


    I thought about the last 2 cases as an afterthough, if you want them then the formula is :-

    =CHOOSE((SIGN(B9-C9)+SIGN(C9-D9))+3,"UP","UP","No Trend","Down","Down")
    This is great, but If the scenario is 25, 25, 10 Id like a return of No Trend , and also if 10, 25, 25 Id like a return of No Trend so that only three months of data going in the same direction is either an upward or downward trend.

    Sorry to be a pain....

    B

  13. #13
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: Up or Down Trend Formula..

    Just add an iff statement around what they wrote..

    If(OR(B9 = C9, C9 = D9), "No Trend", The Above Code Here)

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Sales Trend Formulae

    Threads merged.

  15. #15
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Sales Trend Formulae

    Thanks to all who contributed to helping me solve this one..

    Ive uploaded the finished work to share if anyone would like it..

    Regards

    B
    Attached Files Attached Files

  16. #16
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Sales Trend Formulae

    =IF(D2="","",IF(OR(B2=C2,C2=D2),"No Trend",CHOOSE((SIGN(B2-C2)+SIGN(C2-D2))+3,"UP","UP","No Trend","Down","Down")))

    and

    =IF(D2="","",CHOOSE((SIGN(B2-C2)+SIGN(C2-D2))+3,"UP","No Trend","No Trend","No Trend","Down"))

    are the same, the extra UP/Down from row 4 in your sheet takes care of 2 values being the same

  17. #17
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Sales Trend Formulae

    =MID("ñóóóò ",(SIGN(B2-C2)+SIGN(C2-D2))+3+(D2="")*5,1)

    will give you the arrows note the characters are entered on the numeric keypad holding down the Alt Key and then typing 0241 then releasing the alt key(the same with 0243 0243 0243 0242)

    I modified your formulas to make them shorter!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1