Automatically update formulas to include new rows
I have a sheet, titled working, that does a lot of the calculations from other sheets that I will ultimately need on a summary sheet in the future.
The problem is, the formulas on the working sheet don't automatically update when I add a new row on the
data entry sheet.
Here is a link to download the spreadsheet from my SkyDrive if that will make it any easier (it uses Macros, so you will need to download it):
Keys to the Problem Automatically update formulas to include new rows
I see that there is some worksheet code in it, but there is an empty code module. But not needed.
You can use the INDIRECT() and COUNTA() functions in your formulas on the [Working] worksheet to create dynamic formulas:
In B1 you have: =SUM('Company A'!G3:G3)
Now, a couple of assumptions are made with the following: that G1 is empty, so we must account for it when we do the COUNTA() operation; and that entries in column G and the others will not have empty rows in the data area of the sheet.
Try this in C1 as a replacement for B1's formula:
=SUM(INDIRECT("'Company A'!G3:G"&COUNTA('Company A'!G:G)+1))
We have made a "constant" value out of the
part of the original formula, and then use the COUNTA(G:G) to count all entries in column G and add 1 to that result to account for the empty G1 cell. As you add entries into column G on the [Company A] sheet, that COUNTA(G:G) value is going to increase,
making for a dynamic formula.
You can similarly modify all other formulas to get their exact range.
But I would also consider the two recommendations that Hans_V put up: of using "oversized" range references. With the entire column type of reference (as =SUM('Company A'!G:G) ] there is the potential for a performance hit, so his first suggestion of picking
a large range that is sufficient to capture all expected entries on a sheet would be the better choice. I'd start with a guestimate of the maximum number of entries on a 'Company' type sheet and double it and as time goes on and you can examine actual number
of entries you could even tweak that number down to one with a 'safe' overhead, but without so much overhead as to affect performance to an unacceptable level.
OR go with my suggestion to get exact ranges to work with, with the slight overhead of using COUNTA() and INDIRECT() a couple of dozen times on a sheet.
Cleaning your computer, components, and peripherals help keep everything in good working condition and helps prevent germs from spreading. You can't image how dirty the inside of your computer case can get. All the dust and dirt is going to prevent proper air flow and may even prevent the fan from working.
Recommended Method to Fix the Problem: Automatically update formulas to include new rows:
How to Fix Automatically update formulas to include new rows with SmartPCFixer?
1. You can Download SmartPCFixer here. Install it on your system. When you open SmartPCFixer, it will perform a scan.
2. After the scan is finished, you can see the errors and problems which need to be repaired.
3. When the Fixing part is finished, your computer has been speeded up and the errors have been removed
Related: AMD Radeon HD 7800M Win8 not working [Anwsered],I can access the internet, get on facebook and get to hotmail, but I can't play games on facebook and I can't open or respond to my e-mails,I keep getting this Media Player error when I log on my computer. [Anwsered],[Anwsered] System Hanging on shutdown and restart,Unable to get the Vlookup property of the WorksheetFunction class,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Troubleshoot:Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive. Error,External Hard Drive not listed in Windows 7 backup wizard Tech Support,Tech Support: I'm always being signed off so annoying,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.,Referencing data in Access using Excel [Anwsered],Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22)
Read More: Tech Support: Associating H2s with Table Captions?,Solution to Error: Automatic refresh of data between workbooks,How to Fix Problem - Auto Detect, Entering Power Save keeps occurring every 10 minutes while I'm actively using PC; how can I stop this??,Autocorrect entries are missing Tech Support,Troubleshoot:Autoplay does not work on CD\/DVD.,application not found error,any problems in a team where one has Windows XP and the other has Windows 7?,Application/Object-Defined Error,An Excel formula question where hours are totalled and cumulating,Anyone know the hardware email?