메인 컨텐츠로 가기

Excel에서 시간 문자열을 시간으로 변환하는 방법은 무엇입니까?

예를 들어 워크 시트에 텍스트 문자열 목록이 있는데 이제 이러한 텍스트 문자열을 시간 또는 날짜 및 시간으로 변환해야합니다. 어떻게 해결할 수 있습니까? 여기에서는 Excel에서 텍스트 문자열을 시간으로 빠르게 변환하는 몇 가지 트릭을 소개합니다.

텍스트 문자열을 시간으로 변환

텍스트 문자열을 날짜 및 시간으로 변환


화살표 블루 오른쪽 거품 텍스트 문자열을 시간으로 변환

텍스트 문자열을 시간으로 변환하려면 몇 가지 공식을 사용하여 해결할 수 있습니다.

1. 셀을 선택하고이 수식을 입력합니다. = TIMEVALUE (LEFT (A1, LEN (A1) -2) & ":"& RIGHT (A1,2)) (A1은 시간으로 변환해야하는 텍스트 문자열입니다.)를 입력하고 엔터 버튼. 필요한 경우 채우기 핸들을 필요한 범위로 끌 수 있습니다. 스크린 샷보기 :
문서-시간-문자열-시간-1

2. 그런 다음 선택한 셀을 마우스 오른쪽 버튼으로 클릭하고 셀 서식 상황에 맞는 메뉴에서 셀 서식 대화 상자에서 선택하십시오. Time 인사말 범주 아래에 나열 번호 탭을 클릭 한 다음 필요한 시간 유형을 선택합니다.
문서-시간-문자열-시간-2

3. 클릭 OK, 이제 텍스트 문자열이 시간으로 변환됩니다.
문서-시간-문자열-시간-3

참고 :

1.이 수식은 초를 포함하는 텍스트 문자열 (예 : 120158)에서는 제대로 작동하지 않습니다.

2. 텍스트 문자열 형식이 120456P이면이 공식을 사용할 수 있습니다. =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2)을 클릭 한 다음 필요한 12 시간 시계로 셀을 포맷합니다. 스크린 샷보기 :

문서-시간-문자열-시간-4
문서-시간-문자열-시간-5

화살표 블루 오른쪽 거품 텍스트 문자열을 날짜 및 시간으로 변환

텍스트 문자열에 20141212 0312와 같은 날짜와 시간이 포함 된 경우 약간 긴 수식을 사용하여 해결할 수 있습니다.

1. 빈 셀에 다음 수식을 입력합니다. =DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID(A1,10,2),RIGHT(A1,2),0), 다음을 누릅니다. 엔터 버튼 필요한 경우이 수식을 범위에 적용 할 수 있습니다.

2. 그런 다음 선택한 셀을 마우스 오른쪽 버튼으로 클릭하고 셀 서식 상황에 맞는 메뉴에서 셀 서식 대화 상자에서 선택하십시오. 날짜 인사말 범주 목록을 클릭하고 오른쪽 섹션에서 필요한 유형을 선택하십시오.
문서-시간-문자열-시간-6

3. 클릭 OK. 이제 날짜와 시간으로 변환 된 텍스트 문자열을 볼 수 있습니다.
문서-시간-문자열-시간-7

팁.시간을 십진수 시간, 분 또는 초로 변환하려면 다음을 사용하십시오. Excel 용 Kutools시간 변환 다음 스크린 샷에 표시된대로. 30 일 안에 제한없이 모든 기능을 사용할 수 있습니다. 지금 다운로드하여 무료 평가판을 받으십시오.

Excel에서 시간을 XNUMX 진수 값으로 빠르게 변환

예를 들어 십진수 시간, 분 또는 초로 변환하는 데 필요한 시간 목록이 있는데 Excel에서 어떻게 빠르고 쉽게 해결할 수 있습니까? 그만큼 시간 변환 of 용 Kutools Excel은 당신을 위해 호의를 베풀 수 있습니다.   30 일 무료 평가판을 클릭하십시오!
문서 변환 시간
 
Excel 용 Kutools : 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다.

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Would love any help with this. I have data that is reported as "1d 01h 01m" representing 1 day, 1 hour, 1 min and I need to be able to represent this as a single number (preferably in # of minutes) any thoughts on how I can convert this string to a number value? Thanks all!
This comment was minimized by the moderator on the site
how to convert 06Hr:11Mi into 06:11
This comment was minimized by the moderator on the site
Hi, abinash kumar, you can remove alpha characters from your time string.
This tutorial can help you:
How to remove alpha characters from cells in Excel?
This comment was minimized by the moderator on the site
how do I convert Date/Time with this text format 08/07/2022 1519
This comment was minimized by the moderator on the site
Hi, Tina, please give me a specific example for explaining and descriping your problem. Thank you.
This comment was minimized by the moderator on the site
Hi there!

I used one of formulas above to convert a time string and it worked beautifully expect for anything that had a format of 1200P. It should convert to 12:00 but instead converts to 00:00. Any thoughts on why or how to fix it?

I used: "120456P, you can use this formula =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2)"

I did not have any seconds in my time string so I deleted the last set of 0's in the formula and it still worked.
This comment was minimized by the moderator on the site
Hi.,I have a query.
I want to convert a duration extracted in a format #h #m #s to duration format so that I can filter it. For example:
My data has a field named Session Duration and the format of the cell is "General" and the cell says "1h 2m 15s". I need to convert this data into 01:02:15 but not in time format but a duration. Is there a way to do that.
This comment was minimized by the moderator on the site
=A1/(24*60) (algebra methods)..hahhaha
then apply time format
This comment was minimized by the moderator on the site
How can I convert 1 Hour 35 Min 25 Sec, stored as a text format into Hour format (hh:nn:ss)?
This comment was minimized by the moderator on the site
Hi, Gabriel, you can try this formula =TIME(LEFT(K4,1),MID(K4,8,2),MID(K4,15,2)) K4 is the cell contains text you want to convert, then format the result as time.
This comment was minimized by the moderator on the site
2h 50m how do i convert into 2:50
This comment was minimized by the moderator on the site
Hi, Ayaan, you can try Find and Replace function, h (blank) replace wth : , m replace with nothing
This comment was minimized by the moderator on the site
using the [ =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2) ] formula,
in example #2 above, 123706A >> gets converted to 12:37:06 PM (instead of 12:37:06 AM)
how may this be rectified?
This comment was minimized by the moderator on the site
You only need to change the P to A in the formula =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="A")/2), the format the formula cell as hh:mm:ss AM/PM
This comment was minimized by the moderator on the site
so if you enter 35943A you get 3:59:43 AM (which is great).
but if you enter 123706A you would expect to get 12:37:06 AM but instead you get 12:37:06 PM (which is not so great).
also if you enter 123706P you get 12:37:06 AM (again expecting to get 12:37:06 PM).
the meridiem are only incorrect for 12xxxx, formula works flawlessly for 1~11.
any way to improve the formula, to be all encompassing? thank you
This comment was minimized by the moderator on the site
It is a little complex, sorry I cannot help you. Maybe someone in our forum https://www.extendoffice.com/forum.html can help you if you place the question in it.
This comment was minimized by the moderator on the site
using the [ =TEXT(--(LEFT(A1,LEN(A1)-1)),"0\:00\:00")+((RIGHT(A1,1)="P")/2) ] formula,
in example #2 above, 123706A >> gets converted to 12:37:06 PM (instead of 12:37:06 AM)
how may this be rectified?
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations