Duplicate A Macro To Different Cells
Jan 15, 2009
I have a worksheet change event that prevents a person from entering a positive number in 2 different cells. If they enter a number in one cell, the other locks, and vice versa. The code is below.
View 4 Replies
ADVERTISEMENT
Feb 28, 2013
I would like to know how I can have a macro run on an excel sheet of mine.
I have a little database with a few names and email addresses submitted to me via web.
But some people tried to register to my services TWICE with a different name, but same email address (not smart eh)
I would like to run a macro on a column and have it search for duplicate values and highlight them in... blue perhaps.?
P.s. the column format is set to 'TEXT'
View 2 Replies
View Related
Sep 16, 2012
I am new to VBA but I am trying to insert text and lock all duplicate cells except for the first one. Below is the macro I am trying to make. I keep getting an error on the line:
If(COUNTIF($A$9:$A$76,A9)=1,FALSE,NOT(COUNTIF($A$9:A9,A9)=1))
This is my macro:
Sub SetVoters()
'
' SetVoters Macro
'
'
Sub SetVoters()
'
' SetVoters Macro
'
'
ActiveSheet.Unprotect
[Code] ......
View 1 Replies
View Related
Jun 25, 2009
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)
View 9 Replies
View Related
Nov 1, 2007
I feel as though I have spent enough time searching the previous posts to ask this question.
I have a 4 column sheet, column B has many cells with identical data. I want to delete all the rows that that have duplicate data in column B.
COLUMN A= Car Makers
COLUMN B= Models of cars
COLUMN C= color
COLUMN D= owner
I want to end up with rows that each contain unique info in COLUMN B.
View 9 Replies
View Related
Feb 20, 2007
I have a sheet where I input 8 columns of data from an email template which is sent to me throughout the day. I enter data in one row per email along the 8 columns. eg A1 to H1 then A2 to H2 etc.
Column C has the entry as a job number '123456'.
I need to be able to see if the same job number appears more than once.
In one week I have input 135 rows of data and have spotted 3 occasions where the same job number has been called in.
Any way I can set up a seperate sheet which will search and show duplicated rows from sheet 1.
View 9 Replies
View Related
Sep 24, 2009
Is there a formula I can use in B2 whereby if the value in A2 is identical to the value in any other cell in column A, then return the value "duplicate" in B2?
View 2 Replies
View Related
Jan 8, 2008
I've searched the forums, and there are a lot of similar questions, but not quite what I'm looking for.
I have a large list of song titles, in one column. As an example, Song A is listed 4 times, Song B is 10 times, and Song C is 6 times.
Is it possible for Excel to go from this:
Song A
Song A
Song A
Song A
Song B
Song B
Song B
Song B
Song B
Song B
Song B
Song B
Song B
Song B
Song C
Song C
Song C
Song C
Song C
Song C
to this:
04-Song A
10-Song B
06-Song C
The numbers wouldn't necessarily have to be in the same cell, as long as I can sort the list from highest to lowest numbers while keeping the song titles matched with the correct number of instances.
View 9 Replies
View Related
Mar 25, 2008
how would i run a macro to merge duplicate cells in a column
For example, i have lots of data in columns A, B and C
however some of the data in columns A and B is the same. Column C data never changes. so to make it easier to read, i would like to merge these cells (which are the same) together?
-ColumnA-
Cat
Cat
Cat
Dog
Dog
Dog
Dog
Mouse
Mouse
Mouse
Mouse
Mouse
would become.... (with all the other data the same)
-ColumnA-
Cat
Dog
Mouse
I dont want to lose any of the rows, as the data in column C is always different. I just want to merge the similar ones, so its easier to read.
Its a bit like this, but i cant even come close to getting this to work:
[url]
View 9 Replies
View Related
Aug 15, 2009
I have two columns of numbers (2003), some of which match. Each column is of a different length and is arranged in a different order. I need to find all the number matches between the two columns. I can sort them ascending numerically but the columns are still disjointed with only occasional number pairs being readily visible.
View 9 Replies
View Related
Jan 25, 2010
I have two columns each of 5000 cells. Some cells of column A are duplicated in column B. The duplicates are not necessarily on the same rows. How do I delete the duplicates?
I've spent hours researching for an answer and I've tried Data>Filter>Advanced Filter many many times and it does not work. The two columns just sit there. Shouldn't this be a very easy thing to do in Excel?
View 9 Replies
View Related
Aug 16, 2006
I have attached a spreadsheet where I need the cells B2 to B8 to return the number of Y/P's (in column D) by Unit (in column E). There are duplicate entries in column D, however, if entry is duplicated, it is only to be counted once. Is there a formula to be able to do this? I don't know anything about VBA so would prefer a formula if possible.
View 5 Replies
View Related
Jul 30, 2007
I want to make a report wherein the macro has to merge cells based on duplicate cell values in column A and to put corresponding data in columns into one cell which we do manually by pressing ALT+Enter.
How this can be done through a macro or other tricks as I need it for a large report and need to use repeatedly.
A sample WB is attached which explains more.
View 4 Replies
View Related
Jun 1, 2014
How can I prevent duplicate numbers/pictures from one card to the next?
IE If B1 or an apple is on card one I do not want them on card 2 at all.
View 4 Replies
View Related
May 4, 2007
Is it possible to write a macro that does the following:
(1) Select range of cells to be fixed horizontally.
(2) Select range of cells to be transposed vertically (as attached).
(3) Duplicate each row selected in (1) based on the number of cells that has been transposed in (2)
Sample Data B.xls
The result is as attached:
New Format B.xls
As seen above, each row selected in (1) has been duplicated based on the number of cells that has been selected to be transposed in (2).
View 7 Replies
View Related
May 8, 2014
I have a sheet of over 20,000 rows, each with 2 columns. Column A is numerical, Column B is name and address. There are duplicate entries in Column B, but Column A has unique entries.
I need to have 1 row per unique name and address with the numerical data from Column A relevant to that name and address either in one cell comma separated, or in cell C,D,E,F etc...
View 1 Replies
View Related
Jan 25, 2013
I have text values in 2 different columns A and B. I can use the conditional formula to find and highlight duplicates but only if they are an exact match. How do I modify if they are not exact match but for example start with the same 3-4 text values?
View 1 Replies
View Related
Jun 20, 2013
How do I duplicate the values to say 4 times in a column?
So I have in a column,
dog
cat
bird
fish
I want to duplicate the above to look like this below,
dog
dog
dog
dog
cat
cat
cat
cat
bird
bird
bird
bird
fish
fish
fish
fish
I'll need to do this for 500 unique values 12 times each, so is there a formula to do this easily?
View 5 Replies
View Related
Jul 17, 2008
I'm use with this macro to Highlight duplicate cells BUT the macro highlight only from the second duplicate
I need to highlight ALL duplicate cells in column A:A .
FUNCTION like " =COUNTIF($A$1:$A$11,A1)>1 " it's not good for me in this case, i need it with a fast macro
View 9 Replies
View Related
Aug 12, 2009
how to even start this macro but i will like the macro to find duplicate with thin the same row and highlight it i have done with conditional formatting but the spreadsheet is about 3000 rows excel performance is super slow if anybody has a macro out there.
View 9 Replies
View Related
Oct 22, 2008
if the state, city and company name are the same, I need to make sure the address gets populated in the address column. I have included an attached sheet to clear this up.
For example,
Row 1 is Crazy Horse Saloon in Anchorage, AK and has an address and phone number
Row 2 is Crazy Horse Saloon in Anchorage, AK and does not have an address and phone number
I need it to be able to realize that the State, City, and Business all match and populate the missing information.
View 5 Replies
View Related
Dec 10, 2013
Checked for a while now for a match in my query but can't find one that matches. I have a column of data to which has multiple values in each cell separated by a comma I.e 1,1,12,37
I copy this column into a new sheet a:a then I'll run text to columns to separate the values into there own cells so the following columns now show this
a1 =1 b1=1 c1=12 etc
I'm now stuck as I need to clear the contents on the cells within range a1 to k1 that have duplicate values.
end result is a1=1 b1 is now blank c1 =12 etc
View 6 Replies
View Related
Jun 8, 2009
I have a spreadsheet that I have created as a door schedule for faculty members at our institution of higher education. The intention is for them to fill-in their office hours and courses along with a few other bits of information. One sheet should have their teaching and office hours and one sheet should not.
These are the cells that should be cleared once the sheet has been duplicated (F30, F31, G30, G31). Once the sheet is duplicated and those two cells' contents has been deleted, both sheets should be printed. Ideally, all of this would be initiated by clicking a hyperlink or something like that.
View 9 Replies
View Related
Feb 29, 2008
I have a spreadsheet with columns A to W populated with data and 2470 rows
Column A has email addresses in it (2470 rows)
Column B has email addresses that are bad and are duplicated of those found in Column A there are only 345 of them in column B.
I would like to compare columns A and B and highlight the email addresses in column A that are also found in column B.
OR: If column A has a duplicate found in column B I would like the word delete to be inserted into column C of that row so I can review and then delete later.
View 5 Replies
View Related
Apr 15, 2008
I have a workbook with 12 sheets, 1 for each month of the year. Each month has around 30,000 user IDs on it (this is a log of each time a user logs into our website). What I need to do is find out how many unique users have logged into our site for the whole year, or in other words, remove duplicate user ids accross the workbook. I realise that this will probably destroy my processor, so was wondering the best way to do it? I also have all this information in ONE spreadsheet if it would be easier? I just copied and pasted each month into a column (Jan is column A, feb in B, mar in C etc) I ran some code on this sheet to remove dupllicates from column A:E but this was taking AGES!
View 5 Replies
View Related
Aug 3, 2008
I was trying to create this certain tool using excel which queries data from database. I was successful in obtaining the data I need and paste it to my spreadsheet, however, there are some requirements I cannot create a solution with. Below is a description of my Excel file (which is also attached):
- There are 9 columns on my spreadsheet
- Number of records per data refresh are indefinite, for information in database are constantly being updated
- Several cells on the first column have exactly the same information
The requirements I cannot do are:
- For all cells on first column that have similar values, their corresponding data on column 5 should be concatenated
- Delete rows that have same data for column 1 except the first record found, place concatenated data on column 5 of first record
Example:..................
View 4 Replies
View Related
Apr 3, 2013
I'm trying to get data totals for multiple entries and haven't been able to figure out how to do this using a pivot table.
For example:
A B
Ben 2
Bill 1
Jane 3
Bill 4
Dave 7
Jane 4
Would make it
Ben 2
Bill 5
Jane 7
etc.
this list is 3700 cells long.
Is there an easy macro or another way of doing this? I want to generate a list that gives all data totals but just lists each persons name once. I treid attaching the file but it wont let me! here is the link... [URL]
View 1 Replies
View Related
Aug 17, 2014
I am trying to create a summary sheet that updates when input data is added.
I'm still learning many parts of excel and I'm unsure why the SUMIF function on occasion leaves duplicate data in.
I can live with the fact that I will need to correct the input data and am willing to just paste in corrected data when it has been validated via the data validation tab.
Once this has been done, all I am seeking is for a subsequent process to start which updates a summary sheet with the sums correctly adding via the sumif function.
I have left some instructions on the actual spreadsheet to clarify my intended results.
View 1 Replies
View Related
Nov 19, 2009
On some occasions the part number has several to collect but the output from the system we use will output this as a sinle line and a quantity of 2 for instance. I would like a macro to indentify all of the parts with a quantity more than 1 and insert a duplicate line with that quantity.
On the attachement sheet 1 is an example of how the data may look, sheet 2 is how I would like it to be after the macro has been run (but within the same sheet)
View 4 Replies
View Related
Feb 17, 2011
I need a quick macro to duplicate based on specific cell value in column D. If the value is 3, then I need the line to be copied three times and then change the original value line to an incrementing value.
Starting Data:
A_______|B_____|C_____|D_
CompanyA FacilityB Group1 qty3
CompanyA FacilityB Group2 qty2
CompanyA FacilityB Group3 qty4
CompanyA FacilityB Group4 qty1
CompanyA FacilityB Group5 qty5
End Result:
A_______|B_____|C_____|D_
CompanyA FacilityB Group1 001
CompanyA FacilityB Group1 002
CompanyA FacilityB Group1 003
CompanyA FacilityB Group2 001
CompanyA FacilityB Group2 002
CompanyA FacilityB Group3 001
CompanyA FacilityB Group3 002
CompanyA FacilityB Group3 003
CompanyA FacilityB Group3 004
CompanyA FacilityB Group4 001
CompanyA FacilityB Group5 001
CompanyA FacilityB Group5 002
CompanyA FacilityB Group5 003
CompanyA FacilityB Group5 004
CompanyA FacilityB Group5 005
View 5 Replies
View Related