Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Does a number exist in a range

I have a range of 5 cells. These cells can contain a blank, or a number (the
numbers are 1,2,3,4 and 5). Numbers cannot repeat within the range (i.e. if
there is a 1 in a cell, the 1 cannot occur in any of the other 4 cells).

With the cursor in the first cell, how can I have Excel determine whether
there is a 1 in any of the other 4 cells; then determine whether there is a 2
in any of the other 4 cells; then determine whether there is a 3, etc? There
has to be some way, other than trying to write a super-complex IF statement.
Do you have any ideas?

--
John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Does a number exist in a range

I have a range of 5 cells. These cells can contain a blank, or a number
(the
numbers are 1,2,3,4 and 5). Numbers cannot repeat within the range (i.e.
if
there is a 1 in a cell, the 1 cannot occur in any of the other 4 cells).

With the cursor in the first cell, how can I have Excel determine whether
there is a 1 in any of the other 4 cells; then determine whether there is
a 2
in any of the other 4 cells; then determine whether there is a 3, etc?
There
has to be some way, other than trying to write a super-complex IF
statement.
Do you have any ideas?


If you are simply looking to see if all the cells have been filled in (here,
I am assuming you have procedures in place to make sure they are properly
filled in), SUM the range and see if they total 15.

Rick

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Does a number exist in a range

actually, I want to determine what digit to place in a cell, based on which
digits already have been used in the other 4 cells. In other words, if my 5
cells contain: blank,2,4,5,1 - I want to have Excel tell me that the first
cell should be a 3, since the numbers 1,2,4,5 have been used.

--
John


"Rick Rothstein (MVP - VB)" wrote:

I have a range of 5 cells. These cells can contain a blank, or a number
(the
numbers are 1,2,3,4 and 5). Numbers cannot repeat within the range (i.e.
if
there is a 1 in a cell, the 1 cannot occur in any of the other 4 cells).

With the cursor in the first cell, how can I have Excel determine whether
there is a 1 in any of the other 4 cells; then determine whether there is
a 2
in any of the other 4 cells; then determine whether there is a 3, etc?
There
has to be some way, other than trying to write a super-complex IF
statement.
Do you have any ideas?


If you are simply looking to see if all the cells have been filled in (here,
I am assuming you have procedures in place to make sure they are properly
filled in), SUM the range and see if they total 15.

Rick


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,080
Default Does a number exist in a range

=15-SUM(A2:A5)
__________________________________________________ _______________________

"John" wrote in message
...
actually, I want to determine what digit to place in a cell, based on
which
digits already have been used in the other 4 cells. In other words, if my
5
cells contain: blank,2,4,5,1 - I want to have Excel tell me that the first
cell should be a 3, since the numbers 1,2,4,5 have been used.

--
John


"Rick Rothstein (MVP - VB)" wrote:

I have a range of 5 cells. These cells can contain a blank, or a number
(the
numbers are 1,2,3,4 and 5). Numbers cannot repeat within the range
(i.e.
if
there is a 1 in a cell, the 1 cannot occur in any of the other 4
cells).

With the cursor in the first cell, how can I have Excel determine
whether
there is a 1 in any of the other 4 cells; then determine whether there
is
a 2
in any of the other 4 cells; then determine whether there is a 3, etc?
There
has to be some way, other than trying to write a super-complex IF
statement.
Do you have any ideas?


If you are simply looking to see if all the cells have been filled in
(here,
I am assuming you have procedures in place to make sure they are properly
filled in), SUM the range and see if they total 15.

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
Help - Does value exist in range of CLOSED workbook? c mateland Excel Worksheet Functions 9 April 16th 07 06:53 PM
Does specific value exist in a range coloradoprof Excel Worksheet Functions 3 November 25th 06 07:00 PM
range name does not exist scory Excel Discussion (Misc queries) 1 September 12th 06 01:17 PM
Getting #N/A from Vlookup when matching value exist in the lookup data range. jdeshpa Excel Worksheet Functions 2 November 22nd 05 09:12 PM
Assign one number to a number range Sue New Users to Excel 1 October 6th 05 01:21 AM


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