MrDB4Excel
Active Member
- Joined
- Jan 29, 2004
- Messages
- 348
- Office Version
- 2013
- Platform
- Windows
The range you see with headings in row "1", now encompassing rows 1 through 10, changes regularly.
I want to be able to select this dynamic range but only select from row 2 through to the last non-blank row (in this case row 10).
And how do I want to select this dynamic range? By picking a single cell elsewhere on the sheet, for example, either with a link cell or a button that gets (selects) all content within the dynamic range below the headings in row "1" so it can be cleared to make empty cells for new data that is copied from another workbook. The link cell labeled "Get ClearContentDateSort" now only selects the static range A2:E10, but if the new data coming in goes down to for example row "!2" then picking this link cell will still only select A2:E10.
As you can see by the formulas above I have tried several things but they all do not do what I want.
Any help will be much appreciated.
I want to be able to select this dynamic range but only select from row 2 through to the last non-blank row (in this case row 10).
And how do I want to select this dynamic range? By picking a single cell elsewhere on the sheet, for example, either with a link cell or a button that gets (selects) all content within the dynamic range below the headings in row "1" so it can be cleared to make empty cells for new data that is copied from another workbook. The link cell labeled "Get ClearContentDateSort" now only selects the static range A2:E10, but if the new data coming in goes down to for example row "!2" then picking this link cell will still only select A2:E10.
As you can see by the formulas above I have tried several things but they all do not do what I want.
Any help will be much appreciated.
DateSort.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
2 | 09/16/2021 10:46:06 | John Doe 1 | Subject 1 | John Doe 2 | 863 > | |||
3 | 09/16/2021 16:23:48 | John Doe 2 | Subject 2 | John Doe 1 | 864 > | |||
4 | 09/16/2021 20:36:13 | John Doe 1 | Subject 1 | John Doe 2 | 865 > | |||
5 | 09/17/2021 10:03:48 | John Doe 2 | Subject 2 | John Doe 1 | 866 > | |||
6 | 09/17/2021 11:29:18 | John Doe 2 | Subject 2 | John Doe 1 | 867 > | |||
7 | 09/17/2021 18:30:01 | John Doe 1 | Subject 1 | John Doe 2 | 868 > | |||
8 | 09/17/2021 19:22:07 | John Doe 2 | Subject 2 | John Doe 1 | 869 > | |||
9 | 09/17/2021 19:29:01 | John Doe 2 | Subject 2 | John Doe 1 | 870 > | |||
10 | 09/18/2021 00:47:26 | John Doe 1 | Subject 1 | John Doe 2 | 871 > | |||
11 | ||||||||
12 | ||||||||
13 | =OFFSET(DateSort!$A$1,0,0,COUNTA(DateSort!$A:$A),$1:$1) | |||||||
14 | =OFFSET($A$1,0,0,COUNTA($A:$A),1) | |||||||
15 | =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1) | |||||||
16 | =OFFSET(OutlookSortByDate!$A$2,0,0,SUMPRODUCT(MAX((OutlookSortByDate!$A:$A<>"")*ROW(OutlookSortByDate!$A:$A))),1) | |||||||
17 | =$A$2:INDEX($A:$A, COUNTA($A:$A)) | |||||||
18 | =OFFSET(DateSort!$A$1,0,0,SUMPRODUCT(MAX((DateSort!$A:$A<>"")*ROW(DateSort!$A:$A))),1) | |||||||
19 | ||||||||
20 | How to select a Dynamic Named Range without VBA | |||||||
21 | The range you see with headings in row "1", now encompassing rows 1 through 10, changes regularly. I want to be able to select this dynamic range but only select from row 2 through to the last non-blank row (in this case row 10). And how do I want to select this dynamic range? By picking a single cell elsewhere on the sheet, for example either with a link cell or a button that gets (selects) all content within the dynamic range below the headings in row "1" so it can be cleared to make empty cells for new data that is copied from another workbook. The link cell labeled "Get ClearContentDateSort" now only selects the static range A2:E10, but if the new data coming in goes down to for example row "!2" then picking this link cell will still only select A2:E10. As you can see by the formulas above I have tried several things but they all do not do what I want. Any help will be much appreciated. | |||||||
22 | ||||||||
23 | Get DateSortClearContent | |||||||
DateSort |