Pivot or Macro Show result

Antonio12

Board Regular
Joined
Jul 11, 2012
Messages
73
Hello everybody:

I have a question regarding a formula that I can´t get right. I want to do a macro for this but I think a pivot would be easier so I'm asking for your help.

I have a big DB with several rows and columns.

Column B has several card numbers (e.i. 7987654345678)
Column C has a location name (e.i. madrid)
Column L has a date (the date is when the card was used)

What I want to do is identify the cards that appear more then twice on the same date and the same place.


E.I.

Card NuumberLocationDate
123
LOC18/01/2013
321MAD17/01/2013
234CAS01/02/2013
234CAS16/02/2013
234CAS16/02/2013

<tbody>
</tbody>

I would like through a macro or pivot to show me the results of the 2 last rows, because those are the only ones that are exactly the same.

I know this can be done in a Pivot (don´t know how though) and I'm wondering how to do this but I'm also wondering if this could run from a userform or if from the userform I could click on a commandbutton that would bring up the pivot with the results.

PLEASE HELP!!!

I have excel 2007 running on Windows7
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Create a pivot table from your data with Card Number, Location and Date as Row fields and Count of Date as the Data field. Turn off Subtotals and Grand Totals and set the Report Layout to Tabular Form. Then apply a Value Filter to the Date field with the condition Count of date is greater than 1.

Result:


Excel 2010
ABCDEFGH
1Card NumberLocationDateCard NumberLocationDateCount of Date
2123LOC18/01/2013234CAS16/02/20132
3321MAD17/01/2013
4234CAS01/02/2013
5234CAS16/02/2013
6234CAS16/02/2013
Sheet1
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,840
Members
449,471
Latest member
lachbee

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