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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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
The following will give you the Height of Row 1:

RowH = Rows("1:1").RowHeight
MsgBox RowH
 
Upvote 0
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
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,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

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