Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
No Name
 
Posts: n/a
Default How to find what's not there?

Any help on starting this would be greatly appreciated;
I have to find "new" accounts in a workbook.
Process wise, I think i need to open the "February" workbook,
and row by row look for the account number (column A) in the "January"
workbook.

If it's there, ignore it,
if NOT-then it's new and I need to add its entire row to a new sheet in the
Feb. book.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to find what's not there?

Tell me more, I can use FIND to compare two ranges?

"Don Guillett" wrote:

I would use a FIND macro. Record while doing by editfind and clean it up

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"< AVG Joe" wrote in message
...
Any help on starting this would be greatly appreciated;
I have to find "new" accounts in a workbook.
Process wise, I think i need to open the "February" workbook,
and row by row look for the account number (column A) in the "January"
workbook.

If it's there, ignore it,
if NOT-then it's new and I need to add its entire row to a new sheet in
the
Feb. book.

Thanks.


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default How to find what's not there?

Here is a sample of this

Sub findeach()
For Each c In Range("a2:a5")
'MsgBox c
With Sheets("yourworksheetname")
On Error Resume Next
Set mf = .Columns(1).Find(What:=c, LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Not mf Is Nothing Then
MsgBox mf & "found at " & mf.Row
End If
End With
Next
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"SLorenson" wrote in message
...
Tell me more, I can use FIND to compare two ranges?

"Don Guillett" wrote:

I would use a FIND macro. Record while doing by editfind and clean it
up

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"< AVG Joe" wrote in message
...
Any help on starting this would be greatly appreciated;
I have to find "new" accounts in a workbook.
Process wise, I think i need to open the "February" workbook,
and row by row look for the account number (column A) in the "January"
workbook.

If it's there, ignore it,
if NOT-then it's new and I need to add its entire row to a new sheet in
the
Feb. book.

Thanks.


.


  #5   Report Post  
Posted to microsoft.public.excel.misc
No Name
 
Posts: n/a
Default How to find what's not there?

Don,
Sorry for the delay, as I obviously did not post under "programming" like I
thought I did.

Anyway. Thanks very much for your help.
I'm assuming that ("yourworksheetname") can be in a completely different
workbook?

"Don Guillett" wrote:

Here is a sample of this

Sub findeach()
For Each c In Range("a2:a5")
'MsgBox c
With Sheets("yourworksheetname")
On Error Resume Next
Set mf = .Columns(1).Find(What:=c, LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Not mf Is Nothing Then
MsgBox mf & "found at " & mf.Row
End If
End With
Next
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"SLorenson" wrote in message
...
Tell me more, I can use FIND to compare two ranges?

"Don Guillett" wrote:

I would use a FIND macro. Record while doing by editfind and clean it
up

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"< AVG Joe" wrote in message
...
Any help on starting this would be greatly appreciated;
I have to find "new" accounts in a workbook.
Process wise, I think i need to open the "February" workbook,
and row by row look for the account number (column A) in the "January"
workbook.

If it's there, ignore it,
if NOT-then it's new and I need to add its entire row to a new sheet in
the
Feb. book.

Thanks.


.


.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
Despite data existing in Excel 2002 spreadsheet Find doesn't find AnnieB Excel Discussion (Misc queries) 1 June 16th 06 02:15 AM
'find' somtimes can't find numbers. I folowd the 'help' instructi. Yaron Excel Worksheet Functions 2 November 30th 05 05:46 PM
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? nwtrader8 Excel Discussion (Misc queries) 5 June 21st 05 02:16 PM


All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"