Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2017, 07:04 PM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default Have a cell filled black when blank in dropdown list

Does anyone know how to have an empty cell in a dropdown list set to colour black (rather than empty)?



I need it black as it is used to separate reoccurring information of a data set.
Reply With Quote
  #2  
Old 04-01-2017, 07:08 PM
jeffreybrown jeffreybrown is offline Have a cell filled black when blank in dropdown list Windows Vista Have a cell filled black when blank in dropdown list Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Hello & Welcome to the Forum,

You can use CF...

Conditional Formatting
  • Highlight applicable range >> A1
  • Home Tab >> Styles >> Conditional Formatting >> New Rule
  • Select a Rule Type: Use a formula to determine which cells to format
  • Edit the Rule Description: Format values where this formula is true: =LEN(A1)=0
  • Format… [Number, Font, Border, Fill]
  • OK >> OK
Reply With Quote
  #3  
Old 04-01-2017, 09:06 PM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default

I have done as described and the dropdown list still only has a blank cell and not a black filled cell.

I can't attach an image for you to see as it appears the forum only allows http links.

The "Conditional Formatting Rule Manager" has:

Formula: ="LEN(B*)=0"
Format: is a black block
Applies to: =$B$8

The dropdown list values are in one sheet and the sheet that uses the dropdown list that the values are referenced are in another if that is of any relevance?
Reply With Quote
  #4  
Old 04-02-2017, 06:35 AM
jeffreybrown jeffreybrown is offline Have a cell filled black when blank in dropdown list Windows Vista Have a cell filled black when blank in dropdown list Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Quote:
Formula: ="LEN(B*)=0"
Not sure what's going on with your formula as it should be =LEN(B8)=0 and no quotes

From the FAQ...

Quote:
To attach a file to a new post, simply click the [click Go advanced - Manage attachments] button at the bottom of the post composition page, and locate the file that you want to attach from your local hard drive.
Reply With Quote
  #5  
Old 04-03-2017, 12:33 AM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default

Please see below

Last edited by Aussie_81; 04-03-2017 at 01:03 AM. Reason: Duplicate
Reply With Quote
  #6  
Old 04-03-2017, 12:36 AM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default

Thanks Jeffrey Brown,

I used the apostrophises to represent the exact value stated, however I didn't check the post as I must have pressed shift 8 instead of just 8.

Please see the attached images (thanks for that).
Attached Images
File Type: png Temp 170402.PNG (50.6 KB, 34 views)
File Type: png Temp 170402_2.PNG (2.4 KB, 34 views)
Reply With Quote
  #7  
Old 04-03-2017, 04:50 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Have a cell filled black when blank in dropdown list Windows 7 64bit Have a cell filled black when blank in dropdown list Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Perhaps post a small sample sheet ( Go advanced - manage attachments)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #8  
Old 04-04-2017, 02:27 PM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default

Here is the spreadsheet I was referring to.

Note: When in the spreadsheet "STN1" and on row 15, column B, if the user selects the very last value from the dropdown list (under STN4) the population is blank rather than black.

The sheet "Data List" is where I have the formulas pertaining the "STN1" sheet
Attached Files
File Type: xlsx Example.xlsx (19.8 KB, 7 views)
Reply With Quote
  #9  
Old 04-04-2017, 04:03 PM
Logit Logit is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

.
.
Click B12

Click Conditional Formatting on Menu Bar

Select "Format only cells that contain" / Equal to

In the formula field enter =("")

Format color for BLACK

Click Ok / APPLY /OK

Test B12 by selecting the blank item

When confirmed it works ... Click B12 again.

Click FORMAT PAINTER on HOME TAB in the CLIPBOARD section

Left click and hold on B12, then drag down the column as far as you need.
Attached Files
File Type: xlsx Example.xlsx (19.3 KB, 7 views)
Reply With Quote
  #10  
Old 04-05-2017, 01:47 AM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default

Thanks Logit,

I have got the spreadsheet to work as you have instructed but the functionality is not as I require it.

The purpose of the black cell is that it will be used as an observation set separator that the user will specify.

The data will then be read into Matlab for manipulation and reduction based on the users input through iterations.

Is there a way to allow the user to set the cell to black (through the dropdown list) rather than having them pre-set to black then require changing (overwrite)?

This is also important for the usability in the Matlab program.

Thankyou in advance.
Reply With Quote
  #11  
Old 04-05-2017, 04:29 AM
Logit Logit is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Hmm ... I'm not familiar with MatLab.

At the moment I can't think of a way to cause the cell to turn black only when the blank
selection is ... selected. Perhaps someone else knows of a way.

Suggestion: Surely MatLab must have a blog or Forum ? Have you asked there ? Users of the program must have already done the same thing ?
Reply With Quote
  #12  
Old 04-05-2017, 06:33 AM
NoSparks NoSparks is offline Have a cell filled black when blank in dropdown list Windows 7 64bit Have a cell filled black when blank in dropdown list Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

I realize this is not posted under Excel Programming and this will require the file to be a macro enabled .xlsm, but I would remove the conditional formatting and use the Worksheet_Change event as it triggers when a selection is made in a validation drop down.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Count > 1 Or Target.Column <> 2 Then Exit Sub
If Not Intersect(Target, Me.Range("B12:B146")) Is Nothing Then
    If Target.Value = "" Then
        Target.Interior.ColorIndex = 1
    Else
        Target.Interior.ColorIndex = 0
    End If
End If

End Sub
Attached Files
File Type: xlsm Example_suggestion.xlsm (27.0 KB, 8 views)
Reply With Quote
  #13  
Old 04-05-2017, 12:55 PM
Logit Logit is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

No Sparks:

I am so glad when my mind stops functioning ... you can save me !

Thanks !
Reply With Quote
  #14  
Old 04-06-2017, 12:44 AM
Aussie_81 Aussie_81 is offline Have a cell filled black when blank in dropdown list Windows 10 Have a cell filled black when blank in dropdown list Office 2016
Novice
Have a cell filled black when blank in dropdown list
 
Join Date: Apr 2017
Posts: 7
Aussie_81 is on a distinguished road
Default

Hey No Sparks,

Thankyou for the that.

That is exactly what I wanted.

Much appreciated.
Reply With Quote
  #15  
Old 04-06-2017, 04:50 AM
NoSparks NoSparks is offline Have a cell filled black when blank in dropdown list Windows 7 64bit Have a cell filled black when blank in dropdown list Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

You're welcome, glad I could assist.
Thanks for reporting back.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have a cell filled black when blank in dropdown list Formulato say if cell is blank do this, if not blank do this. mbesspiata Excel 1 01-17-2015 05:02 AM
Have a cell filled black when blank in dropdown list Using word art in a table with a filled cell halfnite Word 5 10-07-2014 05:24 PM
Auto add a list cell if the last list cell is filled tasuooooo Excel 1 07-31-2012 08:40 PM
Change cell color everytime a value is selected in dropdown list angelica_gloria Excel 4 01-27-2012 06:47 PM
Forms: combination of a list and a text field to be filled in bart014 Word 0 04-23-2010 12:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft