Test if CELL is in RANGE
The "space" is just one of the 3 "reference operators", along with "," and ":".
It is the "Intersection operator".
It is not used much by most Excel users.
Just take a look in Excel's help for "calculation operators"...
;-]
--
Regards,
Luc.
"Festina Lente"
"Roger Govier" wrote:
Hi Luc
That is indeed a very slick answer, as Biff has stated, and works
perfectly with a test I have just run.
However, I am unfamiliar with the construct
(range INDIRECT(A1))
Could you enlighten me more on this aspect please?
--
Regards
Roger Govier
"PapaDos" wrote in message
...
=NOT( ISERR( range INDIRECT( A1 ) ) )
--
Regards,
Luc.
"Festina Lente"
"Biff" wrote:
Kind of long but here it is in one formula:
A1 = cell address to check
=AND(COLUMN(INDIRECT(A1))=COLUMN(range),COLUMN(IN DIRECT(A1))<=COLUMN(range)+COLUMNS(range)-1,ROW(INDIRECT(A1))=ROW(range),ROW(INDIRECT(A1))< =ROW(range)+ROWS(range)-1)
Biff
"Vaughan" wrote in message
...
Is it possible to test if a given cell falls within a range (or
more
specifically if it falls within the 'print_area' named range)?
|