Prevent Excel table from auto-populating rows - excel

If you have an Excel table (listobject) in which all the cells of a column contain the same formula, and you add one or more new rows, the formula will be automatically entered in all the new cells of the column. This is one of my favorite feature of Excel tables.
But my current table has more than one formula in the same column(s). And when I create a new row, it's filling it in with one of those formulas. Not only is it choosing what is usually the wrong formula, but in most cases I need the row to be blank.
Is there a way to turn off the auto-fill of table rows? (Especially if I can restrict it to particular columns.)
If necessary, I can write some VBA code to clear the row as its created, but I'd like to see other options first.

This first time you enter a formula in a table column the AutoCorrect options button should display. Click the button and select Stop Automatically Creating Calculated Columns. This should turn the autofill off for your table.

Related

Select a Large Number of Individual Cells in Excel

In addition to a single cell, Excel allows you to select multiple unconnected cells independently by pressing ctrl when clicking the cells.
I use this feature to insert a row between each existing row, which is my ultimate goal. You can do this by independently selecting one cell in each row and then right-clicking and inserting rows.
This process works fine for tens of rows, but in some cases, I need to independently select 1000+ cells in a column to insert a row between each row in a large sheet. To be clear, I'm not talking about ranges. Instead of A1:A1000, I mean to select A1,A2,A3...A1000.
Is this possible without manually clicking each cell?
Insert a helper column with even numbers this way
type the value 2 into the first row
type the value 4 into the second row
select the two cells and double click the fill handle to fill down to the last row of your data or drag to the desired point.
Below your data, in the same column, enter odd numbers 1,3,5,etc, using a similar technique.
Next, sort your data by the new column.
Viola! Blank rows between all rows of data.

Structured references vs explicit cell references

I'm using Index-Match to match Full Names with head count in that party.
I have it working but it uses both the structured and explicit cell reference.
I can't figure out why when I add a new row in my table, the column with the index-match formula wont populate the last row.
This is the formula used:
=IFNA(INDEX(AA:AA,MATCH([#[Preferred Seating 1st Choice]],D:D,0)),"")
Column AA has the head count number and column D has the list of full names.
Preferred Seating is the column used to reference the search.
I looked around and can't seem to find why it wont fill in the last row after that rown info is entered.
I can only assume it has something to do with the mixed Explicit-structured cell/column references. Any help please.
Yes Excel may not automatically assume a formula needs to be automatically filled in an entire table column if it contains unusual references. Unless you have data outside the table, you should just refer to the columns in the table:
=IFNA(INDEX([Column AA Name],MATCH([#[Preferred Seating 1st Choice]],[Column D Name],0)),"")
These can be easily entered when editing the formula by selecting all cells in the source columns excluding the heading. The formula will always use the entire
source columns and the formula should automatically fill its own entire column.
You can also control whether a column automatically has its formula updated through a hidden property. The ability to change the behavior of the column only appears through the front end when you're making changes to the column.
After entering a formula in a column, Excel will either automatically fill the entire column and give you the option to turn off the automatic fill, or Excel will not automatically fill the entire column and give you the option to turn it on.
After entering a formula that isn't being filled, this icon will appear:
Click it and then select to Overwrite all cells in this column with this formula
Deleting a formula from one cell in a column that is being automatically filled will turn off the automatic fill. Double clicking a cell with a formula and pressing enter will give you the option to turn it on again.

How to add formula to multiple cells with already existing values in them?

I have a table filled with hundreds of values in different cells (not coming in order, chaotic). Now I want to add 20% to each value (=x*1.2).
what formula should I use?
A quick way to get the desired result is to add a new table or worksheet and copy the update formula in each cell (e.g =A1*1.2). You could then overwrite the old values by pasting the new values. Pasting values overwrites any old formula.
If you want to manipulate the formula of every cell, you should look into a vba solution.
This is my solution:
1. Write a 1.2 in an empty cell out of table.
2. Copy this cell (1.2).
3. Select the table with values. Right-click of the mouse, select Paste Special -> Paste Special..-> Multiply. Voila!
Result: all selected values in the table were multiplied by 20%
Thanks a lot to my colleague Lina!

Invisible table based on drop-down list value

There is a drop-down list with numbers that was made using Data-> Data validation. The goal is to make visible only the number of rows of the table that was chosen from drop-down list without using vba (to make it more easily to edit by ordinary users). The first column of the table contains numbers corresponding to the numbers from the drop-down list. The table also contains the columns with formulas. I choosed to use conditional formating with idea that all the cells of the table will be calculated and then hide those rows of the table that are under the row corresponding to the value of cell with drop-down list. In other words it needs to dynamically change the visible rows of the table or to dynamically form the table (but there is a columns with formulas and I don't know if you can do that without using vba). I've tried different ways but this problem seems difficult for me. Maybe instead of ordinary table you need to use smart-table or power pivot but I don't have experience of using it. Thank You for Your help!
Ok... let's asume you have the value in A1.
Now for the range of B2:G20.
Conditional formatting formula: =ROW()>$A$1
In the range of B2:G20 every cell will be formated with a row higher than the value in A1
If the format is something like ; ; ; it looks empty.
Using this example and having 11 in A1 -> B12:G20 will be hidden.
However: to set Row.Hdden = true you need to do it manually or use VBA :/

Count the number of orders in the order table

I just needs some help on a formula to count the numbers of orders in the orders table for each customer.
Table Name = "Orders"
See the image:
So in another worksheet, the formula counts the orders for each individual customer.
I countn't get the countif to work as each amount of orders vary between customers. The PivotTable didn't work either as there are blank spaces in the customer numbers.
Any other solutions to my problem?
Quick way to fill the blank cells:
Select the cells from A5:C5 and all the way down the table
Hit F5
Click Special
Tick "Blanks" and hit OK
All blank cells in the range are now selected. Without changing the selection,
type a = sign
hit the up arrow key on your keyboard.
Hold down Ctrl and hit Enter
Now all previously blank cells contain a formula that references the cell right above. Copy the columns and paste them over themselves with Paste Special > Values to replace the formulas with the values.
Now you can build a pivot table for the count.
As an alternative to filling in the blank cells you could use a helper column with a formula along the lines of
=IF(LEN(B5)=0,H4,B5)
Start the formula in cell H5 and copy down. Now you can use a pivot table with this helper column. You can hide the helper column if it upsets your spreadsheet design.

Resources