Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default How do I restrict data entry to one of two columns

I have a file with several fields to be entered. Two of the columns are date
fields (say columns E and F). What I want to happen is that if data is
entered in row 3 of column E then it is not possible to enter data in row 3
of column F, and vice versa.
I presume this would be some kind of conditional formatting, but I can't
work out how to do this. I also need to do this in Excel 2000.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How do I restrict data entry to one of two columns

I'd use a formula in G3:

=IF(COUNTA(E3:F3)<2,"0k","Only one value!")

or maybe something like:

=IF(COUNTA(E3:F3)=0,"Please enter a value in E or F (not both)",
IF(COUNTA(E3:F3)=1,"0k","Only one value!"))



Gillian wrote:

I have a file with several fields to be entered. Two of the columns are date
fields (say columns E and F). What I want to happen is that if data is
entered in row 3 of column E then it is not possible to enter data in row 3
of column F, and vice versa.
I presume this would be some kind of conditional formatting, but I can't
work out how to do this. I also need to do this in Excel 2000.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default How do I restrict data entry to one of two columns

Data Validation.
In cell E1, go to Data--Validation
Allow:
Date
Data:
Greater than or equal to
Start Date:
=IF(F10,99999,0)
Highlight column E (or at least down to where is needed), and go to
Data--Validation, and select YES for extending data validation.

Then in F1, do the same thing as in E, except the formula for start date
will be E1, highlight column F, and go to Data--Validation, YES to extend,
again, same as you did in column E.
--
John C


"Gillian" wrote:

I have a file with several fields to be entered. Two of the columns are date
fields (say columns E and F). What I want to happen is that if data is
entered in row 3 of column E then it is not possible to enter data in row 3
of column F, and vice versa.
I presume this would be some kind of conditional formatting, but I can't
work out how to do this. I also need to do this in Excel 2000.

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
lock cell conditional format but not restrict data entry GAM Excel Worksheet Functions 1 August 18th 07 06:53 AM
How can I restrict a cell(s) to alpha-only data entry? Robert T Excel Discussion (Misc queries) 2 January 10th 07 10:55 PM
Restrict entry types Dolalu Excel Discussion (Misc queries) 1 November 29th 05 06:24 PM
can i restrict data entry from certain columns surgeandoj Excel Discussion (Misc queries) 1 July 8th 05 05:28 PM
HOW TO RESTRICT DATA ENTRY FROM A CHOICE OF SEVERAL LIST? Roomee Excel Discussion (Misc queries) 1 June 18th 05 12:34 PM


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