Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default IF statement (non nested) that compares cell value against range

Is it possible to write a non-nested IF statement that looks something like

IF(A2=10 AND A2<100,"10-100","") or IF(a2 is between 10 and 100,"10-100","")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF statement (non nested) that compares cell value against range

yes

"r2d3" a écrit dans le message de news:
...
Is it possible to write a non-nested IF statement that looks something
like

IF(A2=10 AND A2<100,"10-100","") or IF(a2 is between 10 and
100,"10-100","")



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default IF statement (non nested) that compares cell value against range

=if(and(A2=10, A2<100),"10-100","")

"r2d3" wrote:

Is it possible to write a non-nested IF statement that looks something like

IF(A2=10 AND A2<100,"10-100","") or IF(a2 is between 10 and 100,"10-100","")

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default IF statement (non nested) that compares cell value against ran

Thank you.

"Duke Carey" wrote:

=if(and(A2=10, A2<100),"10-100","")

"r2d3" wrote:

Is it possible to write a non-nested IF statement that looks something like

IF(A2=10 AND A2<100,"10-100","") or IF(a2 is between 10 and 100,"10-100","")

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF statement (non nested) that compares cell value against range


You are close in your attempt. Try this:

=IF(AND(A2=10,A2<=100),"10-100","")

Good Luck

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=567952



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
Need help with an embedded IF statement Lari Excel Worksheet Functions 8 June 17th 06 04:59 PM
Cell Reference with Range Name SCSC Excel Worksheet Functions 2 March 23rd 06 11:32 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Reveal cell formats and extendable range in tool/statusbar/icon. Danny O'Hern ([email protected]) Excel Worksheet Functions 0 April 29th 05 01:16 PM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM


All times are GMT +1. The time now is 07:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"