+ Reply to Thread
Results 1 to 12 of 12

Has percentage gone up or down based on prior cells with percentages in

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Has percentage gone up or down based on prior cells with percentages in

    Hi I am trying to add a column to a spreadsheet to show if results have improved or not based on a percentage. However there are certain results which are NA (This is because a specified one of the values is 0 and so is an expected result). However as some of the columns go from NA to 0% (this happens if the specified value is greater than 0 but the other value is 0). some of the columns go from NA to NA and some go from NA to xx% or from xx% to NA. if the values are as follows I need to reflect it in the movement column
    Previous Month NA - Current Month 0% - up or down based on earliest month where a value was shown - if no value shown then can be NA
    Previous month xx% Current Month NA - up or down based on earliest month where a value was shown - if no value shown then can be NA
    Previous month xx% Current Month xx% up, down or no change based on these figures

    if this could auto updated based on what month we are in as well this would be great!

    I have attached example of what I mean with the formula I was trying to make work in column R - This is not currently doing what I need.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Has percentage gone up or down based on prior cells with percentages in

    Hi,
    My proposition is in R2 Array formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you want to look at it step by step see columns T:W in attachment, where building blocks were left :-)
    Once you got it you can delete these columns. They are not used in real formula.

    How to add data for May 2018 (same with next months:
    1) copy current column R to column S (not move, no column insert, just copy - you will see the same results in both columns at the moment)
    2) write header in R1 and current data in R2 down. And that's it :-)

    *...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Has percentage gone up or down based on prior cells with percentages in

    Hi Kaper, thank you for the response however the "up" "down" and "no change" don't actually seem to relate to the values? for example in row 2 it should be "no change" as it is from 0% to 0%. in row 4 it should be "up" as it goes from 13% to 27%

    am I missing something?

    Thanks

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Has percentage gone up or down based on prior cells with percentages in

    Shame on me, of course I badly misplaced names in final part of formula. Shall read: "Down","No Change","Up" (for: minus sign result, zero result and plus sign result)


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The same error is of course in formula in column W.

    See corrected file
    Attached Files Attached Files
    Last edited by Kaper; 05-21-2018 at 11:31 AM.

  5. #5
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Has percentage gone up or down based on prior cells with percentages in

    Thanks Kaper, this works greta on your spreadsheet just having a slight issue transferring it to my original spreadsheet. I should be able to fix it though. thanks for your assistance.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Has percentage gone up or down based on prior cells with percentages in

    Thanks for the reputation point.

    The way to go with transfer is to adjust model sheet (add columns/rows, etc.) to excactly follow original layout and only then copy the formula text.
    Just a reminder - commit as array formula (with Ctrl+Shift+Enter).

    Once it's fully working please remember to mark thread signed :-)

  7. #7
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Has percentage gone up or down based on prior cells with percentages in

    Hi Kaper, I have identified what is causing the issue but I am not sure how to fix it. in the sample data I attached I only had one column ahead of the monthly columns with account type in. In the original data I have several more columns in front of that. basically my source data goes -
    Branch Code, Branch Name, Branch Name and Number, Branch Banding, Branch Acquisition Date, Month, Year, Region, Area Manager, Account Type

    and then has the monthly columns after all of these. when I delete these extra columns and have the account type in column A the formula works as it should. I have realised that this is because the formula is picking up the Month and Year because they are numbers it is calculating using these. however if I change the column values in the formula to start at column J (which is the column which has the account type in as in the example data I sent) it doesn't work anymore. any idea why this might be?

    Thanks

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Has percentage gone up or down based on prior cells with percentages in

    I do.

    But why don't you just post a small sample (no real data).

    If leftmost "header" columns contain only texts do not modify formula. Even if data starts from column say K leave formula with ranges starting in column A as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Adjust only last column.

    But probably it is not the case, so formula shall be adjusted. As I wrote - easiest way will be on sample file with meaningless data (but formatted, and placed in a sheet like real data is.

  9. #9
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Has percentage gone up or down based on prior cells with percentages in

    Hi, Please see the attached sample data. As you can see I have amended the formula to start at column J but it no longer works and if it starts at A it works for up, down and no change but if all the values are N/A as in row 16 it shows UP - as it is taking into account the month and year in columns F & G. Now I have removed these columns in my original source data to make it work but I would like to try and understand why changing the start column does not fix this error if possible?

    Thanks
    Attached Files Attached Files

  10. #10
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Has percentage gone up or down based on prior cells with percentages in

    As we are adjusting formula, I removed any header from it so it starts from column K. The adjustment is by deductuing number of columns with description (A:J)
    if it's always A:J one could use simply 10 instead of (both) COLUMNS($A$1:$J$1)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Has percentage gone up or down based on prior cells with percentages in

    PS. Try also simplified version (array formula of course):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In Indexes there is column A, while in Isnumber and Column we start from K
    Last edited by Kaper; 05-22-2018 at 07:32 AM.

  12. #12
    Forum Contributor
    Join Date
    11-18-2014
    Location
    England
    MS-Off Ver
    365
    Posts
    132

    Re: Has percentage gone up or down based on prior cells with percentages in

    Thank you so much for this, both of these work great and help me understand it a bit better. really appreciate your patience on this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formulaa to calculate a cost, based on prior cells
    By robiton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-19-2017, 01:18 PM
  2. Replies: 5
    Last Post: 08-05-2015, 06:18 PM
  3. [SOLVED] Ranking a column of percentages based on the cells that meet criteria (between 100 to 103)
    By scotlandsneo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2015, 09:24 AM
  4. [SOLVED] Conditional formatting based on the state of the prior three cells
    By KayRayDunn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2013, 06:17 AM
  5. creating a list that repeats cells based on different percentages
    By nigelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-15-2012, 11:03 AM
  6. VBA to format cell based on product of prior 2 cells
    By dpcp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2011, 12:29 PM
  7. Change the value of a cell based on prior cells values
    By kd7980 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-31-2010, 11:14 AM

Tags for this Thread

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