How do you grab the date?

entauri

New Member
Joined
Jun 23, 2014
Messages
18
Hi,

How would you get Column B from Column A?

[TABLE="width: 0"]
<tbody>[TR]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[/TR]
[TR]
[TD]List
[/TD]
[TD]Date
[/TD]
[/TR]
[TR]
[TD="align: right"]15-Nov-17
[/TD]
[TD]15-Nov-17
[/TD]
[/TR]
[TR]
[TD]Bread
[/TD]
[TD]15-Nov-17
[/TD]
[/TR]
[TR]
[TD]Apples
[/TD]
[TD]15-Nov-17
[/TD]
[/TR]
[TR]
[TD]Bananas
[/TD]
[TD]15-Nov-17
[/TD]
[/TR]
[TR]
[TD="align: right"]16-Nov-17
[/TD]
[TD]16-Nov-17
[/TD]
[/TR]
[TR]
[TD]Eggs
[/TD]
[TD]16-Nov-17
[/TD]
[/TR]
[TR]
[TD]Bread
[/TD]
[TD]16-Nov-17
[/TD]
[/TR]
[TR]
[TD="align: right"]17-Nov-17
[/TD]
[TD]17-Nov-17
[/TD]
[/TR]
[TR]
[TD]Bananas
[/TD]
[TD]17-Nov-17
[/TD]
[/TR]
</tbody>[/TABLE]


Thanks greatly in advance!


MET
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Assuming data in col A is always either a date or text, copy B2 down. Format col B as Date.
Sheet1


AB
ListDate
Bread
Apples
Bananas
Eggs
Bread
Bananas

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:70px;"><col style="width:70px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: right"]15-Nov-17[/TD]
[TD="align: right"]15-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]

[TD="align: right"]15-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]

[TD="align: right"]15-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]

[TD="align: right"]15-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="align: right"]16-Nov-17[/TD]
[TD="align: right"]16-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]

[TD="align: right"]16-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]

[TD="align: right"]16-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]
[TD="align: right"]17-Nov-17[/TD]
[TD="align: right"]17-Nov-17[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]10[/TD]

[TD="align: right"]17-Nov-17[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
B2=IF(ISNUMBER(A2),A2,B1)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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