automatically detect the size of a number set?

Leighton Durham

New Member
Joined
Sep 8, 2020
Messages
28
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Platform
  1. Windows
Allow me to explain im trying to make an automatic matrix calculator where you can input any size of matrix and it will automatically detect it i currently am using a manual input for the size of the matrix but i want it to be automatic
1599624131710.png
dose anyone have any ideas of how i can detect the square size? this is the current layout
1599624348596.png
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
For matrix A, you could use

=MACTH(1e+100,B2:B11) and =MATCH(1e+100,B2:K2)

then apply similar to the other matrices. Note that this will show an error if the matrix is empty.
 
Upvote 0
For matrix A, you could use

=MACTH(1e+100,B2:B11) and =MATCH(1e+100,B2:K2)

then apply similar to the other matrices. Note that this will show an error if the matrix is empty.
how exactly dose this work? i dont exectly understand the MACTH function
 
Upvote 0
First formula goes in J13, second one in K13.
 
Upvote 0
You're welcome (y)

Are you able to edit that to fit the second matrix?
 
Upvote 0

Forum statistics

Threads
1,215,178
Messages
6,123,484
Members
449,100
Latest member
sktz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top