Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Highlight field that are not derived from a formula

Hi Folks,

I've got a question/problem I can not solve on my own.

I want to format a cell this way that the background becomes e.g. red
if the content is not defined via a reference.


e.g.

Cell Content Highlight
A1 =B3 no
A2 =C4 no
A3 abc yes
A4 =B3 no
A5 bla yes

Can anyone give me a hint how to do so?

Many thanks in advance

regards

Julian
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Highlight field that are not derived from a formula

Try this
Edit|Go To|Special
Click on Constants

This will highlight all cells which do not have a formula... You can then
format them as you please.

"Julian Bessenroth" wrote:

Hi Folks,

I've got a question/problem I can not solve on my own.

I want to format a cell this way that the background becomes e.g. red
if the content is not defined via a reference.


e.g.

Cell Content Highlight
A1 =B3 no
A2 =C4 no
A3 abc yes
A4 =B3 no
A5 bla yes

Can anyone give me a hint how to do so?

Many thanks in advance

regards

Julian

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Highlight field that are not derived from a formula

On 11 Okt., 00:47, Sheeloo wrote:
Try this
Edit|Go To|Special
Click on Constants

This will highlight all cells which do not have a formula... You can then
format them as you please.


Hi guys,

thanks for being responsive. As I see my question was not fully
accurate. This would lead to a static formating. I'd like the cells to
change on condition if I enter a constant. So if I change e.g. "=B2"
to "bla" is should change. Is this possible with conditional
formatiing? I did not find a way so far.

Again, thanks in advance

Julian
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Highlight field that are not derived from a formula

Then you need to use VBA. Let me know if you need help with that.

"Julian Bessenroth" wrote:

On 11 Okt., 00:47, Sheeloo wrote:
Try this
Edit|Go To|Special
Click on Constants

This will highlight all cells which do not have a formula... You can then
format them as you please.


Hi guys,

thanks for being responsive. As I see my question was not fully
accurate. This would lead to a static formating. I'd like the cells to
change on condition if I enter a constant. So if I change e.g. "=B2"
to "bla" is should change. Is this possible with conditional
formatiing? I did not find a way so far.

Again, thanks in advance

Julian

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Highlight field that are not derived from a formula

On 11 Okt., 01:41, Sheeloo wrote:
Then you need to use VBA. Let me know if you need help with that.


Thanks Sheeloo,

if it is like this then I think I'll go for the first method.
Otherwise it'd be somewhat too sophisticated/overkill for what I
intend to do.

Thanks anyway.

Regards

Julian


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Highlight field that are not derived from a formula

You are right, it is not worth the effort...

Recording a macro to highlight for the first time is easy... you run into
issues when you want to remove highlighting when constant changes to a
formula or vice versa.
One option is to write this into WorkSheet_Change macro like the one below

Private Sub Worksheet_Change(ByVal Target As Range)

Target.SpecialCells(xlCellTypeConstants, 23).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
End With
End Sub

"Julian Bessenroth" wrote:

On 11 Okt., 01:41, Sheeloo wrote:
Then you need to use VBA. Let me know if you need help with that.


Thanks Sheeloo,

if it is like this then I think I'll go for the first method.
Otherwise it'd be somewhat too sophisticated/overkill for what I
intend to do.

Thanks anyway.

Regards

Julian

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Highlight field that are not derived from a formula

Select your range hit F5 Special Constants OK select your
background color


"Julian Bessenroth" wrote:

Hi Folks,

I've got a question/problem I can not solve on my own.

I want to format a cell this way that the background becomes e.g. red
if the content is not defined via a reference.


e.g.

Cell Content Highlight
A1 =B3 no
A2 =C4 no
A3 abc yes
A4 =B3 no
A5 bla yes

Can anyone give me a hint how to do so?

Many thanks in advance

regards

Julian

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting data derived from formula newbie Excel Worksheet Functions 6 June 6th 08 09:03 PM
Entering Line Breaks in a Title derived by a formula Scott Charts and Charting in Excel 1 January 23rd 08 08:57 PM
Highlight Record and Field Gator Excel Discussion (Misc queries) 1 January 4th 08 04:44 PM
create formula. 1 field constant and another field varies by inpu. telnettech Setting up and Configuration of Excel 2 February 2nd 06 11:09 PM
How do I copy cell values (derived from formula), not references? Matt in a spot of bother Excel Worksheet Functions 4 July 28th 05 08:09 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"