Row height forumla

Nick147

Board Regular
Joined
Apr 24, 2003
Messages
111
Is there a formula similar to (Cell("Width",A1)) that will tell me the row height instead of column width?
NL
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Nick147

Board Regular
Joined
Apr 24, 2003
Messages
111
What I'm going for is a formula that will tell me if the row height is 0, so I know if the row is hidden or not.

NL
 
Upvote 0

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
The following will give you the Height of Row 1:

RowH = Rows("1:1").RowHeight
MsgBox RowH
 
Upvote 0

Nick147

Board Regular
Joined
Apr 24, 2003
Messages
111
ADVERTISEMENT
I actually wanted a formula to do this for me
Thanks,
NL
 
Upvote 0

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
Kind of a long work around.
Here it is if you want it.

1) Go to Insert | Name | Define.
2) In the Name Field type GetCellHeight
3) In the refers to box, type =Get.Cell(17,A1)

Now if you type in =GetCellHeight in any cell, you will get the Height of Row 1.
 
Upvote 0

Nick147

Board Regular
Joined
Apr 24, 2003
Messages
111
Thank you for your suggestion, but I don't think it will help me.

I'm trying to get my current formula (used to to create row numbers):

=(INDEX(A:A,ROW()-1,1)+1)

to show consecutive numbers even if a row his hidden. For example with my current formula if row 4 his hidden then my row numbers would show 1,2,3,5.
 
Upvote 0

Forum statistics

Threads
1,196,027
Messages
6,012,954
Members
441,740
Latest member
abaz21

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
Top