Solved

amend current formula to amend table row height

Posted on 2014-02-14
5
238 Views
Last Modified: 2014-02-15
Hi Experts excel 2007

I am using the following formula in cell a6 =row(a$53)-row(a $6)-1

In a6 I have formula =max (a6,1)

In colc.                     Cold.                      
Sheet1! C6:c53.       Sheet1! D6:d53

I want the value of A53 (formula in a6) to increase and decrease as row are add or deleted from table.
Assume table A6:d53
0
Comment
Question by:route217
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Harry Lee
Comment Utility
route217,

Have you considered using dynamic named range?

BTW, in your question there seem to have some cell reference error.

You said A6 formula is =Row(A$53)-row(A$6)-1

Then you said
A6 formula is =Max(A6,1)

Set a named range Called LastRw or something with the following reference
=row(OFFSET($A$1,COUNTA($A:$A)-1,0))

This way, the LastRw is always reference to the last cell with data in column A.
0
 

Author Comment

by:route217
Comment Utility
Harry lee
Firstly thanks for the excellent feedback. .do u have any explain wrkbk you could kindly attached,  please.
0
 

Author Comment

by:route217
Comment Utility
Example.
0
 
LVL 12

Accepted Solution

by:
Harry Lee earned 500 total points
Comment Utility
Take a look at the sample workbook.

Without seeing your spreadsheet, this is a basic sample I can put together.
Dynamic-Named-Range-Sample.xlsx
0
 
LVL 12

Expert Comment

by:Harry Lee
Comment Utility
For more guideline, you can take a look at this microsoft post.

Dynamic Named Range
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now