#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default and/if statement

I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.

--
Thanks, Pat
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default and/if statement

Try it like this:

=IF(AND((E5-D5)*246,$AO5="Y"),............)

--
Biff
Microsoft Excel MVP


"Pat" .(donotspam) wrote in message
...
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.

--
Thanks, Pat



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default and/if statement

Pat wrote:
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.


In general:

=IF(AND(first_test),(second_test)),both_tests_true ,either_test_false)
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default and/if statement

Glenn wrote:
Pat wrote:
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.


In general:

=IF(AND(first_test),(second_test)),both_tests_true ,either_test_false)



Actually, I missed a "("...


=IF(AND((first_test),(second_test)),both_tests_tru e,either_test_false)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default and/if statement

this is what I am trying, however still receiving and error. ;(

=IF(AND(E5-D5)*24)6,($AO5="Y")),1,0)

First test: (E5-D5)*24)6
Second test: ,($AO5="Y")

--
Thanks, Pat


"Glenn" wrote:

Pat wrote:
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.


In general:

=IF(AND(first_test),(second_test)),both_tests_true ,either_test_false)



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default and/if statement

Sorry . . . I just got it to work with:
=IF(AND((E5-D5)*246,$AO5="Y"),1,0)

THANK YOU BOTH so much!!

--
Thanks, Pat


"T. Valko" wrote:

Try it like this:

=IF(AND((E5-D5)*246,$AO5="Y"),............)

--
Biff
Microsoft Excel MVP


"Pat" .(donotspam) wrote in message
...
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.

--
Thanks, Pat




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default and/if statement

Try it like this:

=--AND((E5-D5)*246,$AO5="Y")

Enter the formula *exactly* as shown. Don't add or remove any ( ).

--
Biff
Microsoft Excel MVP


"Pat" .(donotspam) wrote in message
...
this is what I am trying, however still receiving and error. ;(

=IF(AND(E5-D5)*24)6,($AO5="Y")),1,0)

First test: (E5-D5)*24)6
Second test: ,($AO5="Y")

--
Thanks, Pat


"Glenn" wrote:

Pat wrote:
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.


In general:

=IF(AND(first_test),(second_test)),both_tests_true ,either_test_false)



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default and/if statement

See my other reply for a better solution.

--
Biff
Microsoft Excel MVP


"Pat" .(donotspam) wrote in message
...
Sorry . . . I just got it to work with:
=IF(AND((E5-D5)*246,$AO5="Y"),1,0)

THANK YOU BOTH so much!!

--
Thanks, Pat


"T. Valko" wrote:

Try it like this:

=IF(AND((E5-D5)*246,$AO5="Y"),............)

--
Biff
Microsoft Excel MVP


"Pat" .(donotspam) wrote in message
...
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.

--
Thanks, Pat






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default and/if statement

You need to learn to count parentheses, opening and closing.
Look at (E5-D5)*24)6
--
David Biddulph

"Pat" .(donotspam) wrote in message
...
this is what I am trying, however still receiving and error. ;(

=IF(AND(E5-D5)*24)6,($AO5="Y")),1,0)

First test: (E5-D5)*24)6
Second test: ,($AO5="Y")

--
Thanks, Pat


"Glenn" wrote:

Pat wrote:
I'm trying to write an and/if statement - if possible

IF(((E5-D5)*24)6 AND IF($AO5="Y") then +1

but I can't seem to be entering it correctly. Any suggestions please.


In general:

=IF(AND(first_test),(second_test)),both_tests_true ,either_test_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
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 06:15 AM.

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"