Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2018, 05:06 AM
burgundyflyguy's Avatar
burgundyflyguy burgundyflyguy is offline Searching a Spreadsheet question Windows 7 64bit Searching a Spreadsheet question Office 2010 64bit
Novice
Searching a Spreadsheet question
 
Join Date: Mar 2018
Posts: 2
burgundyflyguy is on a distinguished road
Default Searching a Spreadsheet question

The question i have is probably simple but I can't seem to find it.



I started an excel spreadsheet of a list of college football players and the list is rather long to the point where it is taking me some time to search for names that i have already listed. So i wanted to start a function that allowed me to find a players last name within a spreadsheet. There are a list of Last Names that cover more than one column so I simplified it by naming a range of Columns that have these last names and calling it "Last_Names".

The issue that i am having is i want to a cell (for example cell A2) to have the function and the cell to the right of it (cell A3) to be the value im looking for.

Here is the issue: I want to be able to type in a players last name and have the function take me directly to the cell that contains that Name. I DONT want the function to return a value telling me there is 1 or 2 results. I DONT want that function to tell me there is a match and thats it.

Ideally i want to be able to type in a name and have excel take me to that name in the spreadsheet. If i could get that cell to highlight making it easier to spot with my eye that would be great.

Thoughts?
Reply With Quote
  #2  
Old 03-05-2018, 05:59 AM
NBVC's Avatar
NBVC NBVC is offline Searching a Spreadsheet question Windows 10 Searching a Spreadsheet question Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

You can use conditional formatting to highlight cells that contain the same information as what you typed in a cell.

Select the range that contains the list of last names, then go to Home|Conditional Formatting|New Rule.

Select "format only cells that contain" from top and enter cell value > is equal to > and then =$A$2

Click Format and choose from the Fill tab.

Click Ok, then Ok again to apply.

Now type a name in A2 and see if it hightlights the name in the list of names.
Reply With Quote
  #3  
Old 03-05-2018, 09:40 AM
burgundyflyguy's Avatar
burgundyflyguy burgundyflyguy is offline Searching a Spreadsheet question Windows 7 64bit Searching a Spreadsheet question Office 2010 64bit
Novice
Searching a Spreadsheet question
 
Join Date: Mar 2018
Posts: 2
burgundyflyguy is on a distinguished road
Default

And to think i was wasting my time in the Formula section researching lookup functions.


This works flawlessly. Exactly what i was looking for and it works.


Thank you!
Reply With Quote
  #4  
Old 03-05-2018, 02:24 PM
ProudLiberal's Avatar
ProudLiberal ProudLiberal is offline Searching a Spreadsheet question Windows 7 64bit Searching a Spreadsheet question Office 2010 64bit
Novice
 
Join Date: Jun 2017
Location: suburban Chicago
Posts: 28
ProudLiberal is on a distinguished road
Default

Then filter the column by color (from the conditional format).
Reply With Quote
  #5  
Old 03-06-2018, 07:42 AM
ArviLaanemets ArviLaanemets is offline Searching a Spreadsheet question Windows 8 Searching a Spreadsheet question Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

After you did find all your players currently, create a separate sheet, p.e. Players.

In this sheet, fill a table with columns p.e. ForeName, LastName, and maybe FullName too;
Enter names of all players into table;
Define this table as Table (Insert>Table, Check 'My table has headers'). Give a meaningful name to defined table, p.e. tPlayers;
Into FullName column of tPlayers, enter the formula
Code:
= LastName & " " & FirstName
Create a named range, p.e. lPlayers (Formulas>Name Manager, New), Into RefersTo enter the formula
Code:
= tPlayers[FullName]
or
Code:
= tPlayers[LastName]
;
On sheet with your current table, select all cells where names must be entered. From menu, select Data>Data Validation. Select 'From List', and enter the formula
Code:
=lPlayers
.

Now when you select a cell for players in your table, the cell works like a combo box - you can select a player from table tPlayer. And you can't enter any player name which was not registered before in table tPlayer (and typos are restricted too).

The order the players are listed for selection is determined with order, players are sorted with in table tPlayers.

And you don't need to search the whole entry table anymore, to find out is the player registered before or not.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching a Spreadsheet question Conditional Row Searching Kennebraun Excel 3 02-21-2018 11:02 PM
Mac 2011 - When I close a spreadsheet, there is a blank spreadsheet left on dock. wvinyard Excel 0 07-27-2017 11:32 AM
Probably a Noob-Question: How to 'resort' a spreadsheet? roderh Excel 10 05-09-2014 08:18 AM
Searching a Spreadsheet question Macro Needed to Insert Asnwer to A Question in Multiple Choice Format Question rsrasc Word VBA 7 03-28-2014 12:28 PM
Searching a Spreadsheet question Searching hyperlinks PuddinPie Word 1 05-27-2011 02:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:46 AM.


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