Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default display "Missing" when blank

hello,
how could i make any blank cell in a particular range in a worksheet
displays certain word if it is dataless??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default display "Missing" when blank

Past this formula in B2

=IF(A2="","missing","")


write something in A2 and then delete it.


"nada" wrote:

hello,
how could i make any blank cell in a particular range in a worksheet
displays certain word if it is dataless??

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default display "Missing" when blank

Hi

What do you mean by blank?

Does the cell hold a formula or is the user supposed to to enter data into
the cell?

Regards,

Per

"nada" skrev i meddelelsen
...
hello,
how could i make any blank cell in a particular range in a worksheet
displays certain word if it is dataless??


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default display "Missing" when blank

that's not what i need to do, i'll try to be clearer
i have some data in the range b6:m19, some cells in this range are blank, so
i want them automatically display the word "missing" if there is no data in
them, thank you.

"Jman" wrote:

Past this formula in B2

=IF(A2="","missing","")


write something in A2 and then delete it.


"nada" wrote:

hello,
how could i make any blank cell in a particular range in a worksheet
displays certain word if it is dataless??

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default display "Missing" when blank

hello,
i have some data in the range b6:m19, some cells in this range are blank, so
i want them automatically display the word "missing" if there is no data in
them, thank you.



"Per Jessen" wrote:

Hi

What do you mean by blank?

Does the cell hold a formula or is the user supposed to to enter data into
the cell?

Regards,

Per

"nada" skrev i meddelelsen
...
hello,
how could i make any blank cell in a particular range in a worksheet
displays certain word if it is dataless??





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default display "Missing" when blank

Hello,

Here's a way to do it.

Copy the code below, right click on the sheet tab where you this function.
Click View Code. Paste the code on the code sheet and close the code editor.

Deactivate the sheet, and then activate it again. All "empty" cells will now
say "Missing"
User can enter data as usual and if he delete data in target range the cell
will say "Missing"

I hope this is what you need.

Private Sub Worksheet_Activate()
Dim MyRange As Range
Set MyRange = Range("B6:M19")
For Each c In MyRange
If c.Value = "" Then c.Value = "Missing"
Next
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
Dim MyRange As Range
Set MyRange = Range("B6:M19")
Set isect = Application.Intersect(MyRange, Target)
If Not isect Is Nothing Then
If Target.Value = "" Then Target = "Missing"
End If
End Sub

Best regards,
Per

"nada" skrev i meddelelsen
...
hello,
i have some data in the range b6:m19, some cells in this range are blank,
so
i want them automatically display the word "missing" if there is no data
in
them, thank you.



"Per Jessen" wrote:

Hi

What do you mean by blank?

Does the cell hold a formula or is the user supposed to to enter data
into
the cell?

Regards,

Per

"nada" skrev i meddelelsen
...
hello,
how could i make any blank cell in a particular range in a worksheet
displays certain word if it is dataless??




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
How do I change the column heading in Excel to display "A" "B" "C Thai New Users to Excel 1 November 30th 07 08:06 PM
Signature missing when "send to" "mail recipient" Jim Tortorelli Excel Discussion (Misc queries) 2 September 21st 07 05:19 PM
Formatting: display blank when "O", 2 decimal when a number is d ED New Users to Excel 2 May 30th 07 09:12 PM
Scroll Bar missing "Control" tab in "Format Properties" dialog box Peter Rooney Excel Discussion (Misc queries) 5 August 24th 06 05:36 PM
Changing "returned" values from "0" to "blank" LATATC Excel Worksheet Functions 2 October 20th 05 04:41 PM


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