Tuesday, 4 June 2013

[www.keralites.net] Excel Tip: Searching and Highlighting

 

Many of us use spreadsheets to manage huge lists of data, like customer data bases, salesperson data bases etc.

Today we will learn a little conditional formatting trick that you can use to search a worksheet full of data and highlight the matching cells.

Fun & Info @ Keralites.net
First identify which cell you want to use as search bar. Lets say we choose F4.

Now, Select the data cells you want to search and go to conditional formatting.

Fun & Info @ Keralites.netWe will write a simple formula that returns true if a cell has the content you typed in the search bar (F4) and false if the cell doesnt. You can try something

 
like
ISERROR(FIND(LOWER($F$4),LOWER(B7)))=FALSE.

But there is a problem with this, it returns true when the search bar is empty, and thus you end up highlighting all cells. So we add a further condition that will highlight the matched cells only if the search bar contains some data.

The formula looks like,

=AND($F$4<>"",ISERROR(FIND(LOWER($F$4),LOWER(B7)))=FALSE)

Finally set the formatting you want to use. I choose dull orange color. You can choose blue, green or pink too.

Hit ok and you are good to go.

M Junaid Tahir
Fun & Info @ Keralites.net Fun & Info @ Keralites.net Fun & Info @ Keralites.net Fun & Info @ Keralites.net Fun & Info @ Keralites.net

www.keralites.net

__._,_.___
Recent Activity:
KERALITES - A moderated eGroup exclusively for Keralites...
To subscribe send a mail to Keralites-subscribe@yahoogroups.com.
Send your posts to Keralites@yahoogroups.com.
Send your suggestions to Keralites-owner@yahoogroups.com.

To unsubscribe send a mail to Keralites-unsubscribe@yahoogroups.com.

Homepage: www.keralites.net
.

__,_._,___

No comments:

Post a Comment