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 Function question.

Is it possible to make an IF function's logical test be whether a number is
less than or equal a certain number, but ALSO greater than a certain number?

E.g. =IF(p3<=q3t3,"value if true","value if false")

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default IF Function question.

Look in the help index for AND

=if(and(p3t3,p3<=q3),1,2)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Excel beginner" <Excel
wrote in message
...
Is it possible to make an IF function's logical test be whether a number
is
less than or equal a certain number, but ALSO greater than a certain
number?

E.g. =IF(p3<=q3t3,"value if true","value if false")


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default IF Function question.

Look in the help index for AND

=if(and(p3t3,p3<=q3),1,2)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Excel beginner" <Excel
wrote in message
...
Is it possible to make an IF function's logical test be whether a number
is
less than or equal a certain number, but ALSO greater than a certain
number?

E.g. =IF(p3<=q3t3,"value if true","value if false")


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF Function question.

Try this:

=IF(AND(P3<=Q3,P3T3),value if true,value if false)

--
Biff
Microsoft Excel MVP


"Excel beginner" <Excel wrote in message
...
Is it possible to make an IF function's logical test be whether a number
is
less than or equal a certain number, but ALSO greater than a certain
number?

E.g. =IF(p3<=q3t3,"value if true","value if false")



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF Function question.

Try this:

=IF(AND(P3<=Q3,P3T3),value if true,value if false)

--
Biff
Microsoft Excel MVP


"Excel beginner" <Excel wrote in message
...
Is it possible to make an IF function's logical test be whether a number
is
less than or equal a certain number, but ALSO greater than a certain
number?

E.g. =IF(p3<=q3t3,"value if true","value if false")





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Function question.

Awesome, thanks! Would I do the same for a nested IF function?

=IF(AND(P3<=Q3,P3T3),"value if true",IF(AND(P3<=R3,P3Q3,"value if true",etc.

Try this:

=IF(AND(P3<=Q3,P3T3),value if true,value if false)

--
Biff
Microsoft Excel MVP


"Excel beginner" <Excel wrote in message
...
Is it possible to make an IF function's logical test be whether a number
is
less than or equal a certain number, but ALSO greater than a certain
number?

E.g. =IF(p3<=q3t3,"value if true","value if false")




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default IF Function question.

On Aug 9, 5:48 am, Excel beginner
wrote:
Awesome, thanks! Would I do the same for a nested IF function?

=IF(AND(P3<=Q3,P3T3),"value if true",IF(AND(P3<=R3,P3Q3,
"value if true",etc.


You could; but in Excel 2003 and earlier, there is a limit of 7 nested
function calls (8, if you count the outer-most function).

If "value if true" is the same value for both conditions, you could do
something like:

=if(or(and(P3<=Q3,P3T3), and(P3<=R3,P3Q3)), "value if true", "value
if false")

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
If Function Question Schwimms Excel Discussion (Misc queries) 7 July 31st 07 06:36 PM
NOW function question George Applegate Excel Worksheet Functions 6 May 20th 06 05:39 PM
Function Question Rubix Excel Worksheet Functions 5 February 7th 06 01:55 AM
Function question Jock W Excel Worksheet Functions 2 April 6th 05 01:39 PM
Function question Dale Rosenthal Excel Worksheet Functions 4 January 25th 05 03:47 AM


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