I am doing a bit of data spring cleaning... I need some VBA that will look at column FT for duplicates. I want it then to keep only the most recent one, so it would delete the others rows completely. Column B contains a date and time. When removing the items it should make a copy of them to the sheet Delete Log.
I have a pretty good size file here where I need to remove duplicated date BUT keep only the Newest Record.
What is Needed is to look at "test Group Identification" and compare it to "Actual Start Time" and keep only the Newest Record and remove any Exact Duplicated data
See example of Data.
Test Status Test Group Test Group Identification Actual Start Time Want I need
Completed CMTS cdn01.bellsrd.va.richmond.comcast.net 09-Jan-2013 15:48:25 EST Delete
I have a spreedsheet with 17,000 rows in it. In column D I have ID numbers and in column B I have the dates. There are multiple entries for each ID in column D which gives multiples dates each entry was given in column B. I need a VBA Macro that will identify duplicate entries in Column D and keep only the most recent entry by date in column B.
I have a user form with 4 text boxes and a command button. I have no problem looping through the textboxes to retrieve the value, but what is the best way to detect if any duplicates exist between the four text boxes? For example, in the command button's If textbox one's value is "test" and textbox four's value is also "test", it should throw an exception. If a question like this has already been answered, a link to that post would surely suffice.
I want to sort a column in Excel 2007 which is having dates. Normally, we use oldest to newest or newest to oldest option in sort & filter. But i am unable to find this option in my excel sheet. how can I find this option in Sort & Filter.
Note: I have imported this data column from Access 2007
I have two columns of data. In column A is a date and in B is a dollar amount. I need a formula to average the dollar amount in Column B for the newest 42 entries. Every month I have to add a row at the top of the sheet to enter a date and dollar amount. Eventually there will be more than 42 entries. Each time I add a row to the sheet my formula's range shifts down with it. Here is an example of the data that will eventually go past 42 rows.
A B 112/1/08 $4000 211/1/08 $4250 310/1/08 $5000 49/1/08 $4300
I have an excel spreadsheet that has a list of pathways to different folders (ex. Q:TechnicalY001) in each row. I want a macro that will search each of the folders I list in a range of cells and return the most recent file by the Date in the filename:
The macro would return the most recent file in Y001 and dump the filename into cell B1. Then it would return the most recent file in Y002 and dump the filename into B2.
After I have all of the most recent filenames, I want to be able to search each of those files for data in certain cells and then dump that data into the spreadsheet. The cells are always going to be the same in each file.
I am doing a project for work at the moment where by I have to manipulate a report compiled by an external program and do various bits and bobs to it. Trouble is, the other program creates a new version every time it runs the report (i.e filename.1.xls, and the next day filename.2.xls, and so on). Is there any way of searching the folder these files are in to find the newest file and select that one as the one to open and manipulate? There will be no files other than these in the folder.
I'm trying to figure out a formula to that will pull the newest data from a list. So say I have a list A2:A20. Each week a new number will be entered into the next cell (in this case A21) making the list longer. Is there a formula or some script that will allow me to do this? I have tried a few different things and cant seem to figure it out
I want to seach and select the newest date in a column. There are green, red and black fonts in the column. I only want to only seach the cells with black fonts.
I've got one very strange column of dates. The dates in the column are in different formats and probably the first thing would be convert them into one format.
They are, like...
04/07/2014 04:50 and 08/24/12 09:46:59
... type cells. The next thing would be sort them in some logical way not just by first number.
Column with dates.xlsx
What I am having now and how far I am, is...
They might be sorted in some way by month and date but not by actual year that is left out completely. It is just total mismatch and doesn't make any sense.
In the included workbook I've got a sheet that needs to be updated every time a userform is completed. So I intend to run a macro after the data is entered to find duplicates, and delete the older row.
so, column A must match then column C must match then look in columns AK & AL to find the newest entry to keep. I also need to delete any rows where column A is empty(light Green), no matter what other columns have data.
In my example sheet all the yellow's match for column A but the bright yellow's are the only "keepers", because one has a different number in "C" and the other is the newest.
Also remember that this is just part of a much bigger, multi-sheet book so I will need to I.D. this sheet in the code.
I need to send a file to hundreds of users so that I can tell who has a particular add-in installed. This file will then be saved to a particular directory. The problem I'm having is controlling the error that occurs when the add-in is NOT installed. The below approach (using On Error Goto) clearly isn't the way to go. I need something like If(Iserror(AddIns("AmartaSpecs") Then Cells(2,3)="No"
I am trying to create a code in the Worksheet_change event. I have hundreds of rows of data in a sheet. Each row of data is one unique project. What I am trying to do is figure out if any cell in a specific row has changed, and place a date at the end of that row idicating the date of the change.
In short, I would like a pivot table to only count unique values, but when I click into the pivot I would like to show all instances of that value. For example:
I have a table of data that I am creating a pivot table from. There are fields for Customer ID, Task Name, Age, and Notes. There will be multiple records for a single Customer ID each time it has new notes.
I would like to create a pivot table that has Task Name in the Row Labels, Age in the Column Labels, and count of Customer ID in the Values, so that, for example, I can see how many accounts have been in the Design task for 2 days. However, when I do this it counts each record, but I would like it to count each unique Customer ID. Also, when I click into the pivot, instead of pulling up one line per Customer ID, I would like it to pull up each instance of Customer IDs in that Task Name/Age combination (similar to doing a DISTINCT in SQL).
I searched this site and found the code below to check if a worksheet to be updated is already open. It works fine (gets the desired message) if the workbook is open, but if not open I get "Run-time Error 9, Subscript out of range". I've played with it for a couple hours,
VB: Dim wBook As Workbook 'Check that Summary worksheet is available for update. Set wBook = Workbooks("CommittedSummary.xls") If wBook Is Nothing Then 'Not open 'Do nothing Else 'It is open i = MsgBox("The 'CommittedSummary.xls' workbook is already in use and cannot be updated. Please try again when the workbook Is available", _ vbCritical, "Committed Request Edit") Goto EndUpdate End If
I have a column with employee id's. Sometimes two or more employee ID's are double. I need to dedect if there are ID numbers that appears more then ones. If I found such a number I can copy that.
Has someone an idea or is there a build in function to handle this?
How can I detect on an excel workbook which cell have links(formula =) to other workbooks without have to put my cursor on top of each linked cell.
I have had a hard time finding this cells. I can see the links by choosing Edit then links, and excel will display list of links, but it does not specify which cells contain those links
I have a workbook with a few worksheets. In sheet1 I have a few ranges which are linked to different parts in the other excel sheets.
Is there anyway to check if a range is being used as a link in another sheet.
Eg.
In sheet1 , A1 i have a value Apple.
In sheet2, A1 I have linked it to sheet1 A1.
is it possible to detect the link in sheet2 A1 from Sheet1 A1? I tried using Trace dependents but all it shows me is the link symbol? An arrow with a small excel sheet.
Is there anyway to detect if the user has just printed. I have code which transfer data from the sheet to an access file when the user prints using the button I placed on the sheet, unfortunately some users are using the print button on the toolbar.
Is there some way to detect that a key (specific or any) is being pressed when an Excel workbook is being opened to activate optional precessing in the macro code?
if i have data across multiple rows than is it possible to analyze that data in say row 1 and once row 1 ends move to row 2. example
Array Data
Colmn A B C D E Row1: 3 1 4 6 8 Row2: 6 7 8 9 10 Row3: 4 5 1 2 8 Row4: 6 4 3 2 1 Row5: 2 4 1 2 2
OutPut Format
Colmn F Row 1: Age is 3 Row 2: Always Same - Note this appears even though not part of data Row 3: Year is 1 Row 4: Time is 4 Row 5: Hour is 6 Row 6: Minute is 8 Row 7: ! !Not Part of Output Comment: Now row 1 data has ended. Move to Row 2! Row 8: Age is 6 Row 9: Always Same - Note this appears even though not part of data Row 10: Year is 7 Row 11: Time is 8 Row 12: Hour is 9 Row 13: Minute is 10 ! etc etc etc
also note that the text that comes up in each row is not part of the data portion. Its just the number or string that gets pulled from the data portion.
I'm trying to automate a spreadsheet that downloads a set of tickers from Bloomberg and then fills across a range with a series of data. I have most of the VBA code I need, but my problem is that on opening the spreadsheet, the code moves on to fill the range before all the tickers have downloaded correctly.
I've tried using application.wait and setting up loops until the time reaches a certain value, but these seem to stop Excel updating the list of tickers (presumably the loops stop excel gathering the data?). I suspect that what I need to use is something like the querytable. afterrefresh, but am not sure I'm using it correctly since my knowledge of VBA is very rudimentary.
(i) is there a way of getting the sheet to open, and then just wait for a period of time while still allowing the tickers to download, and/or
(ii) any way to detect when the tickers have finished downloading before the next step of code can commence?