+ Reply to Thread
Results 1 to 15 of 15

Can not calculate daily percent change using excel functions

  1. #1
    Registered User
    Join Date
    09-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Can not calculate daily percent change using excel functions

    Hey Guys,

    I am new to this forum. I see lot of active people providing help on various topics. Here is one I need help with.

    I want to calculate percent change on a daily basis. Please see the excel sheet attached.
    There are two product lines A and B. There are 4 machines in total. Each product line is running on each machine every day. There is one more variable. The quantities are produced and recorded for different Production Lots. In my example I have recorded only two here. The dates are working days excluding holidays and week ends.

    If I want to find out percent change of quantity produced for product line A on machine 1 on 09/20/2010 for the lot 09/30/2010, how do I put it in excel functions and formula? I am using Excel 2007.

    Your help will be highly appreciated.

    Regards,

    Atul
    Attached Files Attached Files
    Last edited by atul_stock2008; 09-30-2010 at 03:48 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: find daily percent change

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    EDITED THIS TIME ONLY
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can not calculate daily percent change using excel functions

    Quote Originally Posted by atul_stock2008 View Post
    I want to calculate percent change on a daily basis...There are two product lines A and B. There are 4 machines in total. Each product line is running on each machine every day. There is one more variable. The quantities are produced and recorded for different Production Lots. In my example I have recorded only two here. The dates are working days excluding holidays and week ends.
    If the no. of lots per machine per product line is also consistent on a daily basis and the data (per your sample) is ordered by date, product line, lot date and machine then it should simply be a case of using relative references, no ?
    (ie the same number of lines separate prior & current for each transaction)

    The above, using your sample:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Can not calculate daily percent change using excel functions

    Quote Originally Posted by DonkeyOte View Post
    If the no. of lots per machine per product line is also consistent on a daily basis and the data (per your sample) is ordered by date, product line, lot date and machine then it should simply be a case of using relative references, no ?
    (ie the same number of lines separate prior & current for each transaction)

    The above, using your sample:

    Please Login or Register  to view this content.
    Thanks for your help DonkeyOte. I have one query on your suggestion. If I arrange the data as suggested by you, how do I know where machine 1 stops machine 2 starts. That way I am not able to copy down the formula all the way down to last row. Please advice.
    Regards,
    Atul

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can not calculate daily percent change using excel functions

    First off, on an aside, no need to quote my post in your reply (clutters your thread & the board).

    I confess I'm not sure I really follow... I based my suggestion on your sample.

    In your sample it follows that the "prior" value for any given row is 16 rows above given there are 16 transactions per day and those 16 transactions are listed in the same order every day.

    To illustrate by example...

    Row18:
    To determine the "prior" quantity for the value associated with Product A on the 20th Sep where Lot date is 30th Sep and Machine is 1 we can go up 16 rows to row 2.

    Row34:
    To determine the "prior" quantity for the value associated with Product A on the 21st Sep where Lot date is 30th Sep and Machine is 1 we can go up 16 rows to row 18.

    Row50:
    To determine the "prior" quantity for the value associated with Product A on the 22nd Sep where Lot date is 30th Sep and Machine is 1 we can go up 16 rows to row 34.

    ie the pattern is consistent and will hold true of all other combinations (row 19 relates to 3 as 35 relates to 19 and 51 to 35 etc...)

    If in reality your data is not that consistent I would suggest posting a sample that better reflects the real situation you are faced with.

    If your data is that consistent then given you mention you illustrated only two "Lots" you will need to adjust the 16 row offset (Products [2] * Machines [4] * Lots [2]) based on however many rows you have per date (Col B)
    Last edited by DonkeyOte; 09-30-2010 at 12:07 PM.

  6. #6
    Registered User
    Join Date
    09-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Can not calculate daily percent change using excel functions

    Thanks a lot DonkeyOte. As you mentioned, the data is not consistent all the time. Therefore there may not be a fixed interval between the rows of same machine for same lot date for the next date. As suggested by you, here is the example giving all complexity. I have saved this worksheet on a computer with Office 2003 installed. However I have tried to save it in xlsx format.

    Please let me know if that does not work. I will upload it from home PC in the evening.

    I really appreciate your help in this.

    Regards,

    Atul

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Can not calculate daily percent change using excel functions

    So to be clear - are you saying you can not sort your data by any means ?

    Sorting data (on big sets) will generally lead to much better calculation performance as more efficient techniques can be used

    If you can't sort your data you will be looking at a relatively expensive approach I'm afraid.

  8. #8
    Registered User
    Join Date
    09-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Can not calculate daily percent change using excel functions

    Thanks DonkeyOte. I am not able to sort it effectively and hence I am not able to use the suggestion to go back 16 rows, as the data is not consistent.
    However I wonder if we could do it using functions. I am not at all an expert in excel functions and therefore is this query.
    Regards,
    Atul

  9. #9
    Registered User
    Join Date
    09-30-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Can not calculate daily percent change using excel functions

    Mr. Atul, This can be done by using Pivot table. I have worked in the sheet 'PT" . Pl. see and comment.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-30-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Can not calculate daily percent change using excel functions

    This is another version of PT. Select lot date from the page field.
    Attached Files Attached Files

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Can not calculate daily percent change using excel functions

    Why have you added more unnecessary wording oi the title after I took the trouble to edit it to comply with the Forum Rules??????

  12. #12
    Registered User
    Join Date
    09-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Can not calculate daily percent change using excel functions

    RoyUK,
    My apologies for not understanding your comment. I thought the other way. I thought that you want me to make changes in the title. Please pardon me.
    Thanks for your help.
    Regards,
    Atul

  13. #13
    Registered User
    Join Date
    09-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Can not calculate daily percent change using excel functions

    Thanks SSGP for your help.

    However I am looking forward to a more direct approach. The method suggested by you may work, but I may have to go to each Machine in the pivot table and apply the formula. Doing it on a daily basis may be a very time taking activity.
    I am looking for a direct approach, where I write a function (nested) which will identify the machine, lot date, product type and will go back to previous date and calculate the percent change. This way I will copy the formula to the newly downloaded sheet and get the calculation done instantaneously.

    Regards,

    Atul

  14. #14
    Registered User
    Join Date
    09-30-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Can not calculate daily percent change using excel functions

    Mr.Atul,
    Just paste the data u have downloaded, one by one in the sheet 'Main' on daily basis. Then go to Sheet 'PT' Click any where on the Pivot table and do right click and Click "Refresh". Now u can see the data is updated. You need not apply formula daily, for each machine. Anyhow I will try the way u wanted.
    Regards
    SSGP
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    09-30-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Can not calculate daily percent change using excel functions

    Thanks a lot SSGP.
    I look forward to hearing from you soon.
    Regards,
    Atul

+ 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