Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dd dd is offline
external usenet poster
 
Posts: 95
Default Conditional Formatting to Lock Cells

Is there a way to lock the adjacent cells in a row, if "contractor" is
entered into the cell?

Kind regards
Dylan



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Conditional Formatting to Lock Cells

Is there a way to lock the adjacent cells in a row,
if "contractor" is entered into the cell?


Let's assume the column where the word "contractor" can appear is Column A.
Select the adjacent columns that you wish to lock make sure you start in
Column B so that B1 is the active cell. Click Data/Validation in Excel's
menu bar and, on the dialog box that appears, select "Custom" in the Allow
drop down and put this formula in the Formula field...

=ISERROR(SEARCH("contractor",$A1))

then finish by clicking OK. If "contractor" (any casing) is typed into a
cell in Column A, then nothing will be able to be entered into the same row
in any of the columns you selected for the Data/Validation condition. By the
way, I used the SEARCH function so the letter casing on the word
"contractor" does not matter.

Rick

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dd dd is offline
external usenet poster
 
Posts: 95
Default Conditional Formatting to Lock Cells

Rick

Thank you

Much appreciated
Dylan

"Rick Rothstein (MVP - VB)" wrote in
message ...
Is there a way to lock the adjacent cells in a row,
if "contractor" is entered into the cell?


Let's assume the column where the word "contractor" can appear is Column A.
Select the adjacent columns that you wish to lock make sure you start in
Column B so that B1 is the active cell. Click Data/Validation in Excel's
menu bar and, on the dialog box that appears, select "Custom" in the Allow
drop down and put this formula in the Formula field...

=ISERROR(SEARCH("contractor",$A1))

then finish by clicking OK. If "contractor" (any casing) is typed into a
cell in Column A, then nothing will be able to be entered into the same row
in any of the columns you selected for the Data/Validation condition. By the
way, I used the SEARCH function so the letter casing on the word
"contractor" does not matter.

Rick


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 formatting of cells cell formatting Excel Worksheet Functions 6 August 9th 07 12:33 AM
conditional formatting 2 cells debjocc Excel Worksheet Functions 6 June 2nd 06 03:21 PM
Conditional Formatting with two cells ballastrae Excel Worksheet Functions 8 February 15th 06 01:17 AM
Conditional Formatting Multiple cells based on 2 cells Louis Markowski Excel Worksheet Functions 2 June 1st 05 05:26 PM
bolding cells in conditional formatting Katherine Excel Worksheet Functions 1 December 7th 04 07:57 PM


All times are GMT +1. The time now is 11:08 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"