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 but not both?

I have a spreadsheet with several columns that I will be asking colleagues to
fill with their data. Two of the columns are in date format and are an
either/or option. What I want to happen is that if someone inserts data into
a row in column A then they cannot insert data into the same row of column B,
or vice versa.
How would I do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How do I restrict data entry to one of two columns but not both?

Do you really want to make it IMPOSSIBLE or could you cope with this:
In the column next to the two for entries add =IF(COUNT(A2:B2)1,"ERROR","")
You could also use formatting to make this, say, red
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Gillian" wrote in message
...
I have a spreadsheet with several columns that I will be asking colleagues
to
fill with their data. Two of the columns are in date format and are an
either/or option. What I want to happen is that if someone inserts data
into
a row in column A then they cannot insert data into the same row of column
B,
or vice versa.
How would I do this?



  #3   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 but not bot

Thanks, Bernard.
As the full spreadsheet has about 50 columns, I was trying to avoid adding
any more just to show messages. I shall ask the people I'm doing this for if
they'd be happy with an extra column. Otherwise, is there a way to format the
columns?
Gillian

"Bernard Liengme" wrote:

Do you really want to make it IMPOSSIBLE or could you cope with this:
In the column next to the two for entries add =IF(COUNT(A2:B2)1,"ERROR","")
You could also use formatting to make this, say, red
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Gillian" wrote in message
...
I have a spreadsheet with several columns that I will be asking colleagues
to
fill with their data. Two of the columns are in date format and are an
either/or option. What I want to happen is that if someone inserts data
into
a row in column A then they cannot insert data into the same row of column
B,
or vice versa.
How would I do this?




  #4   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 but not bot

As I posted to your previous query to the same question (your previous
question had dates being entered in columns E & F).

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:

Thanks, Bernard.
As the full spreadsheet has about 50 columns, I was trying to avoid adding
any more just to show messages. I shall ask the people I'm doing this for if
they'd be happy with an extra column. Otherwise, is there a way to format the
columns?
Gillian

"Bernard Liengme" wrote:

Do you really want to make it IMPOSSIBLE or could you cope with this:
In the column next to the two for entries add =IF(COUNT(A2:B2)1,"ERROR","")
You could also use formatting to make this, say, red
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Gillian" wrote in message
...
I have a spreadsheet with several columns that I will be asking colleagues
to
fill with their data. Two of the columns are in date format and are an
either/or option. What I want to happen is that if someone inserts data
into
a row in column A then they cannot insert data into the same row of column
B,
or vice versa.
How would I do this?




  #5   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 but not bot

Thanks, John.
I'll have a go at this.
Sorry about the double post; I thought I had submitted the query and came
back to my computer after some time to see a pop-up asking for my email
address, but found I had been timed out, so submitted the question again. It
would appear that it had been submitted after all, by which time it had moved
down to the second page and I didn't see it.

Gillian

"John C" wrote:

As I posted to your previous query to the same question (your previous
question had dates being entered in columns E & F).

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:

Thanks, Bernard.
As the full spreadsheet has about 50 columns, I was trying to avoid adding
any more just to show messages. I shall ask the people I'm doing this for if
they'd be happy with an extra column. Otherwise, is there a way to format the
columns?
Gillian

"Bernard Liengme" wrote:

Do you really want to make it IMPOSSIBLE or could you cope with this:
In the column next to the two for entries add =IF(COUNT(A2:B2)1,"ERROR","")
You could also use formatting to make this, say, red
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Gillian" wrote in message
...
I have a spreadsheet with several columns that I will be asking colleagues
to
fill with their data. Two of the columns are in date format and are an
either/or option. What I want to happen is that if someone inserts data
into
a row in column A then they cannot insert data into the same row of column
B,
or vice versa.
How would I do this?





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
How do I restrict data entry to one of two columns Gillian Excel Discussion (Misc queries) 2 July 16th 08 02:07 PM
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
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 07:33 PM.

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"