A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting on cells beginning with a hyphen



 
 
Thread Tools Display Modes
  #1  
Old November 16th, 2009, 06:49 AM posted to microsoft.public.excel.misc
Greg Lovern
external usenet poster
 
Posts: 54
Default Conditional Formatting on cells beginning with a hyphen

Is it possible to do conditional formatting on cells beginning with a
hyphen?


Thanks,

Greg
  #2  
Old November 16th, 2009, 08:02 AM posted to microsoft.public.excel.misc
Ms-Exl-Learner
external usenet poster
 
Posts: 522
Default Conditional Formatting on cells beginning with a hyphen

1. Place the cursor in A1 cell and select the Range
2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and paste the below formula
=LEFT(A1,1)="-"
4. Click Format ButtonFontColor select your desired font & Background
Color pattern and then give ok

Change the cell reference of A1 to your desired cell, if required.

But keep in mind that when applying the conditional formatting the Active
cell should be in the cell on which the formula is referred.

For Example if you want to apply the conditional formatting for C Column
when the formula is referring the C2 cell then place the cursor in C2 cell
and select the whole C Column by pressing Cntrl+Spacebar and apply the below
formula.
=LEFT(C2,1)="-"

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"Greg Lovern" wrote:

Is it possible to do conditional formatting on cells beginning with a
hyphen?


Thanks,

Greg
.

  #3  
Old November 16th, 2009, 08:03 AM posted to microsoft.public.excel.misc
L. Howard Kittle
external usenet poster
 
Posts: 516
Default Conditional Formatting on cells beginning with a hyphen

Hi Greg,

In my tests I have two possibilities.

Idea one:

Select the cells to be formatted.
Then FormatConditional formatCell value isLess
than0FormatPatterns'select a color'OK out.

Idea two:

Select the cells to be formatted.
Then FormatConditional formatFormula
is=IF(LEFT(B1,1)="-",2)FormatPatterns'select a color'OK out.

HTH
Regards,
Howard

"Greg Lovern" wrote in message
...
Is it possible to do conditional formatting on cells beginning with a
hyphen?


Thanks,

Greg



  #4  
Old November 16th, 2009, 02:49 PM posted to microsoft.public.excel.misc
Greg Lovern
external usenet poster
 
Posts: 54
Default Conditional Formatting on cells beginning with a hyphen

On Nov 16, 12:02*am, Ms-Exl-Learner wrote:
3. For Condition1Select 'Formula Is' and paste the below formula
=LEFT(A1,1)="-"
But keep in mind that when applying the conditional formatting the Active
cell should be in the cell on which the formula is referred.


Thanks! :-)

Greg
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.