Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I have the following string of text and I need to extract data for different columns.
"POS 12/31/15 08:03 8931 PICK N PUMP [location]" So I need to extract the date for one column, extract the time for another, and finally strip "POS 12/31/15 08:03 8931" for another. For the last item where I need to strip, that is a set number of characters in every row, what follows varies. Thanks in advance for any help. I would also note, after having searched to try and solve this without posting, It might help both me and anyone who sees this in the future to explain the parts of the formulas used. I found several formulas but the example/original data wasn't the same and the parts were not explained so I couldn't figure out how to change the formula provided to suit my needs. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Am Wed, 21 Sep 2016 10:26:09 +0100 schrieb Smurfy: I have the following string of text and I need to extract data for different columns. "POS 12/31/15 08:03 8931 PICK N PUMP [location]" So I need to extract the date for one column, extract the time for another, and finally strip "POS 12/31/15 08:03 8931" for another. For the last item where I need to strip, that is a set number of characters in every row, what follows varies. your string in A1. Date: =INT(--MID(A1,FIND(" ",A1)+1,14)) Time: =MOD(--MID(A1,FIND(" ",A1)+1,14),1) Position: =LEFT(A1,FIND("#",SUBSTITUTE(A1," ","#",4))-1) Regards Claus B. -- Windows10 Office 2016 |
#3
![]() |
|||
|
|||
![]()
Ok the first two work but I guess I wasn't clear, I need to strip that information out and leave the remaining. The formula you posted results in removing the information I need.
|
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Am Wed, 21 Sep 2016 12:37:17 +0100 schrieb Smurfy: Ok the first two work but I guess I wasn't clear, I need to strip that information out and leave the remaining. The formula you posted results in removing the information I need. try: =MID(A1,FIND("#",SUBSTITUTE(A1," ","#",4))+1,99) Regards Claus B. -- Windows10 Office 2016 |
#6
![]() |
|||
|
|||
![]()
wait sorry it works ... i missed resseting one of the cell references
|
#7
![]() |
|||
|
|||
![]()
Ok last one i swear ...
2016 0116 1821 - R.jpg I need to pull the time out of that string, in this particular case 1821. TAA |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Am Thu, 22 Sep 2016 04:41:04 +0100 schrieb Smurfy: Ok last one i swear ... 2016 0116 1821 - R.jpg I need to pull the time out of that string, in this particular case 1821. try: =MID(A1,FIND("#",SUBSTITUTE(A1," ","#",2))+1,4) If there are always 10 digits in front you can also try: =MID(A1,11,4) Regards Claus B. -- Windows10 Office 2016 |
#9
![]() |
|||
|
|||
![]()
Lý thuyết v* b*i t*p ôn thi Chứng chỉ đại lý thuế v* h*nh nghề CPA 2016
https://www.youtube.com/watch?v=tBQyLVTCS9A Link video t*i liệu lý thuyết v* b*i t*p các môn ôn thi chứng chỉ h*nh nghề CPA v* chứng chỉ đại lý thuế, các bạn theo dõi nhé, tối về rảnh rỗi sẽ up dần trọn bộ t*i liệu các môn lên. Nãm nay mình cũng thi cả 2 chứng chỉ n*y, ai có góp ý gì thì comment dýới video để cùng ôn luyện nhé. Chúng ta cùng CỐ NHÊÊÊÊNNNN |
#10
![]() |
|||
|
|||
![]()
Nguyen nay Đang xong vợ cả :v. chồng chị phá em kêu Mới Tâm Thu chỗ Bui Gấu ăn gặp Huyen Gam Jessica Bùi đ*p đấy. về Gọi đi Nguyen trưa gọi M*p
Bảo Hiểm Sức Khỏe |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extract time from date | Excel Programming | |||
How to extract time and date | Excel Discussion (Misc queries) | |||
extract date between a given time frame | New Users to Excel | |||
Extract the hour from a cell showing the date and time | Excel Worksheet Functions | |||
extract time from excel serial date | Excel Programming |