+ Reply to Thread
Results 1 to 5 of 5

Formula to convert to American date if a cell is not empty?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Formula to convert to American date if a cell is not empty?

    If cell A1 contains a value (any value at all, as long as it is not blank) then convert the date in cell B1 to American format (eg. 31/12/2014 becomes 12/31/2014). The formula for this would be in cell C1. I need a formula as I have A LOT of data :o

    I would be extremely thankful if anyone could help with this please!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Formula to convert to American date if a cell is not empty?

    Not sure if this will work
    try

    =IF(A1<>"",MONTH(B1)&"/"&DAY(B1)&"/"&YEAR(B1),"")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to convert to American date if a cell is not empty?

    Try following C1
    Formula: copy to clipboard
    =if(A1<>"",Text(B1,"MM/DD/YYYY"),"")

    or
    Formula: copy to clipboard
    =if(A1<>"",Text(Datevalue(B1),"MM/DD/YYYY"),"")

    Note:-
    However, you can also consider changing the Format your windows date format in Data and Time Settings.
    It will automatically change the date format of your excel file.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula to convert to American date if a cell is not empty?

    In C1

    Formula: copy to clipboard
    =IF(A1<>"",B1)


    Format C1 as mm/dd/yyy
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Re: Formula to convert to American date if a cell is not empty?

    Perfect answers, thanks guys!

+ 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. Replies: 5
    Last Post: 01-20-2015, 04:24 AM
  2. Replies: 2
    Last Post: 11-14-2014, 08:15 AM
  3. Replies: 4
    Last Post: 10-10-2014, 01:28 AM
  4. convert american dates from a query
    By Mika in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2005, 06:20 PM
  5. Replies: 2
    Last Post: 05-01-2005, 04: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