ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   wind direction (https://www.excelbanter.com/excel-discussion-misc-queries/35327-wind-direction.html)

TC

wind direction
 
Is there any way of displaying a cell containing a number 0-360 as a
directional indicator (an arrow or something like that). In need to chart
wind speed and direction against some other data nd I can't think how to do
it. (using Excel97)

Thanks


--
Tobit Curteis
________________________
Cambridge
UK



Bill Martin -- (Remove NOSPAM from address)

TC wrote:
Is there any way of displaying a cell containing a number 0-360 as a
directional indicator (an arrow or something like that). In need to chart
wind speed and direction against some other data nd I can't think how to do
it. (using Excel97)

Thanks



-------------

Well a brute force approach would be to create your own symbol font. One where
A is an up arrow, B is an arrow pointing 1 degree to the right, etc.

Someone here will probably have a more elegant solution.

Bill

Dana DeLouis

Would something like this work as a demo? You may have to have an event
macro fire to set this up correctly.

Sub Demo()
Dim angle

[A1] = Chr(223)
[A1].Font.Name = "Wingdings"

With Range("A1")
For angle = -90 To 90 Step 1
.HorizontalAlignment = xlCenter
.Orientation = angle
Next
[A1] = Chr(224)
For angle = -90 To 90 Step 1
.HorizontalAlignment = xlCenter
.Orientation = angle
Next
End With
End Sub


--
Dana DeLouis
Win XP & Office 2003


"TC" wrote in message
...
Is there any way of displaying a cell containing a number 0-360 as a
directional indicator (an arrow or something like that). In need to chart
wind speed and direction against some other data nd I can't think how to
do it. (using Excel97)

Thanks


--
Tobit Curteis
________________________
Cambridge
UK




Bill Martin -- (Remove NOSPAM from address)

Personally, I think that's way cool.

Bill
-------------------------
Dana DeLouis wrote:
Would something like this work as a demo? You may have to have an event
macro fire to set this up correctly.

Sub Demo()
Dim angle

[A1] = Chr(223)
[A1].Font.Name = "Wingdings"

With Range("A1")
For angle = -90 To 90 Step 1
.HorizontalAlignment = xlCenter
.Orientation = angle
Next
[A1] = Chr(224)
For angle = -90 To 90 Step 1
.HorizontalAlignment = xlCenter
.Orientation = angle
Next
End With
End Sub




All times are GMT +1. The time now is 04:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com