简体   繁体   中英

Day, Month, Year format in Excel Issues

As part of my data analysis project in R this semester, I need to make a boxplot for the THY stock. I have a csv file that contains everything that I need to work with, however, I can't figure out why I can't tidy this up a little nicer in Excel before importing to R. I've tried the basic wrangling/tidying stuff that I learned this semester, but I am at a loss.

This is what I'm trying to accomplish: Excel 时间格式

I managed to build the Day, Month, and Year columns very easily using =DAY(A2) , =MONTH(A2) , and =YEAR(A2) commands.

However, with the new csv file I downloaded from Yahoo Finance, I get this: 我遇到的问题。

I used the same commands, =DAY(A2) and I can't figure out what I'm doing wrong. Can someone please tell me what I'm doing wrong?

Without your excel file I can't be certain, but I'm pretty sure you have a formatting issue.

Change the format of column B to 'General'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM