#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Name search trouble

I think i may have missed something. Hopfully someone can help. I have a
worksheet with a list of names starting in col A5 The names have information
in columns B-J. I have a search window in A1. The problem is when i type in
the name, the name shows in the search window that it in the column, but the
name and info doesn't appear. I still have to scroll down to find it. Is
there a way to have that info either show at the top of the list or in the
search window? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Name search trouble

Hi,

And by search window you mean AutoFilter? If so then set up a series of
=VLOOKUP($A1,$A5:$J100,COLUMN(),False)
enter this in B1 and then copy it to C1:J1)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"doss04" wrote:

I think i may have missed something. Hopfully someone can help. I have a
worksheet with a list of names starting in col A5 The names have information
in columns B-J. I have a search window in A1. The problem is when i type in
the name, the name shows in the search window that it in the column, but the
name and info doesn't appear. I still have to scroll down to find it. Is
there a way to have that info either show at the top of the list or in the
search window? Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Name search trouble

I'm not sure about AutoFilters havent used them yet. Is there anything i need
to do to the cells before pasting this formula. I just tried to copy and
paste in B1 but i get the symbol #N/A.

"Shane Devenshire" wrote:

Hi,

And by search window you mean AutoFilter? If so then set up a series of
=VLOOKUP($A1,$A5:$J100,COLUMN(),False)
enter this in B1 and then copy it to C1:J1)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"doss04" wrote:

I think i may have missed something. Hopfully someone can help. I have a
worksheet with a list of names starting in col A5 The names have information
in columns B-J. I have a search window in A1. The problem is when i type in
the name, the name shows in the search window that it in the column, but the
name and info doesn't appear. I still have to scroll down to find it. Is
there a way to have that info either show at the top of the list or in the
search window? Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Name search trouble

I dont think its an auto filter. I have a macro in place. the one below if
that helps.

Sub FindSelect()
Dim c As Range, s As Long
Range("A2:A65000").Select
Set c = Selection.Find(Range("A1").Value)
If Not (c Is Nothing) Then
c.Select
Else
Range("A1").Select
MsgBox "Last Name: " & Range("A1").Value & " not found!"
End If
End Sub

I hope this helps understand what i have.
"Shane Devenshire" wrote:

Hi,

And by search window you mean AutoFilter? If so then set up a series of
=VLOOKUP($A1,$A5:$J100,COLUMN(),False)
enter this in B1 and then copy it to C1:J1)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"doss04" wrote:

I think i may have missed something. Hopfully someone can help. I have a
worksheet with a list of names starting in col A5 The names have information
in columns B-J. I have a search window in A1. The problem is when i type in
the name, the name shows in the search window that it in the column, but the
name and info doesn't appear. I still have to scroll down to find it. Is
there a way to have that info either show at the top of the list or in the
search window? Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Name search trouble

Hi,

What exactly is displayed in cell A1, I assumed it was the value you were
searching form?

The VLOOKUP formula returns NA when the item is not found. So this suggests
that the item listed in cell A1 is not in the range A5:A100 or whatever. Or
maybe the hyppthetical range A5:A100 does not go down as far as your data,
you should adjust that range to match your real range A5:J100.

Also, with an exact match, if the item in A1 is not spelled exactly the same
way as it is in the range A5:A100, including spaces, it will not be an exact
match and you will get the NA error message.

--
If this helps, please click the Yes button


Cheers,
Shane Devenshire


"doss04" wrote:

I dont think its an auto filter. I have a macro in place. the one below if
that helps.

Sub FindSelect()
Dim c As Range, s As Long
Range("A2:A65000").Select
Set c = Selection.Find(Range("A1").Value)
If Not (c Is Nothing) Then
c.Select
Else
Range("A1").Select
MsgBox "Last Name: " & Range("A1").Value & " not found!"
End If
End Sub

I hope this helps understand what i have.
"Shane Devenshire" wrote:

Hi,

And by search window you mean AutoFilter? If so then set up a series of
=VLOOKUP($A1,$A5:$J100,COLUMN(),False)
enter this in B1 and then copy it to C1:J1)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"doss04" wrote:

I think i may have missed something. Hopfully someone can help. I have a
worksheet with a list of names starting in col A5 The names have information
in columns B-J. I have a search window in A1. The problem is when i type in
the name, the name shows in the search window that it in the column, but the
name and info doesn't appear. I still have to scroll down to find it. Is
there a way to have that info either show at the top of the list or in the
search window? Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Name search trouble

A single line change will put the Found cell at the top of the window:

Sub FindSelect()
Dim c As Range, s As Long
Range("A2:A65000").Select
Set c = Selection.Find(Range("A1").Value)
If Not (c Is Nothing) Then
c.Select
Application.Goto reference:=c, scroll:=True
Else
Range("A1").Select
MsgBox "Last Name: " & Range("A1").Value & " not found!"
End If
End Sub

--
Gary''s Student - gsnu200817
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Name search trouble

Thanks Gary. I couldn't get it to work. I"ll try and show you what i have.

A B C D E - J
1Search box all else is blank
2 merged cells with title of doc
3 merged cells with abbrv codes
4 column titles with pane freeze
5 Adams, John 6' 0" 165 00/00/78 code
6 Sander, David 5' 5" 120 00/00/86 code

So when i type in name in A1 and the name appears, (which works) when i hit
enter i would like the rest of the information to appear in the row. Is that
possible?

"Gary''s Student" wrote:

A single line change will put the Found cell at the top of the window:

Sub FindSelect()
Dim c As Range, s As Long
Range("A2:A65000").Select
Set c = Selection.Find(Range("A1").Value)
If Not (c Is Nothing) Then
c.Select
Application.Goto reference:=c, scroll:=True
Else
Range("A1").Select
MsgBox "Last Name: " & Range("A1").Value & " not found!"
End If
End Sub

--
Gary''s Student - gsnu200817

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
Seo , Search Engine Optimizer , Seo Search engine Optimization , search engine optimization services, SEO Consulting Se0 Guy Excel Worksheet Functions 0 March 8th 07 04:08 AM
Seo , Search Engine Optimizer , Seo Search engine Optimization , search engine optimization services, SEO Consulting Se0 Guy Excel Discussion (Misc queries) 0 March 8th 07 04:08 AM
Seo , Search Engine Optimizer , Seo Search engine Optimization , search engine optimization services, SEO Consulting Se0 Guy Links and Linking in Excel 0 March 8th 07 04:08 AM
Seo , Search Engine Optimizer , Seo Search engine Optimization , search engine optimization services, SEO Consulting Se0 Guy Charts and Charting in Excel 0 March 8th 07 04:08 AM
How do I search excel spreadsheets using multiple search criteria. Kasper Excel Worksheet Functions 4 December 15th 05 12:26 AM


All times are GMT +1. The time now is 09:23 AM.

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"