Searching in Excel

Misterchipper

New Member
Joined
Jan 15, 2010
Messages
28
I have a rather large excel document with 15 columns or so. One of the columns contains several pieces of data--i.e. each cell within the column has several listings of therapeutic areas. For example, cell c15 holds "insomnia, cholesterol, neuropathic pain" and cell c16 holds "cholesterol." However, I only want to flag each cell where cholesterol is found, not just those that solely state cholesterol."
Thoughts?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Highlight the column, and apply the following conditional format:

=ISNUMBER(SEARCH("Cholesterol",C1))

Then choose what formatting you want the cell to have when it finds "Cholesterol".
 
Upvote 0
Slightly confused...how is this formula going to work?

Additionally, what goes into cell C1?

Thank you again for your help
 
Upvote 0
I'm not familiar with how 2010's toolbar is set up (hopefully the same as 2007).

Try the following steps:

  1. Highlight column C
  2. In the "Home" tab of your toolbar, click on "Conditional Formatting"
  3. In the "Conditional Formatting" drop menu, click "New Rule"
  4. In the window that pops up, under "Select a Rule Type", choose "Use a formula to determine which cells to format"
  5. Copy/paste the formula I supplied into the "Format values where this formula is true:"
  6. Press the "Format" button
  7. Go to the "Fill" tab and choose a color you want the cell to be filled with when it finds Cholesterol
  8. Press OK
  9. Press Ok
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,172
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top