Dynamically Named Range

MrDB4Excel

Active Member
Joined
Jan 29, 2004
Messages
348
Office Version
  1. 2013
Platform
  1. Windows
Without using VBA I would like to have a formula to first select all cells in columns A thru E where data exists while disregarding all blank rows below this data. Then with this selection current run the copy as picture routine which is a 2 pick from the menu. First from the Menu's Clipboard's "Copy" selection, then the "Copy as Picture" selection, ultimately choosing from the popup the "Picture" Format selection.
If the copy as picture portion is not doable in a formula that is fine, I would continue using the selection buttons as usual. The most important part is somehow with a formula to select the total range inclusive of data throughout columns A thru E that from time to time may include more or less rows than shown in this example.
In thinking about this it occurs to me that a named range that dynamically changes the range based on the number of rows containing data in columns A thru E is somehow key to this formula working to select the range.
Shown below is a link set to select the data in the named range A_New_Data.

Thanks to anyone who can help me solve this puzzle.

DynamicNamedRange.xlsx
ABCDE
1ReceivedTimeSenderNamesubjectToDoc #
208/21/2021 10:02:09Sender ASubject 1Sender B1 >
308/21/2021 10:28:21Sender BSubject 2Sender A2 >
408/21/2021 17:17:55Sender ASubject 3Sender B3 >
508/21/2021 17:45:05Sender ASubject 4Sender B4 >
608/21/2021 19:06:10Sender ASubject 5Sender B5 >
708/21/2021 22:25:17Sender BSubject 6Sender A6 >
808/22/2021 10:13:10Sender ASubject 7Sender B7 >
9
10Without using VBA I would like to have a formula to first select all cells in columns A thru E where data exists while disregarding all blank rows below this data. Then with this selection current run the copy as picture routine which is a 2 pick from the menu. First from the Menu's Clipboard's "Copy" selection, then the "Copy as Picture" selection, ultimately choosing from the popup the "Picture" Format selection. If the copy as picture portion is not doable in a formula that is fine, I would continue using the selection buttons as usual. The most important part is somehow with a formula to select the total range inclusive of data throughout columns A thru E that from time to time may include more or less rows than shown in this example. In thinking about this it occurs to me that a named range that dynamically changes the range based on the number of rows containing data in columns A thru E is somehow key to this formula working to select the range. Shown below is a link set to select the data in the named range A_New_Data.
11
12
13
14
15
16
17
18
19
20
21Get A1 to E Last Row Of Data
ExampleData
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I found the easiest to be this:
  • Set up the camera tool on your quick access toolbar
    • File > More > Options > Quick Access Toolbar
    • Choose commands not in ribbon > Camera
  • convert your data into a table
  • Under Table Design > Table Name - give the table a meaningful name
    I called mine tblData
  • Under range names.
    Pick a Range Name (I called mine PictureLinkToTable) and put the you table name into the address box in this format.
    =INDIRECT("tblData"&"[#All]")
  • Select the whole table
  • Click on the camera tool
  • Navigate to where you want the table
  • Select an area which will drop in the picture
  • With the picture selected go to the formula bar and type in
    = YourRangeName (in my case = PictureLinkToTable)
Camera icon is:-

1629637852956.png
 
Upvote 0
I found the easiest to be this:
  • Set up the camera tool on your quick access toolbar
    • File > More > Options > Quick Access Toolbar
    • Choose commands not in ribbon > Camera
  • convert your data into a table
  • Under Table Design > Table Name - give the table a meaningful name
    I called mine tblData
  • Under range names.
    Pick a Range Name (I called mine PictureLinkToTable) and put the you table name into the address box in this format.
    =INDIRECT("tblData"&"[#All]")
  • Select the whole table
  • Click on the camera tool
  • Navigate to where you want the table
  • Select an area which will drop in the picture
  • With the picture selected go to the formula bar and type in
    = YourRangeName (in my case = PictureLinkToTable)
Camera icon is:-

View attachment 45379
Thanks Alex. So far I am stuck at "Under range names". I cannot seem to locate this in my menu bar. Perhaps you are referring to the Name Manager under the Formulas tab?
 
Upvote 0
Thanks, I have my range as a named range but I am not understanding what the purpose is of the formula =INDIRECT("tblData"&"[#All]").
Adding that formula to a blank cell returns #VALUE.
Am I supposed to add that formula somewhere specific?
I did the following steps and it seems to work when I added lines or removed lines to or from the table:
  • Select the whole table
  • Click on the camera tool
  • Navigate to where you want the table
  • Select an area which will drop in the picture
  • With the picture selected go to the formula bar and type in
    = YourRangeName (in my case = PictureLinkToTable)
 
Upvote 0
I am in Australia and about to shut down.
When I did it you needed to have a name in name manager with an address
= Indirect(“yourtablename”&”[#All]”)
With your picture selected there will be a formula in the formula bar.
Replace that with = yourrangename

if you don’t do that, yes the existing formula will reflect changes BUT it won’t reflect additional rows added to the table.
 
Upvote 0
I am in Australia and about to shut down.
When I did it you needed to have a name in name manager with an address
= Indirect(“yourtablename”&”[#All]”)
With your picture selected there will be a formula in the formula bar.
Replace that with = yourrangename

if you don’t do that, yes the existing formula will reflect changes BUT it won’t reflect additional rows added to the table.
Okay Alex, Now I understand. Thanks loads.
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,038
Members
452,542
Latest member
Bricklin

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