Named Range Formula without Sheet Reference

David Kemp

New Member
Joined
Sep 29, 2013
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I have a named range that refers to a formula. By default the formula always creates a worksheet reference and even if I remove it, when saving the formula, it always creates a worksheet reference.

Is it possible to get the formula in the named range to reference the active sheet, or create a formula in the named range without a worksheet reference?

Eg.
Named Range:
Data_Grab
Refers to: =IF(Sheet1!$C109='P&L'!$D$9,IF(Sheet1!$A$1='P&L'!$D$13,VLOOKUP(Sheet1!C$3,'P&L'!$B$22:$D$91,3,0),0),0)

Obviously I could create a seperate named range formula for each worksheet, but with many sheets and VBA that plots this formula in, having no sheet reference would be ideal.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
use just the ! before the range reference ( no sheet name, just the ! )

Like

!A1:A100
 
Upvote 0
Solution
Wow, so simple! I should have known that too. Thanks Jonmo1, you're a legend. :)
 
Upvote 0
@Jonmo1 I created an account on this site specifically to thank you for this excellent trick.

Who would have thought that such a simple action could relieve my headache! Was looking in all kinds of weird directions in order to solve this (CELL/OFFSET/INDIRECT...), and all I needed was an exclamation mark.

Cheers!
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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