Creating strings for legend

G

gabbey.maps

Several spreadsheet have a row of angles from 0 to 360° step 5° and it
would be great to create a row above that which has a character string
for use in the legend box. This new row would have the angle (0-360)
with " deg" concatenated. What is the expression for this row?

Example:

0 deg 5 deg 10 deg 15 deg

0, 5, 10, 15,

The expression must also work for angles from -180 to +180

-G
 
P

Pete_UK

Assume you want this on row 1 with your degrees starting in A2, put
this in A1:

=TEXT(A2,"0 deg")

Copy this across the row as required.

Hope this helps.

Pete
 
G

gabbey.maps

Assume you want this on row 1 with your degrees starting in A2, put
this in A1:

=TEXT(A2,"0 deg")

Copy this across the row as required.

Hope this helps.

Pete

Thanks.. that expression is returning a #VALUE!

I'll also look in the Help section. Basically I'd like to pick up the
angle value and stick " deg" to it and make that cell a text string.

-G
 
G

gabbey.maps

Assume you want this on row 1 with your degrees starting in A2, put
this in A1:

=TEXT(A2,"0 deg")

Copy this across the row as required.

Hope this helps.

Pete

Got it now.. the correct expression is:

=CONCATENATE(TEXT(A2,"0"), " deg")

or

=CONCATENATE(TEXT(A2,"0"), " °")


where the ASCII code for the ° symbol is: Alt+0176


-G
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top