?
Solved

Excel Row Column Pts to Inch

Posted on 2000-02-19
8
Medium Priority
?
15,206 Views
Last Modified: 2011-08-18
Does any body know How to Convert
Excel Rows Height to Inches
Excel Column Width to Inches
Or Is there any formula to Convert
Row Col H W Points to Inches
0
Comment
Question by:deepakahuja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 9

Accepted Solution

by:
david_levine earned 80 total points
ID: 2538129
1 point =  20 twips
1 twip  =  1/1440 pouce (inch)

So... 72 points = 1 inch

You also posted your question twice so you should go to the other question and withdraw it.

David
0
 

Author Comment

by:deepakahuja
ID: 2538254
Hey David
Can You Explain Little bit More
It's not working that way in Excel
Rows and Columns have a different
set of nos. I don't know why.....
Col Width of 10 is lot more than
Row height of 10
I am cofused Please Explain Little More
about it
Thanks
0
 
LVL 13

Expert Comment

by:cri
ID: 2538275
XL: How Column Widths Are Determined in Excel  http://support.microsoft.com/support/kb/articles/Q73/5/91.ASP
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 9

Expert Comment

by:david_levine
ID: 2538291
I just found this searching for more details...

------------------------------
Making Squares
------------------------------
One of the (many) frustrating things about Excel is that it uses different units of measurement to specify the height of rows and the width of columns.
 
Row height is pretty straightforward--it is measured in points. Column width, however, is measured in character widths. If your Standard style is set to Courier 10, then a column width of 12 means that you can fit exactly twelve characters in a given column. For proportional fonts, the character 0 is used to count the characters. (Yup, it's absurd.)
 
This leads to problems if you want the height and width of a
particular cell to match, thereby making a square. Fortunately, with a little macro wizardry you can bypass this oddity of Excel and achieve the desired results. Consider the MakeSquare macro:
 
    Sub MakeSquare()
        Dim WPChar As Double
        Dim DInch As Double
        Dim Temp As String
 
        Temp = InputBox("Height and width in inches?")         DInch = Val(Temp)
        If DInch > 0 And DInch < 2.5 Then
            For Each c In ActiveWindow.RangeSelection.Columns
                WPChar = c.Width / c.ColumnWidth
                c.ColumnWidth = ((DInch * 72) / WPChar)
            Next c
            For Each r In ActiveWindow.RangeSelection.Rows
                r.RowHeight = (DInch * 72)
            Next r
        End If
    End Sub
 
This macro prompts you for the dimension of the square you want to create, and then calculates exactly how wide and high to set each cell. You can run the macro with a single cell selected, or you can make a larger selection set.
 
The "math magic" is done in the calculating of the WPChar variable. This is set to a value derived by dividing the width of the column in points (returned by the Width property) by the width of the column in characters (returned by the ColumnWidth property). This value, which is the number of points in a character at the current settings, is then used to calculate how many characters should be used to set the width in the next program line.
0
 

Author Comment

by:deepakahuja
ID: 2539151
Thanks David
for the Square Macro
What I was trying to achieve
was to print Labels in Excel
instead of Word So I can use my Excel
data but unfortunately it seams
immpossible to format the rows and
columns to print Labels
Thanks again for all effort.....
0
 
LVL 13

Expert Comment

by:cri
ID: 2539526
Basically you have 2 options:

a) Mail merge your Excel data into Word and then use its Label feature. Please ask another question if you need assistance on this matter.

b) Not recommended but feasible: With some try and error you can format a worksheet such that the cell(s) will be printed ok. Whether you use one cell per label (*) or one cell per line is a matter of personal preference, I would take the latter unless you data structure does not allow it.

(*) Use the "&" operator (or the CONCATENATE function) to gather the data. Format the cell as word wrapping. As most probably the line breaks are not where you want them, use the following trick: In one cell, say A2, focus the formula bar and press Alt+Enter. This is equivalent to Shift+Enter in Word. Then use &$A$2 (or $A$2) to enforce wrapping.  
0
 

Author Comment

by:deepakahuja
ID: 2540459
Thanks Cri
0
 
LVL 13

Expert Comment

by:cri
ID: 2540633
You are welcome.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
New style of hardware planning for Microsoft Exchange server.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

765 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