#1   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Conditional Format?

Excel2003 ...

Col C ... contains <=5 char text starting with 0 to 9
Col D ... contains <=8 char text starting with 0 to 9

Sometimes ... the next to last char in Col D is a "P" or a "T" ... whenever
this occurs the last Char of Col D must match 1st char in Col C ... I would
like to conditional format where this does not happen.

ie:

Col C = 3052 ... Col D = 123456P3 ... = valid value (3) ... no format
Col C = 3052 ... Col D = 123456T3 ... = valid value (3) ... no format
Col C = 4052 ... Col D = 123456T1 ... = invalid value (4 vs 1) ... format
Col C = 4052 ... Col D = 123456P3 ... = invalid value (4 vs 3) ... format
Col C = 4052 ... Col D = 123456P4 ... = valid value (4) ... no format
Col C = 3317 ... Col D = 3317-123 .... = (non issue ... no "P" or "T")

Thanks ... Kha




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conditional Format?

Use a formula of

=AND(OR(MID(D1,LEN(D1)-1,1)="P",MID(D1,LEN(D1)-1,1)="T"),RIGHT(D1,1)<LEFT(C1))

in the CF

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ken" wrote in message
...
Excel2003 ...

Col C ... contains <=5 char text starting with 0 to 9
Col D ... contains <=8 char text starting with 0 to 9

Sometimes ... the next to last char in Col D is a "P" or a "T" ...
whenever
this occurs the last Char of Col D must match 1st char in Col C ... I
would
like to conditional format where this does not happen.

ie:

Col C = 3052 ... Col D = 123456P3 ... = valid value (3) ... no format
Col C = 3052 ... Col D = 123456T3 ... = valid value (3) ... no format
Col C = 4052 ... Col D = 123456T1 ... = invalid value (4 vs 1) ... format
Col C = 4052 ... Col D = 123456P3 ... = invalid value (4 vs 3) ... format
Col C = 4052 ... Col D = 123456P4 ... = valid value (4) ... no format
Col C = 3317 ... Col D = 3317-123 .... = (non issue ... no "P" or "T")

Thanks ... Kha






  #3   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Conditional Format?

Awesome ... works great ... Thanks ... Kha

"Bob Phillips" wrote:

Use a formula of

=AND(OR(MID(D1,LEN(D1)-1,1)="P",MID(D1,LEN(D1)-1,1)="T"),RIGHT(D1,1)<LEFT(C1))

in the CF

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ken" wrote in message
...
Excel2003 ...

Col C ... contains <=5 char text starting with 0 to 9
Col D ... contains <=8 char text starting with 0 to 9

Sometimes ... the next to last char in Col D is a "P" or a "T" ...
whenever
this occurs the last Char of Col D must match 1st char in Col C ... I
would
like to conditional format where this does not happen.

ie:

Col C = 3052 ... Col D = 123456P3 ... = valid value (3) ... no format
Col C = 3052 ... Col D = 123456T3 ... = valid value (3) ... no format
Col C = 4052 ... Col D = 123456T1 ... = invalid value (4 vs 1) ... format
Col C = 4052 ... Col D = 123456P3 ... = invalid value (4 vs 3) ... format
Col C = 4052 ... Col D = 123456P4 ... = valid value (4) ... no format
Col C = 3317 ... Col D = 3317-123 .... = (non issue ... no "P" or "T")

Thanks ... Kha







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
Conditional Format (not color format) jatman Excel Discussion (Misc queries) 1 November 22nd 06 08:41 AM
How to create a conditional format that changes the number format tmbo Excel Discussion (Misc queries) 1 August 23rd 06 06:20 AM
Conditional Format - Format Transfer To Chart ju1eshart Excel Discussion (Misc queries) 0 June 1st 06 02:46 PM
copy conditional format to regular format GDC Setting up and Configuration of Excel 3 May 4th 05 09:35 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM


All times are GMT +1. The time now is 10:56 PM.

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"