This page shows an example of a dynamic named range created with the INDEX function together with the COUNTA function. Dynamic named ranges automatically expand and contract when data is added or removed.
In the...

To sort a list or table in random order, you can use the SORTBY function with the RANDARRAY function. In the example shown, the formula in D5 is:
=SORTBY(data,RANDARRAY(COUNTA(data)))
where "data" is the named range...

To generate basic outline numbering you can use a formula based several Excel functions, including COUNTA, IF, MID, FIND, and LEN. In the example shown, the formula in D5 is:
=COUNTA($B$5:B5)&"."&IF(...

To count unique values with one or more conditions, you can use the COUNTA function together with UNIQUE and FILTER. In the example shown, the formula in H7 is:
=COUNTA(UNIQUE(FILTER(B6:B15,C6:C15=H6)))
which returns...

If you have a list of items, and need to count how many you have total, how many are sold, how remain, etc., you can use the COUNTA function. This can be useful if you are selling tickets, seats, entries, or anything...

To creating a running count of groups of a variable size, you can use the COUNTA and CEILING function. In the example shown, C5 contains this formula:
=CEILING(COUNTA($B$5:B5)/size,1)
where "size" is the named range...

To generate a count with a percentage breakdown, you can use the COUNTIF or COUNTIFS function, together with COUNTA.
In the example shown the formula in H4 is:
=COUNTIF(category,F4)/COUNTA(category)
How this formula...

To count unique values in a set of data, you can use the UNIQUE function together with the COUNTA function. In the example shown, the formula in F5 is:
=COUNTA(UNIQUE(B5:B16))
which returns 7, since there are seven...

To reverse a list (i.e. put the items in a list or column in reverse order) you can use a formula based on the INDEX, COUNTA, and ROW functions. In the example shown, the formula in D5, copied down, is:
=INDEX(list,...

If you want to test a cell to see if it contains all items in a list, you can do so with a formula that uses the SEARCH function, with help from the ISNUMBER, SUMPRODUCT, and COUNTA functions.
Context
Let's say you...

To score a quiz and count correct and incorrect answers based on an answer key, you can use a basic array formula. In the example shown, the formula in I7, copied down, is:
=SUM(--(C7:G7=key))
where "key" is the...

To count cells not equal to any of many things, you can use a formula based on the MATCH, ISNA, and SUMPRODUCT functions. In the example shown, the formula in cell F5 is:
=SUMPRODUCT(--(ISNA(MATCH(data,exclude,0))))...

To get the last relative position (i.e. last row, last column) for mixed data that contains no empty cells, you can use the COUNTA function.
In the example shown, the formula in D5 is:
=COUNTA(B4:B100)
Last *...

To count cells that are not blank in a range, you can use the COUNTA function. In the example shown, D5 contains this formula:
=COUNTA(B5:B9)
How this formula works
COUNTA is fully automatic. When given a range of...

One way to create a dynamic named range with a formula is to use the OFFSET function together with the COUNTA function. Dynamic ranges are also known as expanding ranges - they automatically expand and contract to...