• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Mmult with reference

bines53

Active Member
Hello friends,

Is there a way to the < or > sign ,with reference.

=MMULT(--(B10:D15>C10:E15),{1;1;1}) It's OK.

In cell D1 appears > ,and I want to do MMULT(--(B10:D15"&D1&"C10:E15),{1;1;1}).

I checked several ways, without success.


Thank you !

David
 
Untested, but try this:

=MMULT(--(INDIRECT("B10:D15"&D1&"C10:E15")),{1;1;1})
 
Hi bines53,,

Your expected result is a 1x6 array : ={2;2;3;3;3;3}

upload_2018-6-3_12-52-39.png

Maybe…..

1] Goto >> "Data" >> "Define name" >>

>> "Name" : Test

>> "Refer to" : =MMULT(--(EVALUATE("OFFSET($B$10,,,6,3)"&$D$1&"OFFSET($B$10,,1,6,3)")),{1;1;1})

2] In H14, enter :

=Test

3] See attached file

p.s. : EVALUATE is a Excel 4 Macro function, so the file need to save as xlsm

Regards
Bosco
 

Attachments

  • Mmult with reference(1).xlsm
    10.7 KB · Views: 2
Last edited:
A less advanced approach would be to use the operator reference to choose the operation carried out within an expression, rather than use it directly
= N( IF( operator=">", previous>value, previous<value ) )
This could either be a named formula 'testArray' or could be built directly into the final worksheet formula
= MMULT( test_array, {1;1;1} )
= MMULT( N( IF( operator=">", previous>value, previous<value ) ), {1;1;1} )
 
Back
Top