View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein Rick Rothstein is offline
external usenet poster
 
Posts: 5,934
Default Is there a better way?

Two questions...

1. Are the two values making up a single zone in the same cell or in two
different cells?

2. You need to tell us what is supposed to happen with numbers like 1416
which fall on the boundary of two adjacent zones (that is, which zone does
it belong to)?

It would help us if you told us the columns making up each zone so we can
see how to address your numbers.

--
Rick Rothstein (MVP - Excel)


"Ymtrader" wrote in message
...
The only way I know how to do this is with a really ugly nested IF
statement. Is there a better way?

I have 8 "zones" of numbers and I need to determine which zone this
number fits into.

zn1 zn2 zn3
zn4 zn5 zn6 zn7
zn8
1410 1416 1416 1421 1421 1423 1423 1436 1436 1437 1437
1439 1439 1445 1445 1450

If I need to know what zone number 1422 fits into I can only to think
of a nested IF statement:

IF(P2G2,IF(P2<H2,"ZN3").......................... .................................................. ......................................)

I am thinking there must be an easier more efficient way. Any ideas?
Thanks!