Help

unsnz

New Member
Joined
Apr 22, 2002
Messages
1
Prob 1:
I am getting a spreadsheet daily and by day 5 I have to make sure that all data from day 1 has been completed and no longer shows on the daily report.
Prob 2:
on a spreadsheet i have the date,address and device number. I only want one record of the device number. I have tried the unique values option but im still getting double ups because of the dates.
Your help would be much appreciated
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
On 2002-04-23 19:07, uns,nz wrote:
Prob 1:
I am getting a spreadsheet daily and by day 5 I have to make sure that all data from day 1 has been completed and no longer shows on the daily report.
Prob 2:
on a spreadsheet i have the date,address and device number. I only want one record of the device number. I have tried the unique values option but im still getting double ups because of the dates.
Your help would be much appreciated

Q1: Please be more specific. I cannot understand your request.

Q2: Advanced Filter should have worked for you. Another option is to sort your data on the device number column and then delete the duplicates.

Here is a macro which should do the job, assuming dates in A, address in B, device number in C

'---begin VBA---
Sub test()
Dim lastrow As Long, x As Long

Application.ScreenUpdating = False
With ActiveSheet
.UsedRange
lastrow = .Cells.SpecialCells(xlCellTypeLastCell).Row
.Range("C1").Sort Key1:=Range("C1"), Order1:=xlAscending, Header:=xlYes
For x = lastrow - 1 To 2 Step -1
If .Cells(x, 3) = .Cells(x + 1, 3) Then .Rows(x + 1).Delete
Next x
End With
End Sub
'---end VBA---

Bye,
Jay
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,541
Latest member
iparraguirre89

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