Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Logic If formula - multi-parameters can not get to work??

techexpressinc (Programmer) Apr 10, 2009
I can not get the if formula to work for checking multiple cells.

I have it working with one cell but I need it to working check two cells.

I am checking for the value less than 5 in multiple cells and if it is put a
one in the output cell for a counter.

It works for one cell checking.
=IF(AC2<6,1,0) This works.

Below this does not work:
I need to check multiple cells thou I tried below and it fails??
=IF(((AC2<6) or (AD2<6)),1,0)

Any good ideas on how to adjust it?
Thanks Russ at Scaninc.org

--

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Logic If formula - multi-parameters can not get to work??

Any good ideas on how to adjust it?
Yes, read up on the OR function.

Try this:
=IF(or(AC2<6,AD2<6),1,0)

Regards,
Fred


"Tech Express" wrote in message
...
techexpressinc (Programmer) Apr 10, 2009
I can not get the if formula to work for checking multiple cells.

I have it working with one cell but I need it to working check two cells.

I am checking for the value less than 5 in multiple cells and if it is put
a
one in the output cell for a counter.

It works for one cell checking.
=IF(AC2<6,1,0) This works.

Below this does not work:
I need to check multiple cells thou I tried below and it fails??
=IF(((AC2<6) or (AD2<6)),1,0)

Any good ideas on how to adjust it?
Thanks Russ at Scaninc.org

--



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Logic If formula - multi-parameters can not get to work??

You need to use OR as a function:

=IF(OR((AC2<6), (AD2<6)),1,0)

--
Gary''s Student - gsnu200845


"Tech Express" wrote:

techexpressinc (Programmer) Apr 10, 2009
I can not get the if formula to work for checking multiple cells.

I have it working with one cell but I need it to working check two cells.

I am checking for the value less than 5 in multiple cells and if it is put a
one in the output cell for a counter.

It works for one cell checking.
=IF(AC2<6,1,0) This works.

Below this does not work:
I need to check multiple cells thou I tried below and it fails??
=IF(((AC2<6) or (AD2<6)),1,0)

Any good ideas on how to adjust it?
Thanks Russ at Scaninc.org

--

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Logic If formula - multi-parameters can not get to work??

It Work! Thanks.
--
Russ at scaninc.org


"Fred Smith" wrote:

Any good ideas on how to adjust it?

Yes, read up on the OR function.

Try this:
=IF(or(AC2<6,AD2<6),1,0)

Regards,
Fred


"Tech Express" wrote in message
...
techexpressinc (Programmer) Apr 10, 2009
I can not get the if formula to work for checking multiple cells.

I have it working with one cell but I need it to working check two cells.

I am checking for the value less than 5 in multiple cells and if it is put
a
one in the output cell for a counter.

It works for one cell checking.
=IF(AC2<6,1,0) This works.

Below this does not work:
I need to check multiple cells thou I tried below and it fails??
=IF(((AC2<6) or (AD2<6)),1,0)

Any good ideas on how to adjust it?
Thanks Russ at Scaninc.org

--




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 logic formula rwfster New Users to Excel 2 February 25th 09 12:04 AM
Logic Formula Truc Lopez Excel Worksheet Functions 6 January 4th 07 05:16 PM
multi pages in work book jason2444 Excel Discussion (Misc queries) 2 September 19th 06 01:44 PM
Cannot get Wildcards in Parameters to work in MS Query/Excel2003 Jan K Excel Discussion (Misc queries) 3 February 17th 06 06:00 PM
Viewing Multi-worksheets in same work-book allieh Excel Worksheet Functions 3 February 16th 06 12:22 PM


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