I have two columns in excel with column A is a numbers and column B is a duplicate of various texts.
I need a way to copy the column A to column C if column B is duplicate?
If you are simply trying to indicate duplicates, would this work for your case (formula goes in C2)?
=IF(COUNTIF(B:B,B2)>1,A2,"")
Work on a copy, with data headers assumed to be in row 1.
Sort data by column B.
In C2, type =IF(B2=B1,A1,"")
and copy down the sheet.
Then, if there's a duplicate, it will appear in column C
Related
I'm hoping this is so simple I'm just over-looking the obvious answer! I want to move the values (pictured) in column A, en-masse, to the blank cells in column B without overwriting the existing values in column B. Note that the data in column B has differing number of rows. Any ideas?
enter image description here
There are a couple of options to do this:
Option 1
Place a filter onto the data
Filter column B for blank values
Enter a formula into B1 that is =A1
Drag this down to the bottom of your cells
Set the filter for all values
Select the whole of column B
Copy and Paste the data as values
Option 2
Create a new column after B
In this column enter the following formula - =IF(B1="",A1,B1)
Drag this down to the bottom of your data
Select the whole of column B
Copy and Paste the data as values
Delete column B
Column C then becomes column B
I knew I was missing something...Copy Column A, highlight column B, 'Paste special', tick 'Skip blanks' checkbox and done! Many thanks for reading.
I apologize if this question has been asked before, but I have searched and cannot locate it.
Each cell in column B contains a specific (but not necessarily unique) value for each value in Column A. Column C contains all Column A cell data, but also contains additional data cells. I am attempting to create a new Column (D) for the Column B values to correspond with the Column A/B relationship. There will obviously be blank cells in Column D (for the rows where Column C contains data not located in Column A), but this is not an issue for me in this situation. Essentially, I want the A/B relationships to all be reflected in Columns C/D with blanks in the D rows where C has data not located in A.
Any help would be GREATLY appreciated.
In cell D1, do :
=iferror(index(b:b, match(c1, a:a, 0)),"")
Then drag downwards.
Idea/reference : I use index match function (a web search will explain it much better) to retrieve the column b value n fill it in column d. And put a blank "" if no match found. Pls share if it works/not.
How do I get column E to skip rows where there no duplicate in column A.
Instead of trying to figure out how to insert blank rows in Column E and F where there is a missing value based on A... use a Vlookup() in Column D to grab the relevant pieces from Column F:
Assuming your data starts on A16 according to your picture, in D16 enter:
=Vlookup(A16, E:F, 2, False)
And copy that down. Now you will have Column F values in their appropriate rows in Column D.
I have a worksheet with 3 columns (A,B,C).
I want to check for duplicates between column A and C
If a cell value in A matches a cell value in C then I want to copy B in that row to another location (let's say column E).
The cells are located in different rows on columns A and C.
The copy from B column needs to be on the same row as the duplicate on A, not on C.
How can I do this with Excel VBA?
Thanks a lot!
Perhaps you can use a formula like:
=IF(COUNTIF(C:C,A1)>0,B1,"")
It should give you what you want. Put that in column E, and copy it down for what you need.
Would really appreciate some help. Pretty basic problem. In column A I have SSN's, Column B I also have SSN's and in column C I have dates associated with the SSN's in Column B. The problem the 2 different SSN's columns don't match and I need them too. Problem 2: The dates in column C need to stay associated with the same socials in column b.
This is fairly simple.
Either in a new sheet or in separate columns from your original data, create create a column that represents the same column as A or the original SSN's, this can easily be done with a simple reference formula =A1 and autofilled down. You can do the same for the second column that is a copy of the first SSN.
For the third column just use a simple INDEXand MATCHformula like this:
=INDEX(C:C,MATCH(E1,B:B,0))
This formula I have the new data in Columns E-G with this formula in column G.
What this formula is doing is looking for the value of E1 within column B (looking for the value of the first SSN within the span of the column B). It will then grab the date value from column C associated with the found value in B. This will not work if multiple of the same SSN's are found within column B.
Note: You have to set the formatting of the formula cell as a Date