Auto Sense how much to reference in a column

Mstg007

Active Member
Joined
Dec 30, 2013
Messages
383
I have been using the (Fill / Down) on Column A with a formula.
It usually goes all the way down to the end of the row. Once I
save my file its close to 20MB from the usualy 4MB.

I usually import data into Column A, but usually do not specify
where the import data ends.
Instead of referencing a all the cells in Column A. Is there something
that can sense the end of the values imported and reference just all cells
from the beginging to the last vaules in Column A?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I'm not certain if you mean you need the import to recognize the last row in column A or if you need formulas to do so. If the latter, then I think table-formatting/dynamic ranges are your best bet. Instead of a SUMIF looking at the entire column, for instance, the formula could just look at teh range of rows comprising "Table Column XX," which would end at the last contiguous row in the data table.
 
Upvote 0
I'm not certain if you mean you need the import to recognize the last row in column A or if you need formulas to do so. If the latter, then I think table-formatting/dynamic ranges are your best bet. Instead of a SUMIF looking at the entire column, for instance, the formula could just look at teh range of rows comprising "Table Column XX," which would end at the last contiguous row in the data table.

I am sorry, but I am not following. Could you give an simple example?
 
Upvote 0
Sure - hope this helps. I re-read your initial post and it sounds like you want a formula in Column A to automatically extend to the bottom of your dataset, regardless of how much data is imported. Is that right?

If that is the case, you can convert your dataset to a table (Home tab > Format as table, with Office 2010 and 2013). Now, if you enter a formula in cell A2, that formula will automatically populate every row in your table. Also, when you add new rows to the table, the formula will automatically extend down as far as your new data does. Does that make sense? This and the related links give a pretty good explanation: Using formulas in Excel tables - Excel - Office.com

All this means that you won't ever need to manually fill your formulas to the bottom of your data.
 
Upvote 0
Sure - hope this helps. I re-read your initial post and it sounds like you want a formula in Column A to automatically extend to the bottom of your dataset, regardless of how much data is imported. Is that right?

If that is the case, you can convert your dataset to a table (Home tab > Format as table, with Office 2010 and 2013). Now, if you enter a formula in cell A2, that formula will automatically populate every row in your table. Also, when you add new rows to the table, the formula will automatically extend down as far as your new data does. Does that make sense? This and the related links give a pretty good explanation: Using formulas in Excel tables - Excel - Office.com

All this means that you won't ever need to manually fill your formulas to the bottom of your data.


That is one way to do it.

Will that still make my file large?
My initial thought was. If i imported stuff in and it went down to from A1 to A20.
It would just select from A1 to A20. If I imported stuff in from A1 to A20122.
It would just select from At to A20122.
(didnt know if that would cut down on the file size.)
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,563
Members
448,972
Latest member
Shantanu2024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top