banner_ad

Dynamic named ranges (ms excel)

Excel 1243 views 7 replies

 

 

Named ranges are among the most powerful features of Excel, especially when used as the source range for list controls, PivotTables, or charts. A problem arises, however, when the contents of a list change often. It would be a problem to have to redefine your named ranges everytime a table has records added or removed. The solution is to create a range that will automatically adjust based on the number of items in the list.

 

 

First, create a list in column A of a worksheet.

 

 

If you are working on a version EARLIER than Excel 2007 :

 

 

From the worksheet’s Insert menu choose Names then the Define…. Enter a name for your new range, such as MySheet!rngDynamic. Then, in the Refers to: box, enter the following:

 

 

=OFFSET(MySheet!$A$1,0,0,COUNTA(MySheet!$A:$A),1)

 

 

The user interface changed with Excel 2007. So instead, from the Formulas menu go to theDefine Names group and create this named range fron the Define Name command.

 

 

How It Works:

 

 

The first argument for the OFFSET function is the cell on which you want to anchor it. Everything else will be set relative the this cell address. Typically, you will want it to be either the header for the first field in your source data table or its first record.

 

 

Click Here TO Continue Reading

Replies (7)

Thanks a lot sir..............

Dear Sir,

You can attached Example File in excel formet with this Massage.

 

Originally posted by : Ram Avtar Singh

Dear Sir,

You can attached Example File in excel formet with this Massage.

 

hi sir one example file is attached,i have shown its use in Vlookup Formula

nice & useful

thanks ankur ji again....very valuable sharing once again!!!

Dear sir,

Thanks for sharing this type of file so all member can learn easily by example.

 

Originally posted by : Ram Avtar Singh

Dear sir,

Thanks for sharing this type of file so all member can learn easily by example.

 

 

 

sir, i have learned this thing from you.....


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
ARTICLESHIP 15 May 2026
Audit Assistant / Article Trainee / Intern

SSGS and Associates

Chennai

CA Inter

View Details
Company
26 May 2026
Senior Accountant cum purchase Manager

Vardhaman Group of India

Pimpri Chinchwad

CA Inter

View Details
Company
ARTICLESHIP 14 May 2026
CA ARTICLE

PRAVEEN GARG & CO

Faridabad

CA Foundation

View Details
Company
14 May 2026
Financial Analyst - Remote Finance Expert

HiringBridge

Ahmedabad

CA

View Details
Company
ARTICLESHIP 23 May 2026
Article Assistants

Acupro Consulting

Gurgaon

CA Inter

View Details
Company
ARTICLESHIP 08 June 2026
Internal & Taxation Article

O P Bagla & Co LLP

New Delhi

CA Inter

View Details
Company
ARTICLESHIP 27 May 2026
CA Article Trainee

Rahul Dang & Associates-Chartered Accountants

Pune

CA Inter

View Details
Company
16 May 2026
Audit clerk

mgirt & co

Bengaluru

CA Inter

View Details