Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
James T
 
Posts: n/a
Default OR Function with more than 30 arguements

Hi all,

The following is the function that I currently have:

=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M14 3<0,M146<0,M147<0,M150<0,M151<0,M154<0,M155< 0,M158<0,M159<0,M162<0,M163<0,M166<0,M167<0 ,M170<0,M171<0,M174<0,M175<0,M178<0,M179<0), 1,0)

However I would like the function to be able to cover more than 30 OR
arguements, for example:

'=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M1 43<0,M146<0,M147<0,M150<0,M151<0,M154<0,M155 <0,M158<0,M159<0,M162<0,M163<0,M166<0,M167< 0,M170<0,M171<0,M174<0,M175<0,M178<0,M179<0, H134<0,H135<0,H138<0,H139<0,H142<0,H143<0,H1 46<0,H147<0,H150<0,H151<0,H154<0,H155<0,H158 <0,H159<0,H162<0,H163<0,H166<0,H167<0,H170< 0,H171<0,H174<0,H175<0,H178<0,H179<0),1,0)

Any ideas on how I could achieve this??

Thanks in advance.

Regards

James
  #2   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default OR Function with more than 30 arguements

Try...

=(SUMPRODUCT(--ISNUMBER(MATCH(MOD(ROW(H134:H179)-ROW(H134),4),{0,1},0)),(
H134:H179<0)+(M134:M179<0))0)+0

Hope this helps!

In article ,
James T wrote:

Hi all,

The following is the function that I currently have:

=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M14 3<0,M146<0,M147<0,M150<0
,M151<0,M154<0,M155<0,M158<0,M159<0,M162<0,M 163<0,M166<0,M167<0,M170<
0,M171<0,M174<0,M175<0,M178<0,M179<0),1,0)


However I would like the function to be able to cover more than 30 OR
arguements, for example:

'=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M1 43<0,M146<0,M147<0,M150<
0,M151<0,M154<0,M155<0,M158<0,M159<0,M162<0, M163<0,M166<0,M167<0,M170
<0,M171<0,M174<0,M175<0,M178<0,M179<0,H134< 0,H135<0,H138<0,H139<0,H1
42<0,H143<0,H146<0,H147<0,H150<0,H151<0,H154 <0,H155<0,H158<0,H159<0,
H162<0,H163<0,H166<0,H167<0,H170<0,H171<0,H1 74<0,H175<0,H178<0,H179<
0),1,0)

Any ideas on how I could achieve this??

Thanks in advance.

Regards

James

  #3   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default OR Function with more than 30 arguements

One way

=SUMPRODUCT(--(ROUND(MOD(ROW(M134:M500),4)/3,0)=1),--(M134:M500<0))

you can extend that as much as you want as long as you are using the same
patter with 2 pairs of cells checked, 2 not checked, 2 checked and so on


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"James T" wrote in message
...
Hi all,

The following is the function that I currently have:

=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M14 3<0,M146<0,M147<0,M150<0,M151<0,M154<0,M155< 0,M158<0,M159<0,M162<0,M163<0,M166<0,M167<0 ,M170<0,M171<0,M174<0,M175<0,M178<0,M179<0), 1,0)

However I would like the function to be able to cover more than 30 OR
arguements, for example:

'=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M1 43<0,M146<0,M147<0,M150<0,M151<0,M154<0,M155 <0,M158<0,M159<0,M162<0,M163<0,M166<0,M167< 0,M170<0,M171<0,M174<0,M175<0,M178<0,M179<0, H134<0,H135<0,H138<0,H139<0,H142<0,H143<0,H1 46<0,H147<0,H150<0,H151<0,H154<0,H155<0,H158 <0,H159<0,H162<0,H163<0,H166<0,H167<0,H170< 0,H171<0,H174<0,H175<0,H178<0,H179<0),1,0)

Any ideas on how I could achieve this??

Thanks in advance.

Regards

James



  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default OR Function with more than 30 arguements

The following is the function that I currently have:

=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M14 3<0,M146<0,M147<0,M150<0,M151<0,M154<0,M155< 0,M158<0,M159<0,M162<0,M163<0,M166<0,M167<0 ,M170<0,M171<0,M174<0,M175<0,M178<0,M179<0), 1,0)

However I would like the function to be able to cover more than 30 OR
arguements, for example:

'=IF(OR(M134<0,M135<0,M138<0,M139<0,M142<0,M1 43<0,M146<0,M147<0,M150<0,M151<0,M154<0,M155 <0,M158<0,M159<0,M162<0,M163<0,M166<0,M167< 0,M170<0,M171<0,M174<0,M175<0,M178<0,M179<0, H134<0,H135<0,H138<0,H139<0,H142<0,H143<0,H1 46<0,H147<0,H150<0,H151<0,H154<0,H155<0,H158 <0,H159<0,H162<0,H163<0,H166<0,H167<0,H170< 0,H171<0,H174<0,H175<0,H178<0,H179<0),1,0)

Any ideas on how I could achieve this??


So if any of those cells are not equal to zero, you want a 1? And 0 if
none are not equal to zero? Why don't you just use:
=SUM(IF(M134:M179<0,1,0))

  #5   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default OR Function with more than 30 arguements

Interesting how you've used ROUND instead ISNUMBER/MATCH. Nice one, Peo!

In article ,
"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(ROUND(MOD(ROW(M134:M500),4)/3,0)=1),--(M134:M500<0))

you can extend that as much as you want as long as you are using the same
patter with 2 pairs of cells checked, 2 not checked, 2 checked and so on


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com

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 Function - Multiple Arguements? andyp161 Excel Worksheet Functions 4 February 1st 06 10:18 AM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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