problem copying dates from the web into excel

amitb

New Member
Joined
Jul 26, 2004
Messages
24
Hi

I copy dates from a web page for my report. The dates are in the format: 10/10 on the web page. On my sheet I have formatted them as date with following format: 10-Oct-05.

Most of them automatically add 05 and show in the format I want : 10-Oct-05. Howver not all show up like that - some only show up as 10/10. I have to then add 05 manually in front of them and I get the format I want. If I try to add 05 with a formula then I get this format: 10/10/05. And I cannot get it the format I want no matter what I do. And when I go to format cells, it shows it as type date and exactly as I want it: 10-Oct-05, but the cell still shows it as 10/10/05.

Can someone please give me a solution so I dont have to manually add the 05 for each cell.
 

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
presume in 10/10 the first is month and second idsdate
then use this fomula
=(LEFT(A1,2)&"/"&MID(A1,4,2)&"/05")+0
if the first 10 is date andsecond 10 is month use this formula
=(MID(A1,4,2)&"/"&LEFT(A1,2)&"/05")+0
 

Forum statistics

Threads
1,078,473
Messages
5,340,543
Members
399,383
Latest member
rahmanab001

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top