+ Reply to Thread
Results 1 to 5 of 5

How to re-format this data?

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    How to re-format this data?

    Hello, people, and Happy 2023 !
    In Excel 2007, I'm trying to make a calendar, with Special days.
    From the source:
    http://holidayinsights.com/moreholidays/index.htm
    I can get the data formatted like in column A.
    How can I (not manually) convert that to what's shown in columns C and D?
    A search did find some more easily formatted data at
    https://blankcalendarpages.com/holidays/fun
    but there are only 425 days mentioned for 2023 there,
    while the old source has just over 1,000 days.
    ?
    Thank you.
    Mark53
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: How to re-format this data?

    Hi Mark53,

    I have added a quick macro into your file.
    Just click the blue button and it should format the data as per your sample.

    Notes:
    Source Data is in column A, no header rows. Output will be in columns C & D.


    PS: I noticed that your day/month dates in column A are for 2022, not 2023.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  3. #3
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    430

    Re: How to re-format this data?

    Another method with one fewer loop:

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: How to re-format this data?

    @Mark,

    the dates that you have in column A all refer to 2022, except for the date in cell A15 which refers to 2023.

    Pete

  5. #5
    Registered User
    Join Date
    09-28-2010
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: How to re-format this data?

    MAGNIFICENT ! It works like a charm.
    I used the ThomGlea macro, because...
    if I hit the "Go" button more than once using the Oroos macro,
    it added more (incorrect) rows to the output data.

    And yes, the test file had dates from a year ago. It's now fixed.

    Thank you very much, people.

+ 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. Format cells based on 2 separate cell data, incorporated into the format
    By Laur_E in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2019, 01:57 AM
  2. [SOLVED] Change automatically Data Label & Vertical Axis format based on data value format
    By Neilesh Kumar in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-01-2018, 01:14 AM
  3. Autopopulate Format from data (format needs to be flexible with additional data)
    By Evilbober in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2014, 04:58 PM
  4. [SOLVED] Require vba or formula for convert general format data in date format
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2013, 03:53 AM
  5. Replies: 0
    Last Post: 03-12-2013, 01:41 PM
  6. Replies: 0
    Last Post: 03-23-2012, 04:28 PM
  7. How to Convert Matrix format data into tabular format data
    By nishchints in forum Excel General
    Replies: 1
    Last Post: 02-22-2012, 03:53 PM

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