The excel file has column A & B. Column C is what I need to create.
Condition is when "column A" (Email) is not empty, then I need to keep the first occurrence of ColumnA + ColumnB. All other occurences can be deleted.
I tried with various options such as COUNTIF and FREQUENCY but not getting anywhere.
Please let me know the best approaches.
Thanks.
no need to formula, select the columns in which you are looking for the duplicates then go to your DATA tab in excel, and click on remove duplicates in the data tools section. There you go!
Related
Hopefully this is an easy one. Basically I have a list of item numbers as well as a list of their descriptions in the adjacent column, (Call it "Item numbers" from A1 to A20 and "Item Description" from B1 to B20). So I have created a drop down for the Descriptions in column B and I want it to automatically fill in the correct Item Number in the adjacent cell in column A. So i have created a separate table with the corresponding Item Numbers and Descriptions next to each other. Yet, I can't seem to get a proper formula to reference the original A and B columns. My research said the Index formula could do it, but I'm not sure. Furthermore, I'm open to a more simpler way as well.
Thank you for any help
I thought you could do this with a VLOOKUP, but it can only be used to search in the first column (A). So you have to combine INDEX and MATCH:
=INDEX($A$1:$A$20, MATCH(E11, $B$1:$B$20, 0))
where E11 is the cell with the dropdown.
i want to delete complete row in excel if the value in A column in NULL (i mean empty).
is there any simple query which can do this ?
please don't say some filter way... :( they won't work for me :( if there is any EXCEL FORMULA please help me know friends...
A B C D E
10 20 ADE
56 AE A4 A76
4 EE AS EWS
45 SS EE
i want to delete the 1st and 4th row as column A rows are empty...
Try this:
Put a formula in cell F1: IF(A1="","",ROW())
Fill down the whole of column F. This should give you consecutive numbers, or blanks where column A is blank.
Select all of column F, Copy, then Paste special... values only. This will stop the numbers changing when you do step 4.
Select the whole table and sort by column F. This will put the rows you don't want at the bottom, where you can delete, hide or ignore them.
Delete column F once you're done.
Either
Highlight the whole area
Choose the Home tab, Sort & Filter, Custom Sort
Uncheck the option My data has headers
Choose to sort by column A in ascending order
The blanks will be at the bottom and you can delete this block
Note that this approach will not retain the original order, the following will:
Highlight from A1 downwards, to the end of the data
Choose the Home tab, Find & Select, Go To Special
Select the Blanks option; this will select all blank cells in this column
From the Home tab, Cells Group, choose to Delete Sheet Rows
If there are a lot of cells in column A then start by scrolling to the last cell; click in this cell and press Ctrl-Shift-Home to select all cells up to A1.
It can also be achieved with filtering, but a formula cannot delete rows.
Select the column you want to detect the blank rows in, go to Sort & filter and select filter. You will now see this column has a drop down box, click on this and go to the very bottom and untick the box called 'blanks'. this will now automatically hide the rows which contain blanks.
If you need to use the data in this format just copy and past it into a new worksheet using paste values as I am unsure how programs would it.
I have a long list of addresses and names on excel. All the duplicate names and addresses have been highlighted. I'm looking for a way to get the names that aren't highlight onto a mailing list in word, is there anyway of doing this short of selecting each individually?
Thanks in advance
Assuming names are in column A and addresses in column B, then this formula added as a new column will have numbers 1, 2, etc., indicating how many times the combination of name & address repeats:
COUNTIFS($A$2:$A$6,A2,$B$2:$B$6,B2)
Enter this formula into, for example, C2 and copy it down.
From Word you can do a MailMerge, select the Excel file. As part of the MailMerge process you can filter the records to those where column C contains the value 1.
Using Excel 2007, filter for those not highlighted, copy visible and paste into Word.
By the way, no need to have highlighted duplicates, Sort & Filter - Advanced* could have extracted a list of uniques for you.
*
I am trying to select the rows of the results from my VLOOKUP and put the results in a neat table in another sheet. The row in my "M" column has a lot of NA and random numbers that were matched.
See this image for clarification:
I want to select all the rows that returned a result and move those rows to another sheet in a table without blank rows between the results. I am not sure how to do this but I know a resident stackoverflow pro probably thinks this is cake. Thanks for the help in advance!
You could make use of a filter:
Select your table and put a filter (under Home tab, Sort & Filter).
Uncheck the #N/A in the selection filter (click the little grey box with black arrow for the column where there are the #N/A that appeared when you inserted the filters).
Copy and paste everything you need into the other sheet.
You can do this with some formulas:
In the column next to your VLOOKUP (I assume it's column C) place a 'counter formula'- in D2, place =IF(ISERROR(C2),0,1), in D3 and below: =IF(ISERROR(C3),D2,D2+1)
Create a new table (say in starting in column F in the same sheet)
In the first column of the table, just place increasing numbers (e.g. in F2: =ROW()-1)
In the next columns, use INDEX/MATCH to retrieve the results, e.g. in G2: =INDEX(A:A,MATCH(F2,D:D,0))
Done!
I have Sheet A with 500 line items.
Suppose I have applied filter to show line items "2","44","68" and so on
From Another Sheet i want to select some rows and paste them in these filtered rows.If I paste,they get copied on line items 2,3,4,5, and so one instead of 2,44,68,etc
Can Someone please help me.I tried paste special,but it has same issue.
I also tried selecting the area to paste,then clicking alt + ; but the data also gets copied into unfiltered items.
This is more of an approach solution then a coding solution. I assume that the current order of the rows must be maintained.
Add a column to to your sheet, use autocomplete to number the current order of the rows.
Sort by your filter value(s) - if you have multiple values, just add another column and put a single unique value in it
Paste your values
Sort by you current order column, to restore the orginal order
If it is with same sheet you can make the two columns adjacent by hiding other columns in between. You can block the data and drag it to next column.
For eg.
I have column A, B, C, D.
Let A be ZIP CODE & Column D is 'Shipping Service'
I need to have ZIP CODE(Column A) with '95035' to have Shipping Service as 'Fedex'
Filter the column A with '95035'
Hide the column B & C
Drag the values from A to D directly where the values are copied to the adjacent cells.
Note: If you use two separate sheets copy the columns entirely to the sheet 1 adjacent to the column you want to copy and again take copy the entire column back to Sheet 2. This will work if both sheet have same number of rows.
Thanks,
Karthik
The easiest coding solution is to use vlookup http://office.microsoft.com/en-us/excel-help/vlookup-HP005209335.aspx
On sheet1 from Sheet2 use
=VLOOKUP(B3,Sheet2!A:B,2,FALSE)