1

Thank you for reading this question and the attempt you will put into this to help me,appreciate it.

Anyways, i have an excel file that i am trying to get into SQL via import. Everything works fine but when I check excel i see some rows as null where there should be values. (btw my date format in SQL is mdy). So I checked in excel and saw that the dates were a little different so i selected the column and formatted them the same. However i still noticed the same error. Upon further investigation I realize the dates are still different in the fomular bar and the dates formatted as '30-sept-93 (with the little green mark in the corner) come over correctly while those that look like 5/7/1993.

I was wondering if there was some way or macro that i can change all those dates to ACTUALLY be like this correct rather than just looking right and breaking in SQL Correct results vs wrong one

1
  • 1
    Formatting will indeed only change the appearance of your data, not change the actual input. Commented Jan 16, 2014 at 12:39

1 Answer 1

1

Try using =DATEVALUE(TEXT(A1,"DD-MMM-YYYY")) function on that column.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.