Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Find Command

I want to use the find command to find a cell that has a
specific value in the A column and the B column. I know
how to use the find command to find the row with the
value in the A column, but not when there is both. Thank
you.

Here is how I find the value in the A column


With wks_W.Range("A4:A" & WorksheetFinalRow)
Set n = .Find(answervalue, LookIn:=xlValues)
If Not n Is Nothing Then
i = n.Row
End With
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Find Command

In theory... After setting N check whether N.Offset(0,1).Value = "your
value". If yes you're done, if not do a FindNext and repeat.

--
Jim Rech
Excel MVP
"Adam" wrote in message
...
|I want to use the find command to find a cell that has a
| specific value in the A column and the B column. I know
| how to use the find command to find the row with the
| value in the A column, but not when there is both. Thank
| you.
|
| Here is how I find the value in the A column
|
|
| With wks_W.Range("A4:A" & WorksheetFinalRow)
| Set n = .Find(answervalue, LookIn:=xlValues)
| If Not n Is Nothing Then
| i = n.Row
| End With


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 Command Mike H. Excel Discussion (Misc queries) 8 March 24th 10 10:10 PM
FIND command Paul Blarmy Excel Discussion (Misc queries) 5 January 6th 07 12:30 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
Find Command Frank Kabel Excel Programming 1 September 24th 04 06:23 PM
Find Command Adam[_9_] Excel Programming 1 September 24th 04 03:57 PM


All times are GMT +1. The time now is 04:56 AM.

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

About Us

"It's about Microsoft Excel"