ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Bolding with formulas and "if/thens" (https://www.excelbanter.com/excel-worksheet-functions/8960-bolding-formulas-%22if-thens%22.html)

Abi

Bolding with formulas and "if/thens"
 
#1. Can I bold part of a cell that contains a formula? The cell is text,
formula, text, and I need the information that is returned by the formula
bolded, if possible.

#2. I have a cell on a sheet that merely pulls info from a second sheet -
no calculations or anything fancy, just:

Sheet2, Cell B1 has the formula ='sheet1'!A1

What I'd like to do is make a conditional format for this cell, but I'm not
sure how to do it with the conditional formatting tool.

In plain english, I want the formula to say:

"Bring the information over from sheet1, A1. If, in any of the information
hat is brought over, it contains the word ZONE, bold this entire cell. If it
does not contain the word ZONE, treat it normally.

Can I do this? thanks!

Dave R.

Select the range of cells where you want the formatting done, say A1:A10 in
this example. Formatconditional formattingformula is
=ISNUMBER(SEARCH("ZONE",A1))

If you want to find only upper case ZONE, change SEARCH above to FIND.

The formula in the cell itself would be =Sheet1!A1 (i.e., what brings "zone"
over or not).



"Abi" wrote in message
...
#1. Can I bold part of a cell that contains a formula? The cell is text,
formula, text, and I need the information that is returned by the formula
bolded, if possible.

#2. I have a cell on a sheet that merely pulls info from a second sheet -
no calculations or anything fancy, just:

Sheet2, Cell B1 has the formula ='sheet1'!A1

What I'd like to do is make a conditional format for this cell, but I'm

not
sure how to do it with the conditional formatting tool.

In plain english, I want the formula to say:

"Bring the information over from sheet1, A1. If, in any of the

information
hat is brought over, it contains the word ZONE, bold this entire cell. If

it
does not contain the word ZONE, treat it normally.

Can I do this? thanks!




Abi

Thanks!

"Dave R." wrote:

Select the range of cells where you want the formatting done, say A1:A10 in
this example. Formatconditional formattingformula is
=ISNUMBER(SEARCH("ZONE",A1))

If you want to find only upper case ZONE, change SEARCH above to FIND.

The formula in the cell itself would be =Sheet1!A1 (i.e., what brings "zone"
over or not).



"Abi" wrote in message
...
#1. Can I bold part of a cell that contains a formula? The cell is text,
formula, text, and I need the information that is returned by the formula
bolded, if possible.

#2. I have a cell on a sheet that merely pulls info from a second sheet -
no calculations or anything fancy, just:

Sheet2, Cell B1 has the formula ='sheet1'!A1

What I'd like to do is make a conditional format for this cell, but I'm

not
sure how to do it with the conditional formatting tool.

In plain english, I want the formula to say:

"Bring the information over from sheet1, A1. If, in any of the

information
hat is brought over, it contains the word ZONE, bold this entire cell. If

it
does not contain the word ZONE, treat it normally.

Can I do this? thanks!





Myrna Larson

As to your first question, I believe the answer is no.

On Mon, 10 Jan 2005 08:31:07 -0800, Abi wrote:

#1. Can I bold part of a cell that contains a formula? The cell is text,
formula, text, and I need the information that is returned by the formula
bolded, if possible.

#2. I have a cell on a sheet that merely pulls info from a second sheet -
no calculations or anything fancy, just:

Sheet2, Cell B1 has the formula ='sheet1'!A1

What I'd like to do is make a conditional format for this cell, but I'm not
sure how to do it with the conditional formatting tool.

In plain english, I want the formula to say:

"Bring the information over from sheet1, A1. If, in any of the information
hat is brought over, it contains the word ZONE, bold this entire cell. If it
does not contain the word ZONE, treat it normally.

Can I do this? thanks!



Alex Obese-Jecty

Try this:
- Select cell B1 which contains the formula: ='sheet1'!A1
- Select Format--Conditional Formatting. Click on the Drop down list just
below Condition 1 and select: Formula is
- In the field to the right type the formula: =NOT(ISERROR(FIND("zone",
B1,1))) and choose the desired formatting

The formula in the conditional format is looking for the string "zone" in
the cell B1. If it exists then there is no error returned (not(iserror))
and the condition is met and you get the desired formatting. Of course the
converse also applies.

If you want to copy this format to other cells, beware that B1 is relative
and you may need to fix a row or column with $ as desired.

HTH,
Alex

"Myrna Larson" schrieb im Newsbeitrag
...
As to your first question, I believe the answer is no.

On Mon, 10 Jan 2005 08:31:07 -0800, Abi
wrote:

#1. Can I bold part of a cell that contains a formula? The cell is text,
formula, text, and I need the information that is returned by the formula
bolded, if possible.

#2. I have a cell on a sheet that merely pulls info from a second sheet -
no calculations or anything fancy, just:

Sheet2, Cell B1 has the formula ='sheet1'!A1

What I'd like to do is make a conditional format for this cell, but I'm
not
sure how to do it with the conditional formatting tool.

In plain english, I want the formula to say:

"Bring the information over from sheet1, A1. If, in any of the
information
hat is brought over, it contains the word ZONE, bold this entire cell. If
it
does not contain the word ZONE, treat it normally.

Can I do this? thanks!






All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com