Cell Referencing in Excel (When to add a $ in a cell)

Kenji Explains
12 May 202412:56

Summary

TLDRThis video tutorial explains the correct use of dollar signs in Excel formulas, helping users master absolute and relative cell referencing. The presenter goes through five examples, from basic to advanced, demonstrating how to lock rows, columns, or both. By the end of the video, viewers will understand how to handle references correctly in Excel, preventing common formula errors. The video also introduces chart templates and an index-match formula for more complex scenarios, offering downloadable resources to follow along.

Takeaways

  • 😌 Understanding where to place dollar signs in Excel formulas is crucial for accurate cell referencing.
  • πŸ“ˆ The tutorial covers five examples that progress from simple to complex, teaching the correct use of dollar signs for both absolute and relative cell references.
  • πŸ’Ύ A free Excel file is provided for practice, which includes the examples discussed in the video.
  • πŸ”„ In the first example, the dollar sign is used to lock the sales tax percentage to a specific cell, ensuring it remains constant when the formula is copied down.
  • 🌐 For scenarios with varying tax rates, the dollar sign is strategically placed to lock the tax rate to a specific column while allowing the row to adjust.
  • πŸ“Š The tutorial suggests using chart templates from Hotspot to visualize data, which can be automatically updated as data changes.
  • πŸ”’ In more complex examples, the dollar sign is used to fix certain parts of a formula while allowing others to adjust, such as when calculating revenue based on price and quantity.
  • πŸ’‘ The IF statement is combined with dollar signs to create conditional formulas, such as awarding a bonus based on revenue thresholds.
  • πŸ“‹ The INDEX MATCH function is introduced in a complex scenario to dynamically reference data based on both row and column criteria, with dollar signs used to control which parts of the formula adjust.
  • πŸŽ“ The video concludes with a recommendation to watch a more in-depth video on INDEX MATCH or to take an Excel course for further learning.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is understanding how to correctly use dollar signs in Excel for cell referencing.

  • Why is knowing where to put the dollar sign in Excel important?

    -Knowing where to put the dollar sign in Excel is important because it determines whether a cell reference is fixed (absolute) or dynamic (relative), which affects how formulas are copied and filled across cells.

  • What is the purpose of the five examples provided in the video?

    -The purpose of the five examples is to demonstrate the correct use of dollar signs in different scenarios, ranging from simple to complex, to help viewers understand how to lock either the column, row, or both in cell references.

  • What is the first example in the video about?

    -The first example is about calculating tax amounts for a table of products, illustrating how to lock the cell reference for the sales tax percentage while allowing the price to change as the formula is copied down.

  • How does the video demonstrate fixing the reference for the sales tax percentage in the first example?

    -The video demonstrates fixing the reference for the sales tax percentage by using the F4 key to add a dollar sign in front of the column letter and row number, making it absolute.

  • What is the second level example in the video about?

    -The second level example is about applying different tax rates for various countries, showing how to lock the tax rate reference to the correct column while allowing it to move across rows for different products.

  • How can you lock a cell reference to a specific column but allow it to move across rows?

    -You can lock a cell reference to a specific column by adding a dollar sign in front of the column letter and leave the row number without a dollar sign, allowing it to move across rows.

  • What is the purpose of the CHART templates mentioned in the video?

    -The CHART templates are used to visualize data in various chart types, allowing users to easily modify data and have the charts update automatically, helping to decide which chart type suits their data best.

  • How does the video handle more complex scenarios with formulas like IF statements?

    -The video handles complex scenarios with IF statements by showing how to lock and unlock parts of the formula correctly using dollar signs to ensure that the logic of the formula is maintained when copied across cells.

  • What is the most complex example discussed in the video?

    -The most complex example is using the INDEX MATCH formula to calculate revenue for different years and line items, demonstrating how to lock and unlock parts of the formula to ensure it works correctly when copied across cells.

  • How can you lock a cell reference to a specific row but allow it to move across columns?

    -You can lock a cell reference to a specific row by adding a dollar sign in front of the row number and leave the column letter without a dollar sign, allowing it to move across columns.

Outlines

00:00

πŸ” Understanding Dollar Signs in Excel Formulas (Level 1)

This paragraph introduces the concept of using dollar signs in Excel formulas to fix cell references. The speaker demonstrates the issue of cell references changing incorrectly when formulas are dragged, and explains how to use the F4 key or manually add dollar signs to lock the reference. The example involves calculating sales tax for products, and the focus is on locking the sales tax reference while allowing the product price reference to adjust as the formula is dragged.

05:01

🌍 Handling Multiple Tax Rates in Excel (Level 2)

This section moves to a more complex example where different tax rates are applied for multiple countries (US, Japan, Mexico). It explains how to adjust Excel formulas for cell references that need to change horizontally (across countries) while locking certain cells vertically (for products). The speaker shows how to apply partial dollar sign locking to ensure the correct movement of values in both directions, demonstrating the challenge of copying formulas across rows and columns.

10:01

πŸ’° Multiplying Prices and Quantities with Locked References (Level 3)

Here, the script covers the task of calculating revenue by multiplying product prices by quantities. The problem arises when copying the formula across cells without locking the appropriate rows and columns. The speaker highlights the need to lock the row for the quantities and the column for the prices to prevent errors in calculations when dragging formulas. The demonstration explains using the F2 key to edit formulas and adding dollar signs for precise reference control.

πŸ”’ Combining IF Statements with Dollar Signs (Level 4)

This section dives into using the IF function in Excel combined with locked cell references. The scenario involves calculating bonuses for revenue figures that exceed a specific threshold (50,000). The speaker explains how to use the F4 key to lock specific parts of the formula, ensuring that the bonus calculation works correctly when the formula is dragged down. The focus is on controlling the movement of references to revenue and bonus percentages.

πŸ“Š Complex Formula with INDEX and MATCH Functions (Level 5)

The final and most advanced example involves using the INDEX and MATCH functions to retrieve data from an income statement. The speaker explains how to use dollar signs to lock specific cell ranges and ensure that the formula can move correctly both horizontally (across years) and vertically (across line items like net income and gross profit). This complex formula demonstrates how to combine multiple functions with careful use of locked references to get the right data from a dynamic table.

Mindmap

Keywords

πŸ’‘Dollar Sign

The dollar sign in Excel is used to create absolute references in formulas. It is crucial for ensuring that certain parts of a cell reference do not change when the formula is copied to other cells. In the video, the dollar sign is explained as a tool to 'lock' either the column, row, or both in a cell reference, which is essential for accurate calculations when dealing with dynamic data. For instance, the script mentions locking the 'B3' cell to ensure the price remains constant while the tax percentage changes.

πŸ’‘Cell Reference

A cell reference in Excel is the address of a cell, such as 'B3', used to identify its location in a worksheet. The video script discusses how to manipulate cell references using the dollar sign to ensure formulas perform as expected when copied or filled across different cells. For example, the script explains how to lock the reference to 'B3' to keep the price static while the tax rate varies.

πŸ’‘Formula

A formula in Excel is an equation that performs calculations on values in cells. The script provides examples of formulas used to calculate tax amounts, revenue, and bonuses, illustrating how to construct and adjust them for dynamic referencing. The video emphasizes the importance of formulas in Excel for automating calculations and making data analysis more efficient.

πŸ’‘Absolute Reference

An absolute reference in Excel uses the dollar sign to lock either the row, column, or both in a cell reference, ensuring it does not change when the formula is copied. The video script uses examples such as locking the 'B3' cell to demonstrate how absolute referencing can maintain consistency in calculations across different cells.

πŸ’‘F4 Key

The F4 key in Excel is used to toggle between relative and absolute cell references. The video script instructs viewers on using the F4 key to lock cell references, which is crucial for creating formulas that function correctly when copied to other cells. This is demonstrated in the context of calculating tax amounts and handling different tax rates for various countries.

πŸ’‘Drag and Drop

In the context of the video, drag and drop refers to the action of copying a formula down or across cells in Excel. This is a common method for applying the same calculation to a range of cells. The script explains how to use drag and drop effectively after locking cell references with the dollar sign to ensure formulas remain accurate.

πŸ’‘Sales Tax

Sales tax is a tax imposed on the sale of goods and services. The video script uses sales tax as a practical example to demonstrate how to calculate tax amounts in Excel. It shows how to create a formula that multiplies the price by the sales tax percentage and how to adjust the formula to handle different tax rates for different countries.

πŸ’‘Revenue

Revenue in the video script refers to the income generated from the sale of products. It is used in a scenario where the video explains how to calculate revenue by multiplying the price by the quantity sold. The concept of revenue is central to understanding financial performance and is a key metric in business analysis.

πŸ’‘IF Statement

An IF statement in Excel is a logical test that returns one value if a condition is true and another if it is false. The video script includes an example where an IF statement is used to give a bonus based on revenue. It demonstrates how to structure the IF statement within a formula to perform conditional calculations.

πŸ’‘INDEX MATCH

The INDEX MATCH function in Excel is used to look up values in a table or range. The video script provides a complex example of using INDEX MATCH to find revenue for specific years and line items. It shows how to construct the function to reference data accurately without confusion, which is essential for financial reporting and analysis.

Highlights

Understanding the confusion around the placement of dollar signs in Excel formulas.

Level 1 example introduces the concept of locking a cell reference with the F4 key.

Explanation of how to fix the formula when dragging it down in Level 1 by locking the sales tax percentage with the dollar sign.

Introduction to more complex scenarios with different tax rates for multiple countries in Level 2.

Clarification on when to lock the row or column using the dollar sign for sideways and vertical movement.

Demonstrating the process of applying the formula to different columns and rows while maintaining proper references.

Detailed explanation of how to selectively lock rows and columns to prevent errors when copying formulas across different areas.

Highlighting the use of more advanced formulas like IF statements combined with dollar signs in Level 4.

Locking row references while keeping the column dynamic for a more complex bonus calculation.

Introduction to index-match formulas in Level 5 for retrieving data from a larger table based on multiple criteria.

Explanation of how to properly lock ranges in index-match formulas to ensure correct results when dragging the formula across rows and columns.

Visualization of proper cell referencing and locking techniques through more complex examples.

Emphasizing the importance of understanding when to lock only the column, row, or both in formulas.

Using the F4 key to toggle between locking the row, column, or both in Excel, demonstrated multiple times across examples.

Encouragement to practice these skills with downloadable exercises provided in the video description.

Transcripts

play00:00

one of the most confusing things in

play00:01

Excel is knowing where to put the dollar

play00:04

sign is it before the cell column letter

play00:07

or is it before the cell row number or

play00:10

is it in both this took me months to

play00:13

learn correctly but by the end of this

play00:15

video it should be crystal clear and for

play00:18

this we'll go over five examples from

play00:21

easy to hard so let's get into

play00:24

[Music]

play00:26

it first up in level one we have this

play00:30

example table over here which has the

play00:32

price of certain products alongside the

play00:34

sales tax and we want to calculate the

play00:36

tax amounts now if you want to follow

play00:39

along with this one and all the other

play00:41

exercises that we have download the free

play00:43

Excel file in the video description all

play00:46

we need to do for this calculation is

play00:48

select the price and multiply that by

play00:51

the sales tax percentage and hit enter

play00:54

that's looking good at 1% and now we can

play00:57

just drag this down but you'll notice as

play00:59

we do that they all go to zero if we

play01:02

double click on it which is the same

play01:03

thing as pressing the F2 key you'll

play01:06

notice that this is going down the sales

play01:08

tax is going down where it shouldn't but

play01:10

we do want the price to go down much

play01:12

like it did here so we somehow need to

play01:14

just fix this part so it stays locked at

play01:17

this top B3 cell so we can go back to

play01:20

the top one select it with the F2 key

play01:22

and from here we're just going to select

play01:24

the B3 area and press the F4 key if you

play01:28

can't find the F4 key on your keyboard

play01:30

board you can also just type the dollar

play01:31

signs manually in front of the B and the

play01:34

three now as I double click on this

play01:37

again to drag it down you'll notice that

play01:39

it stays fixed on this side but it

play01:41

remains Dynamic so it keeps going down

play01:43

on this other side for the blue price

play01:46

that's a simple example of when the

play01:48

dollar sign comes Hy but this one was

play01:50

overly simplified let's go over a

play01:53

slightly harder one in level two here

play01:55

you'll notice that we have several

play01:57

different tax rates for each country so

play01:59

for the US us Japan and Mexico so we'll

play02:02

get started with the US in the same way

play02:04

as before where we take the price and

play02:06

multiply that by the US tax percentage

play02:09

but this time we'll lock it with the F4

play02:12

key like we did earlier hit enter and we

play02:15

can just drag this down by selecting the

play02:17

corner so you can see that it's working

play02:19

well even for different products you'll

play02:22

notice that it's moving the right way

play02:24

that said if we copy this formula with

play02:26

crl c and contrl V to paste it over to

play02:29

Japan let's click on that to see what's

play02:32

going on here it's still at the US so

play02:35

that's not correct and also with the

play02:37

price it's actually moved one over to

play02:39

the US tax as the price which is just

play02:42

completely wrong so we really need to do

play02:44

two things here one is going to be to

play02:47

make this one Dynamic to the side not up

play02:49

and down though just sideways on row

play02:51

number three and for this one we want to

play02:54

keep it fixed at column G but be able to

play02:57

move up and down so let's get inside the

play02:59

formula again at the very first one and

play03:02

we need to make the changes here so for

play03:04

G3 which is this one right here that we

play03:06

can't quite see right now we want to add

play03:08

a dollar sign on the column so that it

play03:11

doesn't move to other columns we can do

play03:14

that just by adding the dollar sign on

play03:15

that g there for the number it's row

play03:18

number three we do want it to move

play03:20

because we want it to go across the

play03:21

different products so we leave that as

play03:24

is then on this other side for the B3 we

play03:28

want it to move across the col s so from

play03:30

b c to D that's why we'll delete the

play03:33

dollar sign from there that said do we

play03:36

want it on the number well we do because

play03:38

we don't want it to go down to row

play03:40

number four five or six where there's

play03:42

actually nothing in it now we can just

play03:45

hit enter and we'll copy this formula

play03:48

and just drag it down and across just

play03:50

shift down arrow to go to the bottom

play03:52

there and shift right arrow to go to the

play03:55

right and then I can just hit contrl V

play03:58

now you'll notice that it should be

play03:59

working correctly we can just check the

play04:02

last one by double clicking on it you

play04:04

can see that the price has gone down all

play04:05

the way to Doritos and we're using the

play04:08

Mexico tax rate which makes sense for

play04:10

the Mexico column awesome now you've

play04:13

seen when to add the dollar signs just

play04:15

for the column just for the row as well

play04:18

as for both and the next step would be

play04:20

to visualize all of this and to do that

play04:23

we can use charart templates like the

play04:25

ones hotspot is kindly providing us

play04:28

using the link in the description Bel

play04:29

below you can get multiple graph

play04:32

templates completely for free in the

play04:34

download you'll find an Excel file with

play04:36

the instructions on using the template

play04:39

alongside all of the chart types you

play04:41

might need to visualize your data from

play04:44

here you can easily modify the data and

play04:46

the charts will automatically update

play04:49

these templates can have either one

play04:50

column of data or multiple depending on

play04:53

your needs I personally find this

play04:55

template useful for deciding which chart

play04:58

type suits my dat the best as it's quite

play05:01

unusual to see so many different chart

play05:03

types in just one template so I'd

play05:05

recommend you head out to the link in

play05:07

the description below to download these

play05:09

completely free templates from hopspot

play05:12

to level up your Excel game and thanks

play05:14

to them for sponsoring this video we've

play05:17

just gone over two examples of sell

play05:19

referencing but to be fully confident

play05:22

let's go over another slightly different

play05:24

example over here it just says to find

play05:26

the revenue under the scenarios and you

play05:29

can see we have all the prices on one

play05:31

side and all the quantities on the other

play05:34

and based on that we want to multiply

play05:36

each of them so it would be 10

play05:38

multiplied by 250 to find the revenue

play05:41

under these conditions and we want to

play05:43

move this all across so if we just try

play05:45

to do that now just by dragging this

play05:47

down let's see what happens if I click

play05:50

on this one you'll notice that it's not

play05:51

moving correctly at least from this top

play05:53

part and if I were to copy this across

play05:56

to the side and take a look at this with

play05:59

the F2 key you'll notice that it's also

play06:01

not moving correctly because the

play06:02

quantity should be fixed here so we need

play06:05

to fix two things one is going to be

play06:07

this column C and the other one is going

play06:10

to be this row five so let's take a look

play06:13

here we'll press the F2 key to get

play06:15

inside of the formula and the first part

play06:18

is going to be this number 10 that we do

play06:20

want to move across so across the

play06:22

different columns but we want it to stay

play06:25

fixed at row five so we'll add the

play06:27

dollar sign only at the row number four

play06:29

five then we have the C6 which we want

play06:32

it to remain at this column C so it

play06:34

doesn't move to the other columns and

play06:36

make everything wrong so we just need to

play06:38

add the dollar sign in front of that c

play06:41

we'll hit enter there crl C to copy

play06:44

shift down shift right to select the

play06:47

whole area and now contrl V to paste it

play06:50

all to check if it's all working

play06:52

correctly we can just go to the very

play06:54

last one and you'll see that it's gone

play06:56

all the way to 16 and the quantity all

play06:59

the way to 1,000 so that's all looking

play07:01

correct up till now we've been working

play07:03

with fairly simple scenarios where it's

play07:06

only one calculation in reality though

play07:08

you'll probably mix this with a formula

play07:11

like an if statement which is what we

play07:13

look at in this level four over here we

play07:16

have the instructions in bold and it

play07:18

says that if the revenue here is greater

play07:20

than 50,000 then we want to give them a

play07:23

5% bonus probably of the total revenue

play07:27

so over here we're going to need an F

play07:30

so we'll go to equals if hit the top key

play07:33

there The Logical test is that this

play07:36

Revenue figure over here has to be

play07:38

greater than that 50,000 which is right

play07:42

here to the side that said right now if

play07:45

we drag this down it's all going to get

play07:47

messed up so we should try to lock this

play07:49

with the F4 key you'll notice we can

play07:52

either lock by column and row that's one

play07:55

way to do it there's nothing wrong with

play07:56

it or the other way for us to do it

play07:59

would be to just lock the row so we

play08:02

would only lock the five area over here

play08:05

that would give us the same effect

play08:07

because we don't really need to move the

play08:08

bonus to other areas like left or right

play08:12

now if that is the case so if the value

play08:14

is true we want to multiply the revenue

play08:17

itself which we can't quite see it's

play08:20

just a C5 multiply it by the Bonus

play08:23

percentage and again we can leave the

play08:25

dollar sign in the same way as over here

play08:28

so we can press the F4 ke key not once

play08:30

but twice so that the dollar sign is

play08:32

just on the end you'll have notice there

play08:35

that as you press the F4 key the dollar

play08:37

sign keeps moving to wherever you would

play08:39

want it there and now comma and if the

play08:41

value is false they don't get a bonus so

play08:44

we'll just put nothing in there with two

play08:46

quotations that's all for this one we'll

play08:48

close the parenthesis and hit enter now

play08:51

we can double click there to drag this

play08:53

down and let's say we take a look at

play08:55

this one over here you'll notice this

play08:56

area is working correctly and so is this

play08:59

part as it's moved down to C8 and

play09:01

because this figure is greater than

play09:03

50,000 we do get that bonus that's an

play09:06

example of us using the F statement and

play09:09

the dollar signs and now in level five

play09:11

we'll go over something much much harder

play09:14

and I'm not expecting everyone to get

play09:16

this on the first try as it's quite

play09:18

complex over here you can see that we

play09:20

have an income statement down below and

play09:22

on this top part we want to find out

play09:25

what's the revenue in 2021 and then be

play09:28

able to move that formula cross all the

play09:30

way to 2023 and on different line items

play09:33

as well for this we're going to need an

play09:35

index match so we'll go ahead and add

play09:37

that formula in first and then we'll

play09:40

take a look at where to add the dollar

play09:41

signs so let's get started with equals

play09:44

index hit the top key there and the

play09:47

array is basically all of the numbers or

play09:49

the results we're interested in which is

play09:51

going to be all of these over here you

play09:53

can see I've highlighted them comma and

play09:56

now we want to add the first match so

play09:59

there's two matches here one is going to

play10:01

be the row match and the other the

play10:03

column match from the row perspective we

play10:06

have all of these different rows here so

play10:08

the first match that we want the local

play10:10

value is we want to find out the revenue

play10:13

comma where can we find the revenue that

play10:15

would basically be the array well we can

play10:18

find it in this bottom area over here

play10:20

comma and we want this to be an exact

play10:23

much we'll put a zero for that close up

play10:26

parenthesis comma and we'll now go over

play10:29

a second match Lo at Value is we're

play10:32

looking for the year comma and we're

play10:35

looking for the year among all of these

play10:37

years over here to the side hit the

play10:40

comma and we want an exact match close

play10:43

the parenthesis and now we need to close

play10:45

it again but this time for the index

play10:47

side close that and just hit enter so we

play10:51

have

play10:52

229,000 in Revenue which if we take a

play10:55

look that looks about right it's this

play10:57

figure right here that said if I move

play10:59

this down let's say I move it just one

play11:01

down let's take a look at this value

play11:03

here this one's clearly off because all

play11:06

of this bottom areas move down by one

play11:09

same thing goes with this top part the

play11:11

only part that's correct right now is

play11:12

the gross profit so that's really not

play11:14

looking good that's because we haven't

play11:17

locked the sales correctly with the

play11:18

dollar signs so let's take a look up

play11:21

over here the index this whole area with

play11:24

the numbers really doesn't have to move

play11:26

at all so we'll put the dollar signs all

play11:28

across but selecting it and pressing the

play11:31

F4 key once now for the match itself the

play11:35

revenue here you can see the B4 we want

play11:38

it to move down but not across so for

play11:41

this we're going to lock it at the

play11:42

column that way it can't move across the

play11:45

different columns secondly for all of

play11:47

the values that we have here on the

play11:49

bottom we're not going to have to move

play11:51

them at all so to make things simple we

play11:53

can also just hit the F4 key ones to

play11:55

lock them all across and finally for

play11:58

this last part which really has to do

play12:00

with that year there we want it to move

play12:03

sideways but not up and down so we just

play12:05

want the dollar sign on the three there

play12:08

and then for this second part it's not

play12:10

going to move at all so we can just

play12:12

press the F4 key all across it now hit

play12:15

enter that answer shouldn't change but

play12:18

now as we drag this down and across so

play12:21

crl C to copy shift down arrow shift

play12:24

right arrow and contrl + V to paste now

play12:28

let's take a look at at net income 2023

play12:31

this has moved correctly to 2023 same

play12:34

thing with net income and if we take a

play12:36

look at the figure 2023 net income is

play12:39

53,000 so that's all looking good if

play12:42

this index match formula was a bit

play12:44

confusing for you don't worry check out

play12:46

this video over here where I go over it

play12:48

in a lot more depth or by taking our

play12:51

Excel course over here hit the like and

play12:53

that subscribe and I'll catch you in the

play12:55

next one

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Excel tipsCell referencingDollar signsExcel formulasBeginner ExcelAdvanced ExcelData visualizationIndex matchF4 keyExcel tutorial