Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 224
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 224
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
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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
excel all cells begin with hyphen now clickerfixer New Users to Excel 1 February 12th 08 06:49 PM
formatting numbers beginning with zero Louise Excel Worksheet Functions 6 October 14th 05 04:12 PM
sort cells with hyphen #####-###-#### bagman Excel Discussion (Misc queries) 6 January 1st 05 07:05 PM
sort cells with hyphen #####-###-#### infurtaris Excel Discussion (Misc queries) 0 January 1st 05 05:15 PM


All times are GMT +1. The time now is 05:56 AM.

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"