+ Reply to Thread
Results 1 to 12 of 12

Formula to calculate % different

  1. #1
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    158

    Formula to calculate % different

    Hi All,

    I got a file attached which I need to find the different between the 2 period.

    Details of my files
    1. Period refer to the forecast I need throughout the month of Dec 16, Jan 17, Mar 17....etc.
    2. Type refer to individual item I need to find.

    Normally to find the different between in month using Apple as example, I would use the forecast between Nov & Dec period.
    For the month of Dec, I would use (C5/C6-1) to find out the status between the 2 period.

    My data is long so if I want to find out the status for one of the type, is there a generic formula for it if I do a filter. I'm thinking of using subtotal which only calculate those visual table but I can't use division on it. Any suggestion to help me out because I don't want to list out the formula for all of them. My attached file shows the yellow portion that I need the result in that format with apple as an example.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-08-2016
    Location
    kuala lumpur malaysia
    MS-Off Ver
    365
    Posts
    100

    Re: Formula to calculate % different

    Hi

    Would you please show the mock-up of the result that you intended to have

  3. #3
    Forum Contributor
    Join Date
    03-08-2016
    Location
    kuala lumpur malaysia
    MS-Off Ver
    365
    Posts
    100

    Re: Formula to calculate % different

    Hi

    Would you please show the mock-up of the result that you intended to have

  4. #4
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    158

    Re: Formula to calculate % different

    hi wanmuhd,
    Thanks for taking the time to look through and helping out. In the attached file, I've already have the result I want in yellow using apple as example.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Formula to calculate % different

    Your table is "confusing" (to me!): for Dec16 , the calculation is C5/C6-1 but for Jan 17 onward it is C5/D5-1 etc.

    Why aren't the periods all headings?

    Or are we to assume the period in row 6 is ALWAYS the period prior to row 5 i.e. D6 is DEC for Apple?

  6. #6
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    158

    Re: Formula to calculate % different

    Hi John,
    Quote Originally Posted by JohnTopley View Post
    Or are we to assume the period in row 6 is ALWAYS the period prior to row 5 i.e. D6 is DEC for Apple?
    You are right to assume the period in row 6 is prior to row 5. Row 8 is prior to Row 7.

    For Dec, I would normally use C5/C6-1. As for Jan 17, I would normally use D5/D6-1. Feb 17, E5/E6-1.
    For banana would be C7/C8-1 (Dec), D7/D8-1 (Jan 17), E7/E8-1 (Feb 17) etc...

    If I were to do it for every type, the amount of formula needed will slow down the loading of my file. Is there a generic formula I can use so that I can see 1 type at one time? Perhaps using subtotal where I filter my type and I can see my different between 2 period of forecast. (doesn't seems to work with division from my test)
    Last edited by seercoven; 12-06-2016 at 04:24 AM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Formula to calculate % different

    I am now "out of the office" for most of the day. Look at INDEX function to select your data, MATCHing with selected TYPE.

    Search on INDEX/MATCH on the Internet.

  8. #8
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    158

    Re: Formula to calculate % different

    Hi John,
    I tried using INDEX(C:C,MATCH("Dec",B:B,0))/INDEX(C:C,MATCH("Nov",B:B,0))-1 to get Dec result. It only work for the first type.

    Do I add in more condition using IF/ Ifelse?

  9. #9
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Formula to calculate % different

    Put in A1: Apple
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Formula to calculate % different

    Try with LOOKUP:

    Please Login or Register  to view this content.
    With A1 contain Apple, Banana,...
    Quang PT

  11. #11
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    158

    Re: Formula to calculate % different

    Hi tamthat & bebo,
    Thanks for the help. The formula works great but both require me to input the type in A1.

    Is it possible to apply it in such a way like using subtotal??

    I just filter apple and i'll get result want and if I change another type I get another result. If I filter with >1 type it shows error or something?

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Formula to calculate % different

    I think it is quicker to enter the type (or use a dropdown list) then use sub-total or filter.

+ 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. Macro to replace formula with result when formula calculate
    By sumit dey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-26-2016, 06:03 AM
  2. Replies: 1
    Last Post: 01-11-2016, 02:31 PM
  3. Replies: 1
    Last Post: 01-08-2015, 07:02 PM
  4. Replies: 2
    Last Post: 05-13-2014, 01:18 PM
  5. Replies: 3
    Last Post: 03-28-2013, 12:41 PM
  6. Replies: 1
    Last Post: 02-02-2013, 02:28 PM
  7. a formula which is calculate 4-5 dates formula in one cell
    By wasim.qureshi in forum Excel General
    Replies: 3
    Last Post: 10-08-2009, 12:38 AM

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