+ Reply to Thread
Results 1 to 17 of 17

Complex formula to report dates

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    7

    Complex formula to report dates

    Hi,

    I have the following issue:
    I have a tab with 2 columns:

    Company Date
    Company 1 13/04/13
    Company 1 13/04/13
    Company 1 13/04/13
    Company 1 14/04/13
    Company 1 14/04/13
    Company 1 15/04/13
    Company 1 15/04/13
    Company 2 13/04/13
    Company 2 13/04/13
    Company 2 14/04/13
    Company 2 14/04/13
    Company 2 15/04/13
    Company 3 13/04/13
    Company 3 14/04/13
    Company 3 14/04/13
    Company 3 15/04/13
    ...

    and I would like to report the dates in another tab with a formula:

    Expected result:

    Company Date
    Company 1 13/04/13
    Company 1 14/04/13
    Company 1 15/04/13
    Company 2 13/04/13
    Company 2 14/04/13
    Company 2 15/04/13
    Company 3 13/04/13
    Company 3 14/04/13
    Company 3 15/04/13

    Can anyone help me with this?

    Many thanks.

    Jack Green

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Complex formula to report dates

    Since you work with excel 2003, I used several helpcolumns to solve your problem.

    I bet there are other solutions.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Complex formula to report dates

    You can use Advanced Filter in Excel 2003

    1.Select the data including column titles above rows or records that you want to sort.

    2.On the Data menu, point to Filter, and then click Advanced Filter. If you are prompted as follows, click OK.
    "No headers detected. Assume top row of selection is header row? "

    3.Under Action, click Copy to another location.

    4.Click to select the Unique records only check box.

    5.In the List range box, type or select the range of records (such as A3:H10).

    6.In the Criteria range box, type or select the same range of records (that is, A3:H10)

    7.In the Copy to box, type the address of or select the first cell where you want the information to be placed. Make sure there is enough room so you don't overwrite pre-existing data.
    This will only copy to the same sheet (choose an unoccupied area like U1). Then you can cut and paste on a new sheet.
    Is this acceptable?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    05-13-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Complex formula to report dates

    Thanks for your quick reply.

    Would it be possible to do this with just one formula?
    I can have access to excel 2007 if necessary.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Complex formula to report dates

    If you have excel 2007 you can copy all date to sheet 2 and use remove duplicates.

    But what are your trying to achieve?

    What you gonna do with that info?

  6. #6
    Registered User
    Join Date
    05-13-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Complex formula to report dates

    What I want to do is to make sure that every time a new line is added to my first tab, the second tab (expected result) automatically update. Is it then possible to do this with a formula?

    Thanks.

    Jack

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Complex formula to report dates

    And after that, what you gonna do with that information?

    count values, compare date, insert colors etc?

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Complex formula to report dates

    You can copy oeldere's helper column formula's all the way down the page and then hide those columns and never have to worry about them again.

  9. #9
    Registered User
    Join Date
    05-13-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Complex formula to report dates

    What I want to do afterwards is to add some other columns (sales, orders, ...) that are also in the initial tab.
    Expected result:
    Company Date Sales Orders
    Company 1 13/04/13 $7000 55
    Company 1 14/04/13 $5000 20
    Company 1 15/04/13 $4500 10
    Company 2 13/04/13 $4600 30
    Company 2 14/04/13 $6500 12
    Company 2 15/04/13 $5500 20
    Company 3 13/04/13 $5500 30
    Company 3 14/04/13 $8500 40
    Company 3 15/04/13 $7500 45

    I know how to do it once the dates are reported as the example above.
    I rather not hide the helper columns knowing that I have to provide the file to my client.

    Jack

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Complex formula to report dates

    So why not filter the data and use that data (e.g. with PDF) to send.

    Or why not making a pivot table of it?

  11. #11
    Registered User
    Join Date
    05-13-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Complex formula to report dates

    The pivot table is a good idea. Unfortunately I do not think that it updates automatically if a new line is added to the initial tab.
    I have to send an excel file because my client wants to aggregate it with some other data.

    That is the reason why I believe that a formula is the best option.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Complex formula to report dates

    Make an table of your data, then new data will automatic be in the pivot table (if you refresh it).

    I'm not sure about 2003, but in 2007 version you can do it that way.

  13. #13
    Registered User
    Join Date
    05-13-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Complex formula to report dates

    I wanted to avoid having to refresh the pivot table manually.
    Are you sure there is no formula that would allow me to report the dates as in my previous example?

    Jack

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Complex formula to report dates

    I provided an formula (solution) in #2.

    Chemist B gives an addition to my solution in #8.

    I don't stated that there's no formula solution.

    I personaly would go for the pivot table solution; but that's the way I like it.

    Your personal solution could (of course) be different.

  15. #15
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Complex formula to report dates

    Quote Originally Posted by Jackgreen1954 View Post
    Thanks for your quick reply.

    Would it be possible to do this with just one formula?
    I can have access to excel 2007 if necessary.
    No helper rows/columns, and no Pivot table is required. Just one formula and it automatically update.

    See the attached
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    05-13-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Complex formula to report dates

    This is exactly what I needed thanks !

    Jack

  17. #17
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Complex formula to report dates

    You're Welcome!

+ 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