Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Multiple Conditions within an IF Function

Hey everyone,

Just wondering if anyone knows if it is possible to have the following style
of formula with two conditions before the true/false part eg.

IF(H2<=365 and F20,F2,"")
IF(H2<=365 condition 1, F20 condition 2,F2,"")

What I am trying to do is have a function which tests for two different
conditions before returning a value. So far I have not had much luck.

If anyone knows the best way to do this your help would be greatly
appreciated.

Cheers

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Multiple Conditions within an IF Function

Try this:

IF(AND(H2<=365,F20),F2,"")

Both conditions must be TRUE for the contents of F2 to be displayed.
If either is FALSE, the cell containing this formula appears empty.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"will" wrote in message
...
Hey everyone,

Just wondering if anyone knows if it is possible to have the following
style
of formula with two conditions before the true/false part eg.

IF(H2<=365 and F20,F2,"")
IF(H2<=365 condition 1, F20 condition 2,F2,"")

What I am trying to do is have a function which tests for two different
conditions before returning a value. So far I have not had much luck.

If anyone knows the best way to do this your help would be greatly
appreciated.

Cheers


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Multiple Conditions within an IF Function


RagDyer wrote:
Try this:

IF(AND(H2<=365,F20),F2,"")
I think this is also covered in http://www.cpearson.com/excel.htm


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
Use IF function for two conditions wuwu Excel Worksheet Functions 3 April 29th 23 11:42 AM
Logiacl function with multiple conditions stellarblue11 Excel Worksheet Functions 4 May 25th 06 03:55 PM
COUNTIF - multiple conditions allphin Excel Worksheet Functions 4 September 18th 05 04:05 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Vlookup with multiple conditions cambrus Excel Worksheet Functions 1 March 11th 05 05:21 PM


All times are GMT +1. The time now is 11:35 AM.

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"