Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #31  
Old 03-17-2017, 10:10 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

Thanks again...Will put this to work tomorrow. My significant other says you are awesome. I agree. This will be final step in my spreadsheet effort. You have been tremendous resource.
Reply With Quote
  #32  
Old 03-18-2017, 06:10 AM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

TRIED but got "type mismatch"
message for the following....
If Join(Application.Transpose(Application.Transpose(. Cells(r, 1).EntireRow.Value)), "") = _ Join(Application.Transpose(Application.Transpose(. Cells(r - 1, 1).EntireRow.Value)), "") Then

I think I will just use the delete duplicates feature in excel and forsake the dupesheet feature. Thanks again for all your help.
Reply With Quote
  #33  
Old 03-18-2017, 06:53 AM
NoSparks NoSparks is offline deleting blanks and commas Windows 7 64bit deleting blanks and commas Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

I've never seen what this would actually be working on.
Care to provide a small sanitized spreadsheet so I can learn where this tripped up ?
Reply With Quote
  #34  
Old 03-18-2017, 12:02 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

I have already blown away the original sheet that had the duplications. I suspect that somewhere I have screwed up and had mixed data types. In order to provide you a spreadsheet to enable us to see where the problem had occurred, I would have to duplicate the spreadsheet and the error(s) within. Having had excel remove duplicates and having eliminated 5 of the columns from the scope of my effort I can not accurately replicate the original sheet and the data within.
Reply With Quote
  #35  
Old 03-18-2017, 12:53 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

I have taken the new spread sheet that has had the dupes removed and tried the macro that you provided. I got the same error message. So I will be able to provide you a small sample spreadsheet to be analyzed by you. Will be later today.
Reply With Quote
  #36  
Old 03-18-2017, 02:58 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

A B C
FACILITY ZIP CODE STATE
AAAAAAA 111111 ?? ROW 7
BBBBBB 22222 ?? ROW 8
CCCCCC 333333 KY ROW 9
EEEEE 555555 MI ROW 10
DDDDDD 444444 AK ROW 11

Sub Remove_Dupes()
'ActiveSheet.Unprotect
' Remove_Dupes Macro

Dim lr As Long, r As Long, wr As Long
Application.ScreenUpdating = False
'row to write to
wr = Sheets("dupesheet").Cells(Rows.Count, 1).End(xlUp).Row + 1
'rows to check for dupes
With Sheets("FACILITY RECORDS")
'last row
lr = .Cells(Rows.Count, "A").End(xlUp).Row
'start at bottom row and work up
For r = lr To 2 Step -1
If .Cells(r, 1) = .Cells(r - 1, 1) Then
'compare the two rows
' credit Tim Williams ~~~ with great explanation at
' http://stackoverflow.com/questions/1...ows-in-a-sheet
If Join(Application.Transpose(Application.Transpose(. Cells(r, 1).EntireRow.Value)), "") = _
Join(Application.Transpose(Application.Transpose(. Cells(r - 1, 1).EntireRow.Value)), "") Then
'copy and delete if equal
.Cells(r, 1).EntireRow.Copy Sheets("dupesheet").Cells(wr, 1)
.Cells(r, 1).EntireRow.Delete
wr = wr + 1
End If
End If
Next r
End With
Application.ScreenUpdating = True
ActiveSheet.Protect
'
End Sub

I get the error even with this small sample. Wondering if my excel software is wacked out
Reply With Quote
  #37  
Old 03-18-2017, 03:00 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

the rows and columns did not show up as a spreadsheet format in previous post. Will try and edit it

CAN NOT GET IT TO LOOK LIKE i WANT
Reply With Quote
  #38  
Old 03-18-2017, 03:06 PM
NoSparks NoSparks is offline deleting blanks and commas Windows 7 64bit deleting blanks and commas Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

FUGMAN, delete those goofy posts, in the reply portion, click Go Advanced, scroll down to Manage Attachments, Browse to the desired file then Upload.
Reply With Quote
  #39  
Old 03-18-2017, 04:00 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

Another goofy post.... The sample file I made works after it would not work. The code is good. I am not sure what I did but it is now solid. I am now going to call it a done deal and once again I find I can not replicate the problem. Thank you so very much for all your help.
Reply With Quote
  #40  
Old 03-19-2017, 08:02 AM
NoSparks NoSparks is offline deleting blanks and commas Windows 7 64bit deleting blanks and commas Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

You're welcome FUGMAN, glad you got things working.

If you're satisfied that your question has been answered please mark this topic as solved
I believe under "Thread tools" near the top of the page you can do this.
Reply With Quote
  #41  
Old 03-19-2017, 12:02 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

NoSparks
I can not find where to declared that this topic has been solved.

My project consist of 4 phases....the first 2 phases centered around data gathering...the last 2 phases centered around reaching out to individuals that were identified in data gathering phase. As I have now just entered into phase 3, I find I have another "final" item that I could use help with. I will start new thread for that issue.

If you could assist me in locating the problem solved indicator, I will be delighted to indicate that it has been solved.
Reply With Quote
  #42  
Old 03-19-2017, 04:12 PM
NoSparks NoSparks is offline deleting blanks and commas Windows 7 64bit deleting blanks and commas Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

I don't really know as I've never posted a question.
Did a search... led to this

https://www.msofficeforums.com/forum...ad-solved.html

If you can't mark the thread as solved, PM one of the moderators.
Reply With Quote
  #43  
Old 03-19-2017, 04:39 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

I must be dumber than a bag of rocks. I see no provision for identifying a moderator or PMing a moderator.
Reply With Quote
  #44  
Old 03-19-2017, 05:46 PM
NoSparks NoSparks is offline deleting blanks and commas Windows 7 64bit deleting blanks and commas Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

If they don't want to make it easy then forget it.
Reply With Quote
  #45  
Old 03-19-2017, 06:01 PM
FUGMAN FUGMAN is offline deleting blanks and commas Windows 10 deleting blanks and commas Office 2016
Banned
deleting blanks and commas
 
Join Date: Feb 2017
Posts: 55
FUGMAN is on a distinguished road
Default

Moving on.
Thanks again for all you help. You saved me about 2 months of 50 hour weeks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
pivot not showing number format with commas olybobo Excel 1 05-05-2016 05:09 PM
deleting blanks and commas Counting Blanks in 1 Column and Non-Blanks in Another dogwood705 Excel 4 02-07-2015 08:45 AM
Commas within fields in .csv files gar Excel 1 01-29-2015 09:24 PM
deleting blanks and commas How to use mid or left functions to seperate city,st,zip with no commas sinaranje Excel 4 11-11-2014 10:52 PM
deleting blanks and commas No inverted commas in word 2013. tonycrossley Word 3 01-27-2014 04:55 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft