+ Reply to Thread
Results 1 to 5 of 5

How to make these two columns have the same date format?

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Question How to make these two columns have the same date format?

    I have two columns with dates (one is in general format and the other is in date format), I am trying to do a simple IF statement which will tell me if the two dates do not match. The problem is not my IF statement (=IF(C2=A2,"yes","no"), its with the dates formats. Problem 1 is the format, problem 2 I noticed column A has the leading zero and column B does not (I guess ties back in to problem 1). For the heck of it, I tried the format painter from A13 to C13 and it totally changed the value (I guess because excel works with dates differently).

    Is there a way I can make columns A and C have the same date format so I can complete my IF statement, which is to tell me if the dates are the same or not?

    Thank you


    Capture.PNG
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to make these two columns have the same date format?

    The "dates" in column A are being seen as text. To change them to actual dates, highlight column A > Text to Columns > Finish.

    Then your formula will work as expected.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to make these two columns have the same date format?

    Going a little more in-depth, as long as both columns are recognized as dates, it doesn't matter what format they are in.

    Excel will still see, for example, 01/01/2000 and 1/1/2000 as being the same.

    All dates are stored as numbers in Excel starting from the imaginary date January 0th, 1900 (which is equivalent to 0).

    43117 is equivalent to 1/17/2018 because it is 43,117 days past 1/0/1900.
    Last edited by 63falcondude; 07-20-2018 at 10:32 AM.

  4. #4
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: How to make these two columns have the same date format?

    excellent advice, I never thought about using text to columns for converting... I only use it to separate values. Learned something new today, not only with your fix but to open my eyes more when using features in excel.

    thank you!

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to make these two columns have the same date format?

    Happy to help. Thanks for the rep!

+ 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. [SOLVED] help on vba code to make list continue column and change date format
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 12:06 PM
  2. [SOLVED] How To make column 3 a date format in listbox.
    By paulgills in forum Excel General
    Replies: 2
    Last Post: 09-12-2013, 08:03 AM
  3. [SOLVED] Macro to make all numbers in 2 columns of 40 sheets the same format?
    By synses in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2013, 07:22 PM
  4. Do I need serial numbers to make Date by month columns?
    By KathleenTurnis in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 01-03-2013, 03:58 PM
  5. Date Format-Make Month CAPITALS
    By chconnol in forum Excel General
    Replies: 2
    Last Post: 07-01-2008, 12:24 PM
  6. Replies: 3
    Last Post: 08-18-2007, 01:59 AM
  7. [SOLVED] Make date entered in an InputBox UK format
    By Co-op Bank in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2006, 11:20 AM
  8. [SOLVED] How do you make 3 stacked columns of info for each date in Excel
    By Jamey in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-26-2006, 06:50 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