Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Show cell contents depending on other cells information

Hello, here is my problem.

I have two cells (B5) and (C5).

If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.

Is this doable?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Show cell contents depending on other cells information

On Nov 19, 11:04*am, RedBeard wrote:
Hello, here is my problem.

I have two cells (B5) and (C5).

If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.

Is this doable?

Thanks.


=or(if(b5<40,D5,"#N/A),if...)

then do a conditional formatting. do you mean invisible or blank?
if invisible do conditional formatting, if blank change #N/A to
nothing.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Show cell contents depending on other cells information

What is in D5... a formula or a typed in value? If a typed in value, will it
ever be changed by the user of the worksheet?

--
Rick (MVP - Excel)


"RedBeard" wrote in message
...
Hello, here is my problem.

I have two cells (B5) and (C5).

If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.

Is this doable?

Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Show cell contents depending on other cells information

On Nov 19, 5:21*pm, "Rick Rothstein"
wrote:
What is in D5... a formula or a typed in value? If a typed in value, will it
ever be changed by the user of the worksheet?

--
Rick (MVP - Excel)

"RedBeard" wrote in message

...

Hello, here is my problem.


I have two cells (B5) and (C5).


If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.


Is this doable?


Thanks.


It is a string of text that will not be changed.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Show cell contents depending on other cells information

RedBeard,

Are you saying that D5 will contain it's current value or blank data? If
the value needs to end up in D5 then you might need to put column D data into
column E and use the following (which is in cell D5):
=IF(OR(B5<40,ISTEXT(C5)),E5,""); otherwise the D5 formula will need to hard
code the D5 value and put it where "E5" is in the formula above.

Genral Formula
=IF(OR(B5<40,ISTEXT(C5)),D5,"")

Best,

Matthew Herbert

"RedBeard" wrote:

Hello, here is my problem.

I have two cells (B5) and (C5).

If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.

Is this doable?

Thanks.
.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Show cell contents depending on other cells information

On Nov 19, 6:03*pm, Matthew Herbert
wrote:
RedBeard,

Are you saying that D5 will contain it's current value or blank data? *If
the value needs to end up in D5 then you might need to put column D data into
column E and use the following (which is in cell D5):
=IF(OR(B5<40,ISTEXT(C5)),E5,""); otherwise the D5 formula will need to hard
code the D5 value and put it where "E5" is in the formula above.

Genral Formula
=IF(OR(B5<40,ISTEXT(C5)),D5,"")

Best,

Matthew Herbert

"RedBeard" wrote:
Hello, here is my problem.


I have two cells (B5) and (C5).


If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.


Is this doable?


Thanks.
.


D5 will either have it's contents visible or invisible, it is a string
of text that does not change.
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Show cell contents depending on other cells information

RedBeard,

Are you still looking for an answer, or did the posts answer your question?
If the posts didn't answer your question, can you provide more detail as to
what isn't working (e.g. the formula isn't working, the formula is fine but
the D5 value needs to be embedded in the formula, etc)?

Best,

Matt


"RedBeard" wrote:

On Nov 19, 6:03 pm, Matthew Herbert
wrote:
RedBeard,

Are you saying that D5 will contain it's current value or blank data? If
the value needs to end up in D5 then you might need to put column D data into
column E and use the following (which is in cell D5):
=IF(OR(B5<40,ISTEXT(C5)),E5,""); otherwise the D5 formula will need to hard
code the D5 value and put it where "E5" is in the formula above.

Genral Formula
=IF(OR(B5<40,ISTEXT(C5)),D5,"")

Best,

Matthew Herbert

"RedBeard" wrote:
Hello, here is my problem.


I have two cells (B5) and (C5).


If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.


Is this doable?


Thanks.
.


D5 will either have it's contents visible or invisible, it is a string
of text that does not change.
.

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Show cell contents depending on other cells information

On Nov 20, 10:26*pm, Matthew Herbert
wrote:
RedBeard,

Are you still looking for an answer, or did the posts answer your question? *
If the posts didn't answer your question, can you provide more detail as to
what isn't working (e.g. the formula isn't working, the formula is fine but
the D5 value needs to be embedded in the formula, etc)?

Best,

Matt

"RedBeard" wrote:
On Nov 19, 6:03 pm, Matthew Herbert
wrote:
RedBeard,


Are you saying that D5 will contain it's current value or blank data? *If
the value needs to end up in D5 then you might need to put column D data into
column E and use the following (which is in cell D5):
=IF(OR(B5<40,ISTEXT(C5)),E5,""); otherwise the D5 formula will need to hard
code the D5 value and put it where "E5" is in the formula above.


Genral Formula
=IF(OR(B5<40,ISTEXT(C5)),D5,"")


Best,


Matthew Herbert


"RedBeard" wrote:
Hello, here is my problem.


I have two cells (B5) and (C5).


If (B5) has any other value than 40 or if (C5) contains text, I want
to display the contents of cell (D5).
Otherwise the contents of (D5) are to remain invisible.


Is this doable?


Thanks.
.


D5 will either have it's contents visible or invisible, it is a string
of text that does not change.
.


Matthew,

Thank you for the followup.
I have been experimenting with the solution you provided, but I can't
get it to work and I don't really understand why.

I put =IF(OR(B5<40,ISTEXT(C5)),D5="test","") in the conditional
formatting field with a range of $B$5:$D$5.

Any ideas?
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
making one cell show contents of other selected cells...automatica Roger on Excel Excel Programming 2 September 12th 09 09:40 PM
Want to show/hide cells depending on other cells results Marco Excel Discussion (Misc queries) 0 August 15th 06 06:21 PM
Reference range of cells and perform subtraction or nothing depending on contents bob-hamilton Excel Worksheet Functions 3 February 5th 06 04:24 PM
summing up contents on ceratin cells depending on selection criter Charles Excel Worksheet Functions 1 July 21st 05 10:52 PM
How do I change a buttons contents depending on a cells contents? Kosh42|EFG Excel Programming 2 February 16th 05 02:39 PM


All times are GMT +1. The time now is 10:56 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"