• index function? (Office 2003)

    Author
    Topic
    #438354

    Hi Everyone;

    I need some help to indicate me the proper function which will give the desired data. Scenario is as follows:
    I have a table, first column are dates at weekly intervals; second are sales at end of week. I want to find the function which will generate for every row a new column listing percent increment (or decrement) in sales relative to a YEAR before given date in column 1.
    I explored the Index function, but it seems to complex.
    I have an Excel book (for Office 97) where I will read and train myself to solve this.
    Any guidance to where I should look will be very much appreciated.

    DanielR.

    Viewing 0 reply threads
    Author
    Replies
    • #1044931

      Since weeks do not end on the same date each year, what do you define the previous years date to be? Are the dates for the previous year in the same column on the same sheet as this years data? It would help a lot if you would upload a sample workbook with false data that shows what you have and indicates what you want.

      • #1045160

        Thanks for your reply.
        Here I am attaching a sample.
        Thanks in advance for your help.

        Daniel Rozenberg.

        • #1045164

          hmmn I think I am onto it, but it is an idea for the moment. In cell C2 copy this formula into it:

          =TRUNC(((A2-DATE(YEAR(A2),1,0))+6)/7)

          and then copy down this will give you the absolute week number that date falls into.

          I then created a pivot table against

          first row header – Week number
          Second Row Header – Date

          and did a sum of the sales, it grouped the week dates nicely for you to do your percentage calculation

        • #1045165

          How do you want to handle missing dates such as 27-Aug-04?
          And dates that don’t match the pattern, such as 04-Sep-04 (a Saturday instead of a Friday)?

        • #1045167

          I have attached your workbook with two different formulas.

          • #1045170

            Gentlemen,
            Thank you very much for all your replies.
            I will analyze (digest?) them, and let you know asap.
            Cordially,

            Daniel Rozenberg.

            • #1045174

              After viewing your replies, I find that will be easier for me to use again VLOOKUP (I had some successful experience with it from the past), so a “brush up” will be easier.
              Thanks for you approach Jeeza, but it will require me to further go into Pivot Tables (which gave a bit of trouble in the past).
              Thank you all again.

              Daniel Rozenberg

    Viewing 0 reply threads
    Reply To: index function? (Office 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: