Deleting rows (lots of rows data)

jennajen

New Member
Joined
Oct 14, 2014
Messages
1
Hey everyone,
Newbie here using Excel 2007.

I've googled so many different ways, tried VBA codes, tried making match case formulas, and nothing seems to work since most compare columns.

Scenario:

- have a sheet with several columns (headers: account names, IDs, revenue, margins, etc.)
- need formula or VBA code/macro to delete rows within sheet only if column D (IDs) contains duplicates (case sensitive must be enabled)

I understand excel has a feature to remove duplicates, but it is not case sensitive.

For example (information made used for simplicity):


CompanyIDrevenuerow
Yap1dog10k1
GOO1Dog30k2
Yap1dog10k3
Hee1laz90k4
Hee1laz90k5
Haa1laZ100k6

<tbody>
</tbody>

In the example above I want the formula to keep "Yap", "Hee", "Haa", "GOO", based on the column containing duplicates.
I don't want it to retain two "Yap"s or two "Hee"s because they are the same account (based on ID "1dog" "1laz" being identical in casing).

Essentially what my file/report does is it shows how much revenue I should allocate to different venues and I'd like to figure a way to remove rows if there is duplicate data in a specific column.
Again, case sensitive values must be picked up.

I looked through threads here for solutions, but didn't find any to fix my specific concern. If anyone can help out I'd greatly appreciate it!
Thank you!
 
Last edited:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You could use a helper column with the formula
=D1&SUMPRODUCT((EXACT(MID(D1,{1,2,3,4,5,6,7},1),MID(UPPER(D1),{1,2,3,4,5,6,7},1)))*(10^{6,5,4,3,2,1,0}))

and then remove duplicates based on that column
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

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