Question for those Excel experts!

dotcomer

New Member
Joined
Dec 18, 2013
Messages
27
So i have an excel spread sheet. I have a list of cities in column A. In Column H we have a list of cities we already mailed advertisements too. I need to remove the cities we already sent advertisements to from column H, out of column A.

So basically the cities in Column H are our bad cities. Column A is our good.

How do I remove the cities that are in Column H from Column A?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Short answer - with VBA. Formulas do not affect other cells, only the 1's they reside it.

An alternative might be to use filters, then filter out the 1's you have already contacted?
 
Upvote 0
Manually, you can use data filtering to determine the unique values. Make sure the column has a label at the top of it, then select a cell in the column. Display the Data tab of the ribbon and click Advanced in the Sort & Filter group. Use the controls in the resulting dialog box to specify that you want to copy the unique values to another location which you specify.
You can also use a formula to manually determine the duplicates in the list. Sort the values in the column, and then enter the following formula in cell B2:
=IF(A1=H1,"Duplicate","")
 
Upvote 0
Is there not any formula to just remove the cities in column A that are in Column H?
What Ford said in his first line is correct:
Short answer - with <acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: dotted; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(0, 0, 0); border-left-color: initial; border-image: initial; cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">VBA</acronym>. Formulas do not affect other cells, only the 1's they reside it.
Excel formulas cannot remove anything. All they can do is calculate and return something to the cell that the formula itself resides in.

You got some good suggestions on how to handle it:
- With VBA
- With Filters
- A roundabout, manual solution using formulas (i.e. identifying duplicates, then maybe manually deleting them)

I can add another potential solution - use Microsoft Access instead.
This is a simple "Unmatched Query" in Access. There is even a Wizard in Access to walk your through setting it up.
 
Upvote 0
How to filter it? All i know how to do is remove duplicates

Make sure your entire data range is highlighted (in case there are any empty cells to mess things around)
Click the HOME tab/Editing/Sort and Filter/Filter
you will see all your heading row cells now have a small drop-down in them, click the 1 you want to filter on and uncheck whatever needs to be unselected to show what you need
 
Upvote 0
I seen what the first line was but never even heard of VBA. What about highlighting whats in Column H and A. If the value exist in Column H can I highlight those in column A? Let me rephrase this, I know I can but how
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,762
Members
449,048
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top