Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Finding Characters Conditionally - Easy Question

I have a 120x120 matrix of five digit numbers like so:

52000 42222 43213 01016
52020 42200 43202 01000
52000 42202 43103 01016
52020 42200 43100 01000
52300 42000 43002 01010
52300 42020 43010 01010
53000 40222 41213 01216
53020 40200 41202 01200
53000 40232 41103 01006

....and so forth.

I want to highlight the cells that do not include a zero (the reverse works
as well for me, highlighting the cells that do include a zero). I can't seem
to make an if statement with find or search work out.

Thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Finding Characters Conditionally - Easy Question

Highlight your cells then

Format=Conditional Formatting=Formula is:=NOT(ISNUMBER(FIND(0,A1))) and
set colour as required

Assumes A1 is top left of your range.

HTH

"Rothman" wrote:

I have a 120x120 matrix of five digit numbers like so:

52000 42222 43213 01016
52020 42200 43202 01000
52000 42202 43103 01016
52020 42200 43100 01000
52300 42000 43002 01010
52300 42020 43010 01010
53000 40222 41213 01216
53020 40200 41202 01200
53000 40232 41103 01006

...and so forth.

I want to highlight the cells that do not include a zero (the reverse works
as well for me, highlighting the cells that do include a zero). I can't seem
to make an if statement with find or search work out.

Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Finding Characters Conditionally - Easy Question

=SEARCH("0",A1)

this will work if you have formatted everything as text, otherwise you will
have to use this formula

=SEARCH("0",TEXT(A1,"00000"))

"Rothman" wrote:

I have a 120x120 matrix of five digit numbers like so:

52000 42222 43213 01016
52020 42200 43202 01000
52000 42202 43103 01016
52020 42200 43100 01000
52300 42000 43002 01010
52300 42020 43010 01010
53000 40222 41213 01216
53020 40200 41202 01200
53000 40232 41103 01006

...and so forth.

I want to highlight the cells that do not include a zero (the reverse works
as well for me, highlighting the cells that do include a zero). I can't seem
to make an if statement with find or search work out.

Thanks in advance.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 111
Default Finding Characters Conditionally - Easy Question

Using conditional formatting, this formula seemed to do the trick, using
formula is:
=ISNUMBER(SEARCH(0,a1))=FALSE
and then changing the pattern to whatever color you want to use.

As I did nothing special when pasting your numbers, 01216 did not keep the
leading 0 and this number was highlighted also, but you have no doubt already
either used a leading apostrophe or formatted cells as text.
--
Kevin Vaughn


"Rothman" wrote:

I have a 120x120 matrix of five digit numbers like so:

52000 42222 43213 01016
52020 42200 43202 01000
52000 42202 43103 01016
52020 42200 43100 01000
52300 42000 43002 01010
52300 42020 43010 01010
53000 40222 41213 01216
53020 40200 41202 01200
53000 40232 41103 01006

...and so forth.

I want to highlight the cells that do not include a zero (the reverse works
as well for me, highlighting the cells that do include a zero). I can't seem
to make an if statement with find or search work out.

Thanks in advance.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Finding Characters Conditionally - Easy Question

Works like a charm. Thanks!

"Toppers" wrote:

Highlight your cells then

Format=Conditional Formatting=Formula is:=NOT(ISNUMBER(FIND(0,A1))) and
set colour as required

Assumes A1 is top left of your range.

HTH

"Rothman" wrote:

I have a 120x120 matrix of five digit numbers like so:

52000 42222 43213 01016
52020 42200 43202 01000
52000 42202 43103 01016
52020 42200 43100 01000
52300 42000 43002 01010
52300 42020 43010 01010
53000 40222 41213 01216
53020 40200 41202 01200
53000 40232 41103 01006

...and so forth.

I want to highlight the cells that do not include a zero (the reverse works
as well for me, highlighting the cells that do include a zero). I can't seem
to make an if statement with find or search work out.

Thanks in advance.


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
Function question (probably easy) Dahlman Excel Discussion (Misc queries) 4 April 4th 05 03:09 PM
Easy function question Dahlman Excel Discussion (Misc queries) 2 March 31st 05 12:35 AM
Easy formula Question Excel formula fix Excel Worksheet Functions 3 March 29th 05 02:04 AM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
easy question .... i think Dean Excel Discussion (Misc queries) 1 January 6th 05 06:31 PM


All times are GMT +1. The time now is 10:29 AM.

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

About Us

"It's about Microsoft Excel"