0% found this document useful (0 votes)
11 views

Excel Tips

The document provides guidance on formatting dates in Excel and removing duplicate rows from a list. It discusses using a TEXT formula and VBA to change dates in column E to the "m-d-yyyy" format. It also outlines
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Excel Tips

The document provides guidance on formatting dates in Excel and removing duplicate rows from a list. It discusses using a TEXT formula and VBA to change dates in column E to the "m-d-yyyy" format. It also outlines
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Change Date Format

Asked by btstamp50 in Spreadsheet Software, Microsoft Excel Spreadsheet Software Tags: excel, date, format, change
Hi experts, I have a report that outputs text into a date column 'E' in excel. This formula works: The Excel function that converts dates to text is: =TEXT(XX,"m-d-yyyy") XX is the cell reference i.e. A1, B12... To the date How do I set up a macro or perferably a sub to perform this function? The sub needs to contain the TEXT function because their is a conversion problem between the versions of Excel being used. Placing in a seperate column and using this text function works. I need to run a sub that will change the output into column E to a date using this TEXT format.

A duplicate row

(also called a record) in a list is one where all values in the row are an exact match of all the values in another row. To delete duplicate rows, you filter a list for unique rows, delete the original list, and then replace it with the filtered list. The original list must have column headers.

Because you are permanently deleting data, it's a good idea to copy the original list to another worksheet or workbook before using the following procedure. 1. Select all the rows, including the column headers, in the list you want to filter. Tip Click the top left cell of the range, and then drag to the bottom right cell.
2. On the Data menu, point to Filter, and then click Advanced Filter. 3. In the Advanced Filter dialog box, click Filter the list, in place. 4. Select the Unique records only check box, and then click OK.

The filtered list is displayed and the duplicate rows are hidden.
5. On the Edit menu, click Office Clipboard.

The Clipboard task pane is displayed.


6. Make sure the filtered list is still selected, and then click Copy

The filtered list is highlighted with bounding outlines and the selection appears as an item at the top of the Clipboard.
7. On the Data menu, point to Filter, and then click Show All.

The original list is re-displayed. 8. Press the DELETE key. The original list is deleted. 9. In the Clipboard, click on the filtered list item. The filtered list appears in the same location as the original list. Use ="today : " & Text(TODAY(),"mm/dd/yy") Barrie
Changing Date and time formate Using LEFT RIGHT and MID formats Eg: =MID(A1,4,2)&"/"&LEFT(A1,2)&"/"&MID(A1,7,20)

You might also like