Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Martin Smith
 
Posts: n/a
Default Force entry to one of three cells

I have a sheet where users enter a value of an invoice in one of three
columns. These are Pounds sterling, US dollar and Euro. The invoice
will only ever be in one of the three currencies.

Can I flag a warning if values appear in more than one of the three
cells on each row?

  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Martin,

You can use Data Validation to prevent multiple entries.

Select the three columns, all rows, where the values might be entered.
Let's say columns A, B and C, starting in row 2. A2 will be the activecell.

Use Data | Validation...., select "Custom" under "Allow", and in the
"Formula" area, enter

=COUNTA($A2:$C2)=1

You can modify the message to reflect your constraints.

HTH,
Bernie
MS Excel MVP


"Martin Smith" wrote in
message ...
I have a sheet where users enter a value of an invoice in one of three
columns. These are Pounds sterling, US dollar and Euro. The invoice
will only ever be in one of the three currencies.

Can I flag a warning if values appear in more than one of the three
cells on each row?



  #3   Report Post  
Martin Smith
 
Posts: n/a
Default

On 2005-05-26 17:54:18 +0100, "Bernie Deitrick" <deitbe @ consumer dot
org said:

Martin,

You can use Data Validation to prevent multiple entries.

Select the three columns, all rows, where the values might be entered.
Let's say columns A, B and C, starting in row 2. A2 will be the activecell.

Use Data | Validation...., select "Custom" under "Allow", and in the
"Formula" area, enter

=COUNTA($A2:$C2)=1

You can modify the message to reflect your constraints.

HTH,
Bernie
MS Excel MVP


That works great.

Thank you very much.

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
limit text entry in a range of cells QTPRM Excel Discussion (Misc queries) 2 May 25th 05 03:52 AM
Is there away to have specific cells unlock based on the entry of information in another? Marc New Users to Excel 2 April 17th 05 06:09 PM
data entry from two cells across worksheets sp-googling Excel Discussion (Misc queries) 7 March 30th 05 09:07 PM
How to you count cells that contain any entry? Robin C Excel Discussion (Misc queries) 3 January 16th 05 02:25 AM
Selected cells grow and data entry impossible EXT is dissabled Allanhart42 Excel Discussion (Misc queries) 1 November 26th 04 02:59 PM


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