• 100% Satisfaction Guarantee

saaga,
Category: Microsoft Office
Satisfied Customers: 754
24317596
Type Your Microsoft Office Question Here...
saaga is online now

# How to automatically adjust cells in a formula when referencing

### Resolved Question:

How to automatically adjust cells in a formula when referencing a cell that gets deleted,
i.e. =(\$G\$21-\$E\$20).
When I delete row 20 I want row 21 to change from =(\$G\$22-\$E\$21) to =(\$G\$21-\$E\$20).
Submitted: 4 years ago.
Category: Microsoft Office
Expert:  saaga replied 4 years ago.
Hello,

When you delete Row 20, Excel will automatically compensate by changing
=\$G\$22-\$E\$21
to
=\$G\$21-\$E\$20.

You shouldn't need to do a thing.
Customer: replied 4 years ago.
That is what I tried and it didn't work. I gor #REF.
Customer: replied 4 years ago.
In the new cell G21 it says #REF! whch was previusly G22 on row 22 before I deleted row 21.
Expert:  saaga replied 4 years ago.
If you delete Row 21, the \$E\$21 portion of the =\$G\$22-\$E\$21 formula will fail and give you the #REF error.
Customer: replied 4 years ago.

I already new that. I want the solution to the problem.

There should be a way to adjust the cell formula addresses automatically when ithe row changes up or down.

Expert:  saaga replied 4 years ago.
Which cell is =(\$G\$22-\$E\$21) in?
Customer: replied 4 years ago.

row 21 cell G21 was =(\$G\$20-\$E\$21 row 22 cell G22 was =(\$G\$21-E\$22)

I deleted row 21

row 22 became row 21 and cell G21 became #REF!

Customer: replied 4 years ago.
Expert:  saaga replied 4 years ago.
It looks like Column G, then, is a running total. Is that correct? And you want the cells in Column G to continue the running total even when you delete a row?
Customer: replied 4 years ago.

It calculating a new total based on the previous row G cell plus or minus the value in the current row E cell.

Expert:  saaga replied 4 years ago.
And you want the adjustment to be automatic? I ask because, if you remove the absolute (\$) references from the cells in column G, you can simply drag the first good (non-#REF) cell down over the #REF cells to correct them.
Customer: replied 4 years ago.
Thanks. I'll give it a try and get back to you.
Customer: replied 4 years ago.
That did not work.
Expert:  saaga replied 4 years ago.
You removed the absolute (\$) references from the formulas in the column G cells first? Then, you deleted row 21? Then, you selected cell G20, and clicked and dragged the fill handle in the corner down over the #REF cells to correct them?
saaga,
Category: Microsoft Office
Satisfied Customers: 754
Experience:
Expert:  saaga replied 4 years ago.
Hi there,

I assuming that this solution worked for you then? Thank you for the Accept and the generous Bonus!!

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

### What Customers are Saying:

• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Previous | Next >
• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland

• ### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair
< Last | Next >

### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair

### JasonJames122

#### Satisfied Customers:

0
I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

### Jess M.

#### Satisfied Customers:

481
Computer Software Specialist for more than 10 years

### The-PC-Guy

#### Satisfied Customers:

450
20 years experience providing remote computer support

### James K.

#### Satisfied Customers:

260
Technical Director of IT Company

### IT Miro

#### Satisfied Customers:

147
Bachelor's Degree in Information Technology, Microsoft Certified Professional

### Chris L.

#### Satisfied Customers:

137
Certified Expert with over 10 years experience.