Challenge Extracting Various TIME Values from Cells

chaunb

New Member
Joined
May 13, 2014
Messages
1
I've gotten pretty good with extracting various types of content from cells. But this is a head scratcher. I want convert time values from imported text data, but the time formats are different. I started building a long formula using a series of IF, COUNTIF, MID, FIND, AND, OR, and TIME functions, but I'm having trouble building ONE formula or array that can go through the various time and text formats to return the desired results in the START DATE and END DATE columns.

NOTE: The second to last line "8:00:00 PM" returns a text value of "0.833333333"...not sure why.

And if possible, I would like to highlight cells that need to be reviewed for further clarification (see the 3 lines below data examples).

FYI: There is also a date column I will be merging with the result calculations.

Times from Import
Start DateEnd Date
10AM-Noon10:00:0012:00:00
9pm-12am21:00:000:00:00
Tue-Fri 10-4; Sat 10-210:00:00, 10:00:0016:00:00, 14:00:00
5:00-7:30 pm17:00:0019:30:00
6:30pm to 9:00pm18:30:0021:00:00
5-7:30pm17:00:0019:30:00
12-5pm. Guided tours available every half-hour; last tour begins at 4:30pm12:00:0017:00:00
Monday-Saturday 10-6 Sunday 12-510:00:00, 12:00:0012:00:00, 17:00:00
9 a.m. to 5 p.m. Daily9:00:0017:00:00
By appointment starting at 10:00am10:00:00
10:00-11:30AM10:00:0011:30:00
2:00-4:00PM14:00:0016:00:00
8:00:00 PM
20:00:00







OR if a number isn't followed by a AM or PM,


OR if no times are found.



<tbody>
[TD="colspan: 2"] Time varies, please visit: http://tickets... [/TD]

[TD="colspan: 3"] Cell automatically highlights if a DAY of the week is detected (i.e. Fri or Friday), [/TD]

</tbody>


PLEASE HELP!!!!!!!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top