#1   Report Post  
Brian
 
Posts: n/a
Default simple formula

I am having trouble with "and" , "or" in my formulas.

If I want one of c1:c4 to be true is this the formula to use
=if((c1:c4)d1),g1,"") or should I use =if(or(c1:c4)d1),g1,""). Neither one
of these formulas seems to work. In other words, I am trying to write a
shorter formula for the following:

=if(c1d1 or c2d1 or c3d1 or c4d1, G1,"")

Thanks for help with this simple formula.
  #2   Report Post  
Biff
 
Posts: n/a
Default

Try one of these:

normally entered:

=IF(OR(C1D1,C2D1,C3D1,C4D1),G1,"")

array entered with the key combo of CTRL,SHIFT,ENTER:

=IF(OR(C1:C4D1),G1,"")

Biff

"Brian" wrote in message
...
I am having trouble with "and" , "or" in my formulas.

If I want one of c1:c4 to be true is this the formula to use
=if((c1:c4)d1),g1,"") or should I use =if(or(c1:c4)d1),g1,""). Neither
one
of these formulas seems to work. In other words, I am trying to write a
shorter formula for the following:

=if(c1d1 or c2d1 or c3d1 or c4d1, G1,"")

Thanks for help with this simple formula.



  #3   Report Post  
mangesh_yadav
 
Posts: n/a
Default


=IF(SUMPRODUCT(--(C1:C4D1))0,G1,"")

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=379588

  #4   Report Post  
paul
 
Posts: n/a
Default

and will return true if all arguements are true,or will return true if only
one argument is true
--
paul
remove nospam for email addy!



"Brian" wrote:

I am having trouble with "and" , "or" in my formulas.

If I want one of c1:c4 to be true is this the formula to use
=if((c1:c4)d1),g1,"") or should I use =if(or(c1:c4)d1),g1,""). Neither one
of these formulas seems to work. In other words, I am trying to write a
shorter formula for the following:

=if(c1d1 or c2d1 or c3d1 or c4d1, G1,"")

Thanks for help with this simple formula.

  #5   Report Post  
Duke Carey
 
Posts: n/a
Default

Try

=if(or(c1:c4)d1,g1,"")

but commit the formula by pressing Ctrl-Shift-Enter to make it an array
formula



"Brian" wrote:

I am having trouble with "and" , "or" in my formulas.

If I want one of c1:c4 to be true is this the formula to use
=if((c1:c4)d1),g1,"") or should I use =if(or(c1:c4)d1),g1,""). Neither one
of these formulas seems to work. In other words, I am trying to write a
shorter formula for the following:

=if(c1d1 or c2d1 or c3d1 or c4d1, G1,"")

Thanks for help with this simple formula.



  #6   Report Post  
bj
 
Posts: n/a
Default

try
=if(or(C1D1,C2D1,C3D1,C5D1),G1,"")
or
=if(max(C1:C4)D1,G1,"")

"Brian" wrote:

I am having trouble with "and" , "or" in my formulas.

If I want one of c1:c4 to be true is this the formula to use
=if((c1:c4)d1),g1,"") or should I use =if(or(c1:c4)d1),g1,""). Neither one
of these formulas seems to work. In other words, I am trying to write a
shorter formula for the following:

=if(c1d1 or c2d1 or c3d1 or c4d1, G1,"")

Thanks for help with this simple formula.

  #7   Report Post  
bj
 
Posts: n/a
Default

This may be a second response but
try
=if(or(C1D1,C2D1,C3D1,C4D1),G1,"")
or
=if(max(C1:C4)D1,G1,"")


"Brian" wrote:

I am having trouble with "and" , "or" in my formulas.

If I want one of c1:c4 to be true is this the formula to use
=if((c1:c4)d1),g1,"") or should I use =if(or(c1:c4)d1),g1,""). Neither one
of these formulas seems to work. In other words, I am trying to write a
shorter formula for the following:

=if(c1d1 or c2d1 or c3d1 or c4d1, G1,"")

Thanks for help with this simple formula.

  #8   Report Post  
Greg Neill
 
Posts: n/a
Default

"Brian" wrote in message
...
I am having trouble with "and" , "or" in my formulas.

If I want one of c1:c4 to be true is this the formula to use
=if((c1:c4)d1),g1,"") or should I use =if(or(c1:c4)d1),g1,""). Neither
one
of these formulas seems to work. In other words, I am trying to write a
shorter formula for the following:

=if(c1d1 or c2d1 or c3d1 or c4d1, G1,"")

Thanks for help with this simple formula.


How about

=if (MAX(c1:c4)d1,g1,"")


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
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM
Excel Miscalculates simple formula..Help!! Dave Excel Worksheet Functions 1 January 12th 05 03:30 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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