0:00
hi and welcome to my channel in this
0:02
video we'll explore excel's spill range
0:04
feature I'll cover the basics and real
0:07
world uses of dynamic array formulas
0:09
let's dive in a spill range is a dynamic
0:12
set of values returned by a formula that
0:14
can automatically expand or contract to
0:17
fit adjacent cells for example in the
0:20
video I entered a formula into cell E3
0:22
that returns a range of values spanning
0:24
two columns and five rows which spills
0:27
over from E3 to F7 this illustrates a
0:30
basic use of a dynamic array formula
0:32
where the values automatically fill the
0:34
necessary cells to display the entire
0:37
range of results you cannot modify or
0:39
delete values within a spilled range to
0:42
make changes you must adjust the
0:43
original formula that generates The
0:45
Spill now spill ranges don't always
0:48
behave perfectly if there's an obstacle
0:50
into cells where the range wants to
0:51
spill Excel will show a spill error
0:55
here's an example if we put some text in
0:57
a cell that the formula needs like this
0:59
the formul will throw the spill error to
1:01
fix this you need to clear the
1:03
obstructing cells once the range has
1:05
space it will spill as intended some
1:08
Excel functions like unique sort filter
1:11
and sequence work perfectly with spill
1:13
ranges the sequence function generates a
1:16
list of sequential numbers in an array
1:18
for example this formula creates a 5x3
1:21
grid of numbers and notice how the
1:23
result automatically spills into the
1:25
surrounding cells you only enter the
1:27
formula once but Excel takes care of
1:30
filling all the required cells as
1:32
mentioned earlier Excel displays a spill
1:34
error if there are obstacles in the
1:36
cells where the range needs to spill
1:38
once those cells are clear the range
1:41
will spill correctly next let's discuss
1:44
the sort function which arranges the
1:45
contents of a range or array this
1:48
function returns a dynamic array that
1:50
spills into adjacent cells for example
1:53
the formula shown on the screen sorts
1:55
the range A2 to be 15 by the values in
1:58
the second column in descending order
2:00
and automatically spills the result into
2:02
the surrounding cells Excel highlights
2:04
The Spill range with a dash border
2:06
around the affected cells click on the
2:08
formula cell to see this outline you can
2:11
reference an entire spill range using
2:13
the hashtag operator for example if your
2:16
spill range starts an E3 you can use E3
2:19
hashtag to reference the entire range
2:21
type the formula equals E3 hashtag in a
2:24
new cell and Excel will automatically
2:26
include all cells in the spill range
2:29
regardless of its size
2:30
the hashtag operator is useful for
2:32
functions like sum count and others for
2:35
example some E3 hashtag calculates the
2:37
sum of all values in The Spill range
2:39
starting at E3 equivalent to some range
2:42
E3 to F16 with a range E3 to F-16
2:45
represents the spill range similarly
2:48
count E3 hashtag counts the number of
2:50
numeric values in The Spill range if the
2:53
spill range changes in size the formulas
2:56
using hashtag will automatically update
2:58
to reflect this with a static range like
3:00
some E3 to F16 you'd have to manually
3:03
adjust the formula if the range changes
3:05
which can be cumbersome and prone to
3:06
errors note the sum function only adds
3:09
numeric values and treats text values as
3:12
zero so you don't need to worry about
3:14
non-numeric data affecting your results
3:16
spill ranges can be formatted
3:18
dynamically just like any other range
3:20
let's apply some conditional formatting
3:22
to highlight values in The Spill range
3:25
select the cells in the spill range you
3:26
want to format then go to the Home tab
3:28
click on conditional format in and
3:30
choose a rule for example if you
3:32
highlight duplicate values the
3:34
formatting will update dynamically with
3:36
any changes to the spill
3:44
range in this section we'll explore how
3:47
the index function can work with spill
3:48
ranges this function can extract
3:51
specific elements from an array when
3:53
combined with spill ranges it becomes
3:55
even more Dynamic let's break down a
3:57
series of examples to understand it's
3:59
full potential this formula is asking
4:02
for the value in the first row and the
4:04
First Column of the spill range the
4:06
hashtag at the end of e3 means that the
4:08
formula is referencing a spill range
4:11
which includes all the cells
4:12
automatically filled by the formula in
4:14
cell E3 now change the third parameter
4:17
to two this formula will then retrieve
4:19
the value from the first row and second
4:21
column of the spill range starting at E3
4:24
to retrieve values from both the first
4:25
and second columns change the third
4:27
parameter to an array by specifying the
4:30
column numbers within curly brackets the
4:32
formula will then return the elements
4:34
from the first and second Columns of the
4:41
row let's now extend it to multiple rows
4:44
from The Spill range to retrieve data
4:46
from two rows change the second
4:48
parameter to an array with row numbers
4:50
separated by semicolons within curly
4:52
brackets this formula will return
4:55
elements from the specified rows and
4:57
columns to display data from five rows
5:00
adjust the second parameter similarly
5:02
entering the row numbers separated by
5:04
semicolons as shown on the
5:08
screen the third parameter of the index
5:10
function specifies the column from which
5:12
to retrieve data if you want to display
5:14
results from a single column you can
5:16
simply enter the column number directly
5:18
instead of using an array for example
5:21
with the formula shown on the screen it
5:23
retrieves data from the First Column for
5:25
the first five rows if you change the
5:27
third parameter to two it will return
5:29
the value from the second column next
5:31
use the sequence function in the second
5:33
parameter to dynamically generate row
5:35
numbers instead of manually specifying
5:37
them this approach is especially useful
5:40
for retrieving large sets of data from a
5:42
spill range as it makes the process more
5:44
flexible if you need to adjust the
5:46
number of rows later you can simply
5:48
modify the sequence input rather than
5:50
manually updating the array for example
5:53
sequence having value five generates
5:55
numbers one through five dynamically
5:58
this allows you to retrieve the first
6:00
five rows from both columns just as
6:02
before but with a more adaptable and
6:06
approach the cell reference E3 hashtag
6:09
in the first parameter of the index
6:10
function represents the result of the
6:12
sort function which sorted the range A2
6:15
to be 15 based on the second column b
6:18
instead of referencing the result in E3
6:20
you can directly use the sort function
6:22
within the index function as the first
6:24
parameter as shown on the screen the
6:26
index function can handle various array
6:28
functions functions that return an array
6:30
or spill range such as unique sort and
6:33
filter for example this Formula First
6:36
sorts the range A2 B 15 by the second
6:39
column in descending order using the
6:41
sort function and then the index
6:42
function retrieves the first five rows
7:09
thanks for watching if you found this
7:11
video helpful don't forget to like And
7:13
subscribe and feel free to leave any
7:15
questions or suggestions for future
7:17
tutorials in the comments below see you