Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
saziz
 
Posts: n/a
Default If(and spread sheet syntax


Hello All,
I am trying to test a range of values in a cell:

if(and("a1" is 0 to 10, "Jack"), if("a1" is 10001 to 11000, "Jim),
if("a1" is 11000 to 12000, "Joe')

Can anyone give me the correct systax or any other way to test this?
Thank you
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=475212

  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Better to invoke a LOOKUP formula, something like:

=LOOKUP(A1,{0,2.229E-308,11,10001,11000},{"","Jack","","Jim","Joe"})

saziz wrote:
Hello All,
I am trying to test a range of values in a cell:

if(and("a1" is 0 to 10, "Jack"), if("a1" is 10001 to 11000, "Jim),
if("a1" is 11000 to 12000, "Joe')

Can anyone give me the correct systax or any other way to test this?
Thank you
Syed


  #3   Report Post  
RagDyer
 
Posts: n/a
Default

One way:

=IF(AND(A1=0,A1<=10),"Jack",IF(AND(A1=10001,A1<= 11000),"Jim",IF(AND(A1=11
001,A1<=12000),"Joe","No Match")))
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"saziz" wrote in
message ...

Hello All,
I am trying to test a range of values in a cell:

if(and("a1" is 0 to 10, "Jack"), if("a1" is 10001 to 11000, "Jim),
if("a1" is 11000 to 12000, "Joe')

Can anyone give me the correct systax or any other way to test this?
Thank you
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile:

http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=475212


  #4   Report Post  
saziz
 
Posts: n/a
Default


Thank you Aladin & RD.
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=475212

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
Index/Contents Sheet philiphales Excel Discussion (Misc queries) 2 September 9th 05 08:58 AM
In Excel, how do you make one whole sheet equal to another. ryan Excel Discussion (Misc queries) 2 August 31st 05 07:03 PM
Clicking Cell Link Changes Cell on Another Sheet nshah Excel Discussion (Misc queries) 1 August 31st 05 01:50 AM
Get other sheet names into a column Keyser Excel Worksheet Functions 2 August 27th 05 02:02 AM
Using a relative SHEET reference for source data in a chart James Charts and Charting in Excel 6 August 16th 05 05:07 PM


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