#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Nesting Functions

I'm trying to combine AND, OR, and IF for the first time, and I'm getting
lost in the parentheses.

Here's the broader formula I'm trying to fill in:
=IF(AND(Fleet,Date Completed),1,0)

where Fleet needs to be filled in with:
OR($D8="HOS WH",$D8="HOS ENG")

and Date Completed needs to be filled in with:
AND($I8=40179,$I8<=40209)

I've tested the formulas for Fleet and Date Completed as their own logical
statements, and they both work. I can't get them combined in the larger
formula, though.

Any assistance would be appreciated!

Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Nesting Functions

=IF(AND(OR($D8="HOS WH",$D8="HOS ENG"),
AND($I8=40179,$I8<=40209)),1,0)

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Deanna" wrote:

I'm trying to combine AND, OR, and IF for the first time, and I'm getting
lost in the parentheses.

Here's the broader formula I'm trying to fill in:
=IF(AND(Fleet,Date Completed),1,0)

where Fleet needs to be filled in with:
OR($D8="HOS WH",$D8="HOS ENG")

and Date Completed needs to be filled in with:
AND($I8=40179,$I8<=40209)

I've tested the formulas for Fleet and Date Completed as their own logical
statements, and they both work. I can't get them combined in the larger
formula, though.

Any assistance would be appreciated!

Thanks...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Nesting Functions

Ok, so when you put it that way!!! Thanks, I was making it way more
complicated than it needed to be...

"Luke M" wrote:

=IF(AND(OR($D8="HOS WH",$D8="HOS ENG"),
AND($I8=40179,$I8<=40209)),1,0)

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Deanna" wrote:

I'm trying to combine AND, OR, and IF for the first time, and I'm getting
lost in the parentheses.

Here's the broader formula I'm trying to fill in:
=IF(AND(Fleet,Date Completed),1,0)

where Fleet needs to be filled in with:
OR($D8="HOS WH",$D8="HOS ENG")

and Date Completed needs to be filled in with:
AND($I8=40179,$I8<=40209)

I've tested the formulas for Fleet and Date Completed as their own logical
statements, and they both work. I can't get them combined in the larger
formula, though.

Any assistance would be appreciated!

Thanks...

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Nesting Functions

You forgot to tell us what you tried as the combined formula, and in what
way it didn't work.

Presumably =IF(AND(OR($D8="HOS WH",$D8="HOS
ENG"),AND($I8=40179,$I8<=40209)),1,0)
or just
=--AND(OR($D8="HOS WH",$D8="HOS ENG"),AND($I8=40179,$I8<=40209)) ?
--
David Biddulph

Deanna wrote:
I'm trying to combine AND, OR, and IF for the first time, and I'm
getting lost in the parentheses.

Here's the broader formula I'm trying to fill in:
=IF(AND(Fleet,Date Completed),1,0)

where Fleet needs to be filled in with:
OR($D8="HOS WH",$D8="HOS ENG")

and Date Completed needs to be filled in with:
AND($I8=40179,$I8<=40209)

I've tested the formulas for Fleet and Date Completed as their own
logical statements, and they both work. I can't get them combined in
the larger formula, though.

Any assistance would be appreciated!

Thanks...



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
Nesting Functions Nadine Excel Worksheet Functions 4 March 16th 09 02:25 PM
Nesting if Functions don New Users to Excel 4 October 21st 05 05:42 PM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM
nesting functions Rainy Excel Worksheet Functions 1 June 1st 05 04:22 AM
Nesting Functions LostNFound Excel Worksheet Functions 4 March 3rd 05 09:59 PM


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