I'm trying to import an excel list into this database, but it does not allow duplicate names.
If cell A1= abcdefghij
and cell B1=abcdefghij
and cell C1=abcdefghij
I need a code that will compare A1 to see if there is any duplicates, and if there is i need it to see if the name is = or greater then 10 characters, if so i need it to be reduced to 9 and then have a "1" added to the name. then if there is 3 with the same name i would need it to add a "2" to the next one.
so the end result of the forumla would be
A2= abcdefghi1
B2= abcdefghi2
C2= abcdefghij (this one is left alone)
I have what should be a simple question. I have a button in a form that needs to duplicate a sheet and rename it. It will duplicate but i am having problems with the renaming. The name of the sheet is coming from a userform text box. Here is the code i am trying.
I am currently doing an excel database of students application. I want a macro that creates a duplicate of a template sheet and renaming it based on the name of the student. Meaning once a name appears in the name cell, a sheet of that particular name is automatically created. At the same time, i want all the data regarding the applying student to appear the newly created sheet as shown in the attached file.
I am trying to use ActiveSheet.Name formula to rename the active sheet. It is only working part of the time and I can't figure out why. I do know, however, when it is going to work and when it is not going to work. If cell A2 contains two words, it does not work. If cell A2 contains only one word, it does work. Here is the code. The highlighted part in blue is the code that names the sheet. I have attached sample spreadsheet if needed.
I found a post to name a sheet using the cell value with VBA but is there a "formula" in Excel that will do the same? I'm wanting only to use the first 10 letters of a cell.
A1 B1 Apple Sweet Apple Juicy Apple Worm ridden Apple Round Apple Cooking Apple Grannies Pear Green
[code]......
and would like to combine all of the duplicates from A1 into one field, with all of the options in B1 combined into one cell (separated by a |). So the above table would read:
Apple Sweet|Juicy|Worm ridden|Round|Cooking|Grannies Pear Green|Tasty|Mouldy Orange Tangy|Tasty Peach Rare|Forbidden|Expensive|Squishy
I need some excel formula to prevent duplicate cells in my excel file.
Case: I have one excel sheet with one column containing certain cell occupied with data (Eg: A01 to A30), Now i'm try to paste some more data in the consecutive cells (Eg: A31 to A40). The data i'm pasted second (Eg: A31 to A40) may contain some data from first pasted data(Eg: A01 to A30). I need to remove the duplicates. In this case after pasting 2 datas i can remove duplicates. But i want to prevent from pasting of duplicate data..i.e. while pasting the second set of data, a pop window should appear and tell me "these data are already present" etc..
Is there a way to use a formula to take an adjacent range of cells and duplicate all values so that the resulting range contains one duplicate of each cell. For example A1:A5 is:
I have a list of items which I want to return the number of sheets in stock at the end of the month which uses a lookup.
My problem is though is that products can appear on the list more than once, therefore I need an IF formula which if it’s a duplicate (other than the first instance) I need it to appear as zero.
I have attached a spreadsheet which may be clearer than above.
Your notice on the spreadsheet the same product appears in 4 difference racks however I only need it to show once the total sold and total receipted. I have shaded in grey the desired result.
There are many Software and Add-in and Macro or Code to Delete or Eliminate the Duplicate Data. But, I want to Delete The Duplicate BLANKS Row.I means to Say that Delete Every Repeated Blank row Note : I Want to Use Formula or Function
I have a range, 2 columns * 5 rows, populated with numbers. I want an Array formula that it gives back SMALL (Range, 1) ...... SMALL (Range, n-m), but WITHOUT DUPLICATES
I am trying to create a column to match duplicate information, primarily numbers, so I can delete the duplicate information. Using the Find option is too time consuming. I am pasteing the new info above the previous weeks info. Some years ago I used a formula that would "Match" a range and I believe it would copy the duplicate in the empty column but it's been so long I am not certain nor do I remeber the formula. I've tried using the filter feature and looked at previous post but I am not familiar enough to know how to decipher the info given.
I have a long list of work items that is referenced by a unique 7 digit number. I need to create a formula to identify the specific work items that is being duplicated in the list and generate that number. Example is as follows
Work Item#
1234567 1234568 1234567 1234569 1234568
Based on the above list, I need to create a formula that generates all work items that is being duplicated.In the example above, the formula should generate the following work items:
In worksheet named, " My Overview", if the total sales values are a zero in C47:C59 the consultant name is duplicated in B47:B59 because of the values being a zero in C47:C59. How can i have the formula not duplicate this?
I need a formula (I'm not sure if its possible without using VB which I have found on another thread) that I can 'drag' down to the cell Bx (where x is variable) to extract unique entries in a list of values and then display them in a shorter, more concise list - like the 'Pick From List' function does but actually display these values in seperately in a column of cells.
Hope this is making sense.
So (hopefully) to elaborate:
A1:Ax = The list of values containing duplicates B1:Bx = The list of only unique values from column A
I have a long list of work items based on a 7 digit number. The work item is referenced by a code named DS or WU.Example as below and the work item# has duplication throughout the list.(work item # repeated)
I need to create a formula that counts how many duplications of work items, by the number of DS or WU. Based on the above example, the formula should arrive at the results below
I wish to create a spreadsheet which has formulas which would enable me to see if a patient has had more than one referral created within the next 30-90 days [the actual number of days not important - the ability to modify the formula to reflect which time period required would be cool] and also to see if a patient has been referred for the same medical condition again. Thus in my mind at least two different formulas - has the patient been referred again within a time period of days and has the patient been referred again for the same medical condition.
Attached is an example referral spreadsheet I have created
I got a formula from this forum to eliminate duplicate records in a array from 1 column in database. Now I would like to take it one step further and filter out records in the array that do not meet the criteria of being in a particular "Zone" selected by the user by clicking on a ComboBox from cell "AA18".
How do I set up a custom validation formula to prevent duplicate enties?
For example I I've already enter the song name 19 and Paul Hardcastle (BandName), how do I set it up where I can not enter that combination again on a row?
I was wanting to use a custom CountIF function but I could not get it to work.
I'm in need of a formula, or another automated technique, to link a column of data from one worksheet to another. I have an input worksheet that I copy the raw data into that is formatted as follows:
I need this import sheet to link to an output worksheet that would be updated automatically as new data is entered into the input sheet. However, I need the output sheet to copy the input values a specified # of the times and list them. For example, if the specified # was 3, it would be formatted as follows:
I need the formula, or method, to be one that I don't have to continually re-enter as the data changes, as I have thousands of records to do this with. I've tried filling down, but autofill doesn't recognize an accurate trend. Is this something that I can accomplish by combining several fomulas, creating macros, or a combination of the both?
making a macro that will scan for duplicates, length & empty cells.
I have the sample file below that does conditional formatting but it doesnt help as much because I want to show the reason for the highlight's on a comment instead.
sample file : [url]
file that might help out: [url]
checks would be: column A - duplicates and/or length should not be over 100 characters column B - duplicates column F - should only contain 2 comma's(or 3 keywords) all columns - check if no entries are found(empty cells)
I have a worksheet that has 3 duplicate values in a particular column, I need a macros that will highlight two of the duplicates row and then another macro to delete the entire row. The duplicate element are in column R. find attached worksheet.
I have a spreadsheet with 3300 rows. In column A there is a list of company names and in column H there is a corresponding Sales Rep name.Column A has many duplicate company names. I would like to run a macro that will find the a company name and then delete all the rest of the rows that contain that same company name.
I am using the following macro to insert the word "Duplicate" in the first blank column next to a duplicate row. My data is sorted by the first column. Data Example:
12345 a 12345 a DUPLICATE 11111 b 23123 b
Here is the macro I am using and it does not work. It marks the first duplicate it finds then goes into an infinite loop. Any Idea where I went wrong?
Sub MarkDupes() x = ActiveCell.Row y = x + 1 Do While Cells(x, 1).Value <> "" Do While Cells(y, 1).Value <> "" If (Cells(x, 1).Value = Cells(y, 1).Value) Then Cells(y, 3).Formula = "Duplicate" Else y = y + 1 End If Loop x = x + 1 y = x + 1 Loop End Sub
I have 4 columns in my spreadsheet. I am trying to find any duplicates that may exist in Col A, sum values in Col D, then delete the entire row. So far my sheet before I run my vba code is this.
Col A 100 101 102 105 100 101 102 105
Col D 5 4 2 4 1 2 3 1
After my code is run, I need for my spreadsheet to look like this
Col A 100 101 102 105
Col D 6 6 5 5
I have some code but I still need to do a considerable amount of tweaking to it. Currently my code is only deleting the duplicate values in Col A. I am having difficulty summing the values in Col D as well as deleting the entire row.
Here is my code thus far....
------- Public Sub FindDuplicates() For RwCnt = 1 To (Worksheets(1).Cells(65536, 1).End(xlUp).Row) SrchValue = Worksheets(1).Cells(RwCnt, 1).Value If Len(Trim(SrchValue)) > 0 Then With Worksheets(1).Range("a1:a" & Cells(65536, 1).End(xlUp).Row)