Previous in Forum: Multi-touch Technology Monitor Software   Next in Forum: GMail Thinks I'm a Spammer
Close
Close
Close
10 comments
Rate Comments: Nested
Associate

Join Date: Nov 2011
Posts: 31

Search Function in Multiple Columns in Microsoft Excel

08/29/2013 4:20 AM

In Excel Microsoft i can search in a highlighted column.

but how do i search in two columns or more?

EG search for "wingrove" in column A + "6" in column B. (the AND function)

Register to Reply
Pathfinder Tags: search function
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".
3
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#1

Re: search function in multiple columns in Microsoft Excel

08/29/2013 4:44 AM

Is this what you mean?

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply Good Answer (Score 3)
Associate

Join Date: Nov 2011
Posts: 31
#2
In reply to #1

Re: search function in multiple columns in Microsoft Excel

08/29/2013 6:43 PM

yes

Register to Reply
Guru

Join Date: Feb 2010
Posts: 1013
Good Answers: 36
#3
In reply to #2

Re: search function in multiple columns in Microsoft Excel

08/30/2013 6:36 AM

You can also add to the previous, a conditional foarmating to highlight the cells that are true.

Register to Reply
Associate

Join Date: Nov 2011
Posts: 31
#4
In reply to #2

Re: search function in multiple columns in Microsoft Excel

08/30/2013 9:33 AM

so now how do i input those two inputs into the "find" dialogue box?

Register to Reply
Guru

Join Date: Oct 2009
Posts: 1460
Good Answers: 30
#5
In reply to #4

Re: search function in multiple columns in Microsoft Excel

08/30/2013 12:56 PM

You don't actually need a full dialogue box. You can extend Randall's idea by dedicating a cell, e.g. cell A1, to the word you are searching for in column A and another cell, e.g. cell B1, for the word in B. You then amend the formula to

=IF(AND(A2=$A$1,B2=$B$1), TRUE, FALSE)

Register to Reply
Guru

Join Date: Feb 2010
Posts: 1013
Good Answers: 36
#6
In reply to #4

Re: search function in multiple columns in Microsoft Excel

08/30/2013 2:48 PM

I think you are trying to use the Find & Select facility to do the 2 searches!

You can't do that as far as I can see. Randal's formula is to be written into each cell at the right column, as shown.

To highlight the result, when "True", you can use the "Conditional Formating" icon, in the Home tab, on the column with the formula, to highlight the cells that contain a TRUE result. (search Help to use it if not familiar).

Register to Reply
Commentator

Join Date: Mar 2011
Posts: 99
Good Answers: 9
#7

Re: Search Function in Multiple Columns in Microsoft Excel

08/30/2013 4:02 PM

Good question. Good answers. Thank you all.

Register to Reply Off Topic (Score 5)
Power-User

Join Date: Jul 2010
Location: North Carolina, USA
Posts: 423
Good Answers: 9
#8

Re: Search Function in Multiple Columns in Microsoft Excel

08/30/2013 4:05 PM

Why are you doing the search?

When I want to isolate the cells that contain specific values I use the data filter function. Highlight the entire range you want to search through and click on the filter in the data tab. Then when you filter the specific columns for what you want all the adjacent columns will be displayed as well.

Of course, this is no help if you're programming.

Register to Reply
Associate

Join Date: Nov 2011
Posts: 31
#9
In reply to #8

Re: Search Function in Multiple Columns in Microsoft Excel

08/31/2013 4:29 PM

my work in telecommunications involves working with an Excel spreadsheet.

all addresses in our region are mapped to telecommunications network elements for ease of providing efficient service.

Eg if a customer comes and says he wants service at number 46 Bugton street, we open our excel document and search for "bugton"

eg

column a #column b# column c

Road #number #network element

bugton# 23

bugton #42

bugton #44

bugton #46

bugton #48

winder #4

palm #6

winder #23

now our search result will give us so many rows with "bugton" and a number,whereas i just want the line with "bugton" in column a and 46 in column b

i hope that is now clear.

Register to Reply
Guru

Join Date: Feb 2010
Posts: 1013
Good Answers: 36
#10
In reply to #9

Re: Search Function in Multiple Columns in Microsoft Excel

09/01/2013 2:05 PM

As i said before, you cannot have what you want using the search or find that is provided normally.

you can use the 'Conditional Formating' on column 'a' to highlight all the cells with 'Burgton', and on column 'b' to highlight the cells with the number value you want.

This way you can immediately see the result in the highlighted cells.

If you tp just pic-up the 2 adjacent dells you are seeking, in any other way, you need to write a macro or Vbasic function to do this the way you want. (you need to know how to program in Vbasic for Applications in Excel.

Register to Reply
Register to Reply 10 comments

Good Answers:

These comments received enough positive votes to make them "good answers".
Copy to Clipboard

Users who posted comments:

Gene Hayes (1); JRiversW (1); LAA_Lucke (3); phph001 (1); Randall (1); zener (3)

Previous in Forum: Multi-touch Technology Monitor Software   Next in Forum: GMail Thinks I'm a Spammer

Advertisement