+ Reply to Thread
Results 1 to 14 of 14

Normalizing Dates

  1. #1
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Normalizing Dates

    I get an export from our accounting system that lists the days in one column, with the month across the top. What I would like to be able to do is normalize the dates to be in one column.
    I have attached a sample from the report I receive. With a column added to show the desired effect.

    My initial thought is a very long nested IF statement, but I'm SURE there has to be a better way and any help or guidance is appreciated.
    To note, in this instance, the year will always be constant @ 2022
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Normalizing Dates

    Are you still using Excel 2016?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Normalizing Dates

    No, sorry that changed very recently, I am using Office 365

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Normalizing Dates

    See if this works for you:

    =DATE(YEAR(TODAY()),MONTH(DATEVALUE(INDEX($G$1:$O$1,MATCH(999999999999,$G2:$O2,1))&" 1")),$F2)

    or:

    =DATE(2022,MONTH(DATEVALUE(INDEX($G$1:$O$1,MATCH(999999999999,$G2:$O2,1))&" 1")),$F2)

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Normalizing Dates

    is that what you want?

    Account Number Account Description Payee Transaction Description Cost Center Date Value
    1
    Some Account Unassigned Sample 1 Some Cost 1
    31/03/2022
    1620734
    1
    Some Account Unassigned Sample 2 Some Cost 2
    01/04/2022
    -1620734
    1
    Some Account Unassigned Sample 3 Some Cost 3
    30/06/2022
    3516783
    1
    Some Account Unassigned Sample 4 Some Cost 4
    01/07/2022
    -3516783
    1
    Some Account Unassigned Sample 5 Some Cost 5
    30/09/2022
    4697089
    1
    Some Account Unassigned Sample 6 Some Cost 6
    30/09/2022
    233275
    1
    Some Account Unassigned Sample 7 Some Cost 7
    08/02/2022
    -500

  6. #6
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Normalizing Dates

    Yes, both of these work, although I am not quite sure how
    Thank you very much for your help!

  7. #7
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: Normalizing Dates

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,422

    Re: Normalizing Dates

    Or try in P2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Normalizing Dates

    It is. Now that I have the date normalized, I am going to use Power Query to create a proper data set like the image you have.
    I am open to another way if you have one?

    Thank you for you input

  10. #10
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Normalizing Dates

    This also works!

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Normalizing Dates

    use @username because we don't know who your posts are to
    Last edited by sandy666; 11-14-2022 at 10:18 AM.

  12. #12
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Normalizing Dates

    @sandy666 - The code that @Czeslaw gave achieves what you are demonstrating in your picture. Thank you for your input! And sorry, I thought when I reply to a comment, it was tagged to the person I was replying to.

    @Czeslaw - This is excellent, this is the approach that I will take! I know I did not mention Power Query in my original ask, but this is the easiest way to achieve what I need

    @HansDouwe - This also works. I can't believe this ask can be achieved by such a concise formula

    @AliGW - I marked this thread Solved based on your answer. Thank you!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Normalizing Dates

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  14. #14
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,292

    Re: Normalizing Dates

    Could be so.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Normalizing data
    By dflak in forum Tips and Tutorials
    Replies: 4
    Last Post: 02-12-2019, 09:38 AM
  2. [SOLVED] Help with normalizing data
    By Spyderwoman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2016, 11:29 AM
  3. [SOLVED] Normalizing The Data
    By zanshin777 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 09-15-2015, 07:47 AM
  4. Normalizing data
    By jviola in forum Excel General
    Replies: 5
    Last Post: 06-07-2013, 10:05 AM
  5. Normalizing the y axis
    By ragtopcaddy in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-24-2006, 12:25 PM
  6. Normalizing the y axis
    By ragtopcaddy in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-24-2006, 12:24 PM
  7. normalizing data
    By 4gokycats in forum Excel General
    Replies: 2
    Last Post: 03-26-2005, 11:06 PM

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