SMALL function and LARGE function

Related posts:

IF function explained

Create a unique distinct list and sort by occurrances from large to small

ROW function explained

Index function explained

COUNTIFS function


Blog updates by email:

Delivered by FeedBurner

 

6 Responses to “SMALL function and LARGE function”

  1. Debraj Roy says:

    Hi Oscar,

    I am in love with.. your formula explanation.. :)
    Waiting eagerly for MMULT & some D-Functions..

    Regards,
    Deb

    • Oscar says:

      Debraj Roy,

      Thank you!

      I am curious, in what situation do you use MMULT?

      • Debraj Roy says:

        Hi Oscar,

        We can use MMULT in all cases where SUMPRODUCT fails..
        with only Two Criteria..
        * Only TWO Array can be multiplied..
        * 1st Array's No Of Row.. Should be Same as 2nd Array's No Of Column..

        Unlike SUMPRODUCT, It returns ARRAY output..

        I think, Binary Addition & Binary Multiplication are the base of all FORMULA's & FUNCTION..
        and you are doing a great job, by teaching/using them in your daily blog..

        Regards!
        Deb

      • Oscar says:

        Debraj Roy,

        Well, I am learning from you right now.
        Can you provide an example where SUMPRODUCT fails and MMULT succeeds?

        I searched and found my old mathematics books from college, I had forgotten the basics of multiplying two matrices. :-)

  2. sam says:

    It is worthwhile mentioning that in both Small and Large K could also be an array

    So if A1:A10 contains random numbers the below formulas

    =Large(A1:A10,{1,2,3}) - Return an array containing the top 3 numbers

    =SUM(Large(A1:A10,{1,2,3}) -Array entered Returns the Sum of the top 3 numbers

    =SUM(LARGE(A1:A10,ROW(INDIRECT("1:"&TopN))))- Array Entered Returns the sum of the Top N numbers as defined in the Cell/Named Constant TopN

    =Large(A1:A10,Row(A1:A10))- Array entered returns an array of numbers in A1:A10 in Descending order

    Likewise Small

    • Oscar says:

      sam,

      It is worthwhile mentioning that in both Small and Large K could also be an array

      Yes you are right! Thanks for pointing that out.

Leave a Reply

How to add vba code to your comment:
[vb 1="vbnet" language=","]
your code
[/vb]

How to add a picture to your comment:
Upload picture to postimage.org
Add picture link to comment.

Copy/Rename a file (excel vba)

Related posts:

Copy excel table filter criteria (vba)

Copy table design settings

Copy selected rows (checkboxes) (2/2)

Copy each sheet in active workbook to new workbooks


Blog updates by email:

Delivered by FeedBurner

 

2 Responses to “Copy/Rename a file (excel vba)”

  1. Ankit says:

    It was so easy to understand. I believe we can do the same by using FilesystemObject.

Leave a Reply

How to add vba code to your comment:
[vb 1="vbnet" language=","]
your code
[/vb]

How to add a picture to your comment:
Upload picture to postimage.org
Add picture link to comment.

Assign each person with randomly unique objects as a daily activity

Related posts:

Random row from a boolean matrix in excel

Sort a list in random order in excel

Select 6 unique and random numbers from 1 to 49 (Lottery) in excel

How to create a list of random unique numbers in excel

Create random dates, Mon to Fri, within a year in excel


Blog updates by email:

Delivered by FeedBurner

 

2 Responses to “Assign each person with randomly unique objects as a daily activity”

  1. Chris G says:

    Hi Oscar,

    I am trying to do design a random selector similar to this one, the only difference being that the formula I am using selects a random value from a table array using Vlookup.

    So far I have a formula of
    =VLOOKUP(RANDBETWEEN(1,COUNT($C:$C)),$C$1:$D$10,2,FALSE)

    This is cells A1 - A10, there is a numerical place value (and assists with the max value for the randbetween part) in column C, and in column D are the matches. This makes it easy for me to expand/reduce the range quickly and works reasonably well. However, how can I add a condition to make it return a unique value instead of just any, (so that all ten values are alloted) whilst keeping the ease of expansion as the number of matches and returns may differ considerably, but is always at least a 1:1 ratio.

    Thanks,

    Chris

    • Oscar says:

      Chris G,

      Array formula in cell B2:

      =INDEX(Table1[Values], LARGE((COUNTIF($B$1:B1, Table1[Values])=0)*MATCH(ROW(Table1[Values]), ROW(Table1[Values])), RANDBETWEEN(1, COUNTA(Table1[Values])-ROW(A1)+1)))

      Download excel *.xlsx file
      Random-unique-values.xlsx

Leave a Reply

How to add vba code to your comment:
[vb 1="vbnet" language=","]
your code
[/vb]

How to add a picture to your comment:
Upload picture to postimage.org
Add picture link to comment.

ROW function explained

Related posts:

Index function explained

IF function explained

Match function

Explaining OFFSET function

COUNTIFS function


Blog updates by email:

Delivered by FeedBurner

 

Leave a Reply

How to add vba code to your comment:
[vb 1="vbnet" language=","]
your code
[/vb]

How to add a picture to your comment:
Upload picture to postimage.org
Add picture link to comment.

Highlight duplicates in a filtered excel defined table

Related posts:

Highlight the second or more duplicates in two lists using conditional formatting in excel

Highlight duplicates using conditional formatting in excel

Highlight duplicates where adjacent cell value meets criteria using conditional formatting in excel

Count unique distinct values in a filtered table

Highlight duplicates where an adjacent column is in a date interval using conditional formatting in excel


Blog updates by email:

Delivered by FeedBurner

 

Leave a Reply

How to add vba code to your comment:
[vb 1="vbnet" language=","]
your code
[/vb]

How to add a picture to your comment:
Upload picture to postimage.org
Add picture link to comment.