Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Serge
 
Posts: n/a
Default How to enter data in one row cell only in a cell range

I want to be able to enter data (whole number) in only one row cell from a
range of cell. An error message would show if data is entered in an other
cell in that range.

I am desperate to get an answer.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default How to enter data in one row cell only in a cell range

Serge,
the following *array* formula (needs to be entered with
Shift+Ctrl+Enter) will test if there are more than one numbers in
A1:A100
=IF(SUM(--ISNUMBER(A1:A10))1, "One too many", "")

To test if you have more than one non-blank cells in the range (incl.
text), use:
=IF(SUM((1-ISBLANK(A1:B20)))1, "One too many", "")

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Serge
 
Posts: n/a
Default How to enter data in one row cell only in a cell range

I have been working on your response for the past hour with no result.
Refrased question: In a selected range of cell (7 cells) in one row I want
to enter a number in only one of those cell which will correspond to
information in the column header. If data is entered in an other cell in the
same range this needs to create an error.
Thanks
Serge

"vezerid" wrote:

Serge,
the following *array* formula (needs to be entered with
Shift+Ctrl+Enter) will test if there are more than one numbers in
A1:A100
=IF(SUM(--ISNUMBER(A1:A10))1, "One too many", "")

To test if you have more than one non-blank cells in the range (incl.
text), use:
=IF(SUM((1-ISBLANK(A1:B20)))1, "One too many", "")

HTH
Kostis Vezerides


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
Pasting data top 1st empty cell in range wfcmark Excel Discussion (Misc queries) 4 December 8th 05 10:46 AM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
enter data in cell but cannot save until click off cell in excel T70McCains Excel Discussion (Misc queries) 1 November 18th 05 05:06 PM
Data range reference in a cell Craig Charts and Charting in Excel 0 October 20th 05 02:19 PM
enter data in cell which will start macro to move data to sheet2 Tommy Excel Discussion (Misc queries) 0 May 12th 05 05:00 PM


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