date as text string extracted from data bank to use in a funtion...

soda1111

New Member
Joined
Dec 22, 2009
Messages
2
I'm trying to get a kind of schedule going but i cant seem to convert the date i extracted from a raw data bank into a usable value with respect to time.

Example: extract text(1:00 AM) from say (1:00 AM - 3:00 PM Room: 401)

I cant relate the extracted text to say an actual time value like 1:00 PM; 1:00PM<=1:00PM; false....

the text extracted is always larger and not equal to any actual time value

<table border="0" cellpadding="0" cellspacing="0" width="832"><col style="width: 48pt;" width="64" span="13"> <tbody><tr style="height: 15.75pt;" height="21"> <td style="height: 15.75pt; width: 48pt;" width="64" height="21">
</td> <td style="width: 48pt;" width="64"><=</td> <td style="width: 48pt;" width="64">>=</td> <td style="width: 48pt;" width="64">=</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">Raw Data</td> <td style="width: 48pt;" width="64">
</td> <td style="width: 48pt;" width="64">
</td> <td colspan="5" style="width: 240pt;" width="320">Extracted Data______Table for array w/ Vlookup</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl74" style="height: 15pt;" align="right" height="20">11:00 AM</td> <td class="xl88" style="border-left: medium none;" align="center">FALSE</td> <td class="xl80" align="center">TRUE</td> <td class="xl80" align="center">FALSE</td> <td>
</td> <td class="xl66" style="width: 48pt;" width="64">ID</td> <td class="xl67" style="border-left: medium none; width: 48pt;" width="64">Monday</td> <td class="xl68">
</td> <td class="xl77">
</td> <td class="xl78" style="border-left: medium none;">
</td> <td class="xl79" style="border-left: medium none;">
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" align="right" height="20">12:00 PM</td> <td class="xl88" style="border-top: medium none; border-left: medium none;" align="center">FALSE</td> <td class="xl80" style="border-top: medium none;" align="center">TRUE</td> <td class="xl80" style="border-top: medium none;" align="center">FALSE</td> <td>
</td> <td class="xl69" style="border-top: medium none; width: 48pt;" width="64">A409-1D</td> <td rowspan="3" class="xl65" style="border-top: medium none; width: 48pt;" width="64">1:00 PM- 2:00 PM</td> <td>
</td> <td class="xl81" style="border-top: medium none;">A409-1D</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">1:00</td> <td class="xl83" style="border-top: medium none; border-left: medium none;">2:00 PM</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" align="right" height="20">1:00 PM</td> <td class="xl88" style="border-top: medium none; border-left: medium none;" align="center">FALSE</td> <td class="xl88" style="border-top: medium none;" align="center">TRUE</td> <td class="xl88" style="border-top: medium none;" align="center">FALSE</td> <td>
</td> <td class="xl70" style="border-top: medium none; width: 48pt;" width="64">
</td> <td>
</td> <td class="xl81" style="border-top: medium none;">
</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl84" style="border-top: medium none; border-left: medium none;">
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" align="right" height="20">2:00 PM</td> <td class="xl80" style="border-top: medium none; border-left: medium none;" align="center">FALSE</td> <td class="xl88" style="border-top: medium none;" align="center">TRUE</td> <td class="xl80" style="border-top: medium none;" align="center">FALSE</td> <td>
</td> <td class="xl70" style="border-top: medium none; width: 48pt;" width="64">
</td> <td>
</td> <td class="xl81" style="border-top: medium none;">
</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl84" style="border-top: medium none; border-left: medium none;">
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" align="right" height="20">3:00 PM</td> <td class="xl80" style="border-top: medium none; border-left: medium none;" align="center">FALSE</td> <td class="xl88" style="border-top: medium none;" align="center">TRUE</td> <td class="xl80" style="border-top: medium none;" align="center">FALSE</td> <td>
</td> <td class="xl69" style="border-top: medium none; width: 48pt;" width="64">A409-1E</td> <td rowspan="3" class="xl65" style="border-bottom: 1pt solid black; border-top: medium none; width: 48pt;" width="64">3:00 PM- 5:00 PM</td> <td>
</td> <td class="xl81" style="border-top: medium none;">A409-1E</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">3:00 PM</td> <td class="xl83" style="border-top: medium none; border-left: medium none;">5:00 PM</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl76" style="height: 15.75pt; border-top: medium none;" height="21">
</td> <td class="xl80" style="border-top: medium none; border-left: medium none;" align="center">FALSE</td> <td class="xl88" style="border-top: medium none;" align="center">TRUE</td> <td class="xl80" style="border-top: medium none;" align="center">FALSE</td> <td>
</td> <td class="xl70" style="border-top: medium none; width: 48pt;" width="64">
</td> <td>
</td> <td class="xl81" style="border-top: medium none;">
</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl84" style="border-top: medium none; border-left: medium none;">
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15.75pt;" height="21"> <td style="height: 15.75pt;" height="21">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl71" style="border-top: medium none; width: 48pt;" width="64">
</td> <td class="xl73">
</td> <td class="xl85" style="border-top: medium none;">
</td> <td class="xl86" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl87" style="border-top: medium none; border-left: medium none;">
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> <td class="xl89" align="center">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> <td class="xl80" align="center">
</td> <td>
</td> <td class="xl90">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 30pt;" height="40"> <td style="height: 30pt;" height="40">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> </tbody></table>Showing funtions:
<table border="0" cellpadding="0" cellspacing="0" width="1408"><col style="width: 96pt;" width="128" span="11"> <tbody><tr style="height: 15.75pt;" height="21"> <td style="height: 15.75pt; width: 96pt;" width="128" height="21">
</td> <td style="width: 96pt;" width="128"><=</td> <td style="width: 96pt;" width="128">>=</td> <td style="width: 96pt;" width="128">=</td> <td style="width: 96pt;" width="128">
</td> <td style="width: 96pt;" width="128">Raw Data</td> <td style="width: 96pt;" width="128">
</td> <td style="width: 96pt;" width="128">
</td> <td colspan="3" style="width: 288pt;" width="384">Extracted Data______Table for array w/ Vlookup</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl74" style="height: 15pt;" height="20">0.458333333333333</td> <td class="xl88" style="border-left: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)<= B2</td> <td class="xl80">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)>= B2</td> <td class="xl80">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE) = B2</td> <td>
</td> <td class="xl66" style="width: 96pt;" width="128">ID</td> <td class="xl67" style="border-left: medium none; width: 96pt;" width="128">Monday</td> <td class="xl68">
</td> <td class="xl77">
</td> <td class="xl78" style="border-left: medium none;">
</td> <td class="xl79" style="border-left: medium none;">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" height="20">0.5</td> <td class="xl88" style="border-top: medium none; border-left: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)<= B3</td> <td class="xl80" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)>= B3</td> <td class="xl80" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE) = B3</td> <td>
</td> <td class="xl69" style="border-top: medium none; width: 96pt;" width="128">A409-1D</td> <td rowspan="3" class="xl65" style="border-top: medium none; width: 96pt;" width="128">1:00 PM- 2:00 PM</td> <td>
</td> <td class="xl81" style="border-top: medium none;">A409-1D</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">=REPLACE(H3,FIND("0 ",H3,1)+1,12,"")</td> <td class="xl83" style="border-top: medium none; border-left: medium none;">=REPLACE(REPLACE(H3,FIND("0 ",H3,10)+4,17,""),1,9,"")</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" height="20">0.541666666666667</td> <td class="xl88" style="border-top: medium none; border-left: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)<= B4</td> <td class="xl88" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)>= B4</td> <td class="xl88" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE) = B4</td> <td>
</td> <td class="xl70" style="border-top: medium none; width: 96pt;" width="128">
</td> <td>
</td> <td class="xl81" style="border-top: medium none;">
</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl84" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" height="20">0.583333333333333</td> <td class="xl80" style="border-top: medium none; border-left: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)<= B5</td> <td class="xl88" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)>= B5</td> <td class="xl80" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE) = B5</td> <td>
</td> <td class="xl70" style="border-top: medium none; width: 96pt;" width="128">
</td> <td>
</td> <td class="xl81" style="border-top: medium none;">
</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl84" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl75" style="height: 15pt; border-top: medium none;" height="20">0.625</td> <td class="xl80" style="border-top: medium none; border-left: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)<= B6</td> <td class="xl88" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)>= B6</td> <td class="xl80" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE) = B6</td> <td>
</td> <td class="xl69" style="border-top: medium none; width: 96pt;" width="128">A409-1E</td> <td rowspan="3" class="xl65" style="border-bottom: 1pt solid black; border-top: medium none; width: 96pt;" width="128">3:00 PM- 5:00 PM</td> <td>
</td> <td class="xl81" style="border-top: medium none;">A409-1E</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">=REPLACE(H6,FIND("0 ",H6,1)+4,10,"")</td> <td class="xl83" style="border-top: medium none; border-left: medium none;">=REPLACE(REPLACE(H6,FIND("0 ",H6,10)+4,17,""),1,9,"")</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl76" style="height: 15.75pt; border-top: medium none;" height="21">
</td> <td class="xl80" style="border-top: medium none; border-left: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)<= B7</td> <td class="xl88" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE)>= B7</td> <td class="xl80" style="border-top: medium none;">=VLOOKUP($G$3,$J$2:$L$8,2,FALSE) = B7</td> <td>
</td> <td class="xl70" style="border-top: medium none; width: 96pt;" width="128">
</td> <td>
</td> <td class="xl81" style="border-top: medium none;">
</td> <td class="xl82" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl84" style="border-top: medium none; border-left: medium none;">
</td> </tr> <tr style="height: 15.75pt;" height="21"> <td style="height: 15.75pt;" height="21">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl71" style="border-top: medium none; width: 96pt;" width="128">
</td> <td class="xl73">
</td> <td class="xl85" style="border-top: medium none;">
</td> <td class="xl86" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl87" style="border-top: medium none; border-left: medium none;">
</td> </tr> </tbody></table>Thanks ^^
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,225,401
Messages
6,184,760
Members
453,254
Latest member
topeb

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