#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 118
Default Degrees

Hi All
I am trying to input Degrees/minutes/seconds in the one cell.
I have setup a custom format thus:
[h]°:mm':ss''
However, when I type in 017°30'20'' I get 4152480°:00':00''
What am I doing wrong.
All I really want to do is type in 0173020 as a number and have excel make
it look like 017°:30':20''

Any help would be appeciated
Regards
Michael M

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 470
Default Degrees

Michael,

I used CHAR() to obtain the format that you want. However, the way I
figured it out required you to input the number 0713020 (in this example) in
a cell and then have another cell pick up that number and format it like you
want it. If you copy and paste the formula below you will see what I mean.
In my example, have A1 be the cell you enter the number 0173020. Format A1
as TEXT. Then place the below formula in the cell you need to have it in
Deg/Min/Sec.

=IF(A1="","",LEFT(A1,3)&CHAR(186)&":"&MID(A1,4,2)& CHAR(146)&":"&RIGHT(A1,2)&CHAR(148))

Hope this works for you.
Les

"Michael M" wrote:

Hi All
I am trying to input Degrees/minutes/seconds in the one cell.
I have setup a custom format thus:
[h]°:mm':ss''
However, when I type in 017°30'20'' I get 4152480°:00':00''
What am I doing wrong.
All I really want to do is type in 0173020 as a number and have excel make
it look like 017°:30':20''

Any help would be appeciated
Regards
Michael M

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 118
Default Degrees

Les
Thanks for the reponse. It is very close....but.
when I type in 0173020, I get 173º:02:20

It seems to be moving everything over a couple of places
I also tried 173020 with the same answer as above.
Regards
Michael M




"WLMPilot" wrote:

Michael,

I used CHAR() to obtain the format that you want. However, the way I
figured it out required you to input the number 0713020 (in this example) in
a cell and then have another cell pick up that number and format it like you
want it. If you copy and paste the formula below you will see what I mean.
In my example, have A1 be the cell you enter the number 0173020. Format A1
as TEXT. Then place the below formula in the cell you need to have it in
Deg/Min/Sec.

=IF(A1="","",LEFT(A1,3)&CHAR(186)&":"&MID(A1,4,2)& CHAR(146)&":"&RIGHT(A1,2)&CHAR(148))

Hope this works for you.
Les

"Michael M" wrote:

Hi All
I am trying to input Degrees/minutes/seconds in the one cell.
I have setup a custom format thus:
[h]°:mm':ss''
However, when I type in 017°30'20'' I get 4152480°:00':00''
What am I doing wrong.
All I really want to do is type in 0173020 as a number and have excel make
it look like 017°:30':20''

Any help would be appeciated
Regards
Michael M

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 118
Default Degrees

Hi
DUH !!!
I only followed half of your instructions, once I formatted A1 to text the
problem was solved.

Thanks for your help and quick response

Michael M

"WLMPilot" wrote:

Michael,

I used CHAR() to obtain the format that you want. However, the way I
figured it out required you to input the number 0713020 (in this example) in
a cell and then have another cell pick up that number and format it like you
want it. If you copy and paste the formula below you will see what I mean.
In my example, have A1 be the cell you enter the number 0173020. Format A1
as TEXT. Then place the below formula in the cell you need to have it in
Deg/Min/Sec.

=IF(A1="","",LEFT(A1,3)&CHAR(186)&":"&MID(A1,4,2)& CHAR(146)&":"&RIGHT(A1,2)&CHAR(148))

Hope this works for you.
Les

"Michael M" wrote:

Hi All
I am trying to input Degrees/minutes/seconds in the one cell.
I have setup a custom format thus:
[h]°:mm':ss''
However, when I type in 017°30'20'' I get 4152480°:00':00''
What am I doing wrong.
All I really want to do is type in 0173020 as a number and have excel make
it look like 017°:30':20''

Any help would be appeciated
Regards
Michael M

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 470
Default Degrees

Glad it worked out. Are you a pilot by chance? I am.

Les

"Michael M" wrote:

Hi
DUH !!!
I only followed half of your instructions, once I formatted A1 to text the
problem was solved.

Thanks for your help and quick response

Michael M

"WLMPilot" wrote:

Michael,

I used CHAR() to obtain the format that you want. However, the way I
figured it out required you to input the number 0713020 (in this example) in
a cell and then have another cell pick up that number and format it like you
want it. If you copy and paste the formula below you will see what I mean.
In my example, have A1 be the cell you enter the number 0173020. Format A1
as TEXT. Then place the below formula in the cell you need to have it in
Deg/Min/Sec.

=IF(A1="","",LEFT(A1,3)&CHAR(186)&":"&MID(A1,4,2)& CHAR(146)&":"&RIGHT(A1,2)&CHAR(148))

Hope this works for you.
Les

"Michael M" wrote:

Hi All
I am trying to input Degrees/minutes/seconds in the one cell.
I have setup a custom format thus:
[h]°:mm':ss''
However, when I type in 017°30'20'' I get 4152480°:00':00''
What am I doing wrong.
All I really want to do is type in 0173020 as a number and have excel make
it look like 017°:30':20''

Any help would be appeciated
Regards
Michael M



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 118
Default Degrees

Nah, sorry.
I can pilot a bottle of Chardy and I can sometimes pilot a golf ball.
But I am just helping a surveyor out with this problem.

Regards
Michael M

"WLMPilot" wrote:

Glad it worked out. Are you a pilot by chance? I am.

Les

"Michael M" wrote:

Hi
DUH !!!
I only followed half of your instructions, once I formatted A1 to text the
problem was solved.

Thanks for your help and quick response

Michael M

"WLMPilot" wrote:

Michael,

I used CHAR() to obtain the format that you want. However, the way I
figured it out required you to input the number 0713020 (in this example) in
a cell and then have another cell pick up that number and format it like you
want it. If you copy and paste the formula below you will see what I mean.
In my example, have A1 be the cell you enter the number 0173020. Format A1
as TEXT. Then place the below formula in the cell you need to have it in
Deg/Min/Sec.

=IF(A1="","",LEFT(A1,3)&CHAR(186)&":"&MID(A1,4,2)& CHAR(146)&":"&RIGHT(A1,2)&CHAR(148))

Hope this works for you.
Les

"Michael M" wrote:

Hi All
I am trying to input Degrees/minutes/seconds in the one cell.
I have setup a custom format thus:
[h]°:mm':ss''
However, when I type in 017°30'20'' I get 4152480°:00':00''
What am I doing wrong.
All I really want to do is type in 0173020 as a number and have excel make
it look like 017°:30':20''

Any help would be appeciated
Regards
Michael M

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column heading at 45 degrees scott Excel Discussion (Misc queries) 3 July 12th 06 08:11 PM
degrees formula damorrison Excel Worksheet Functions 2 January 22nd 06 04:17 PM
convert decimal degrees to degrees minutes seconds Chris r Excel Discussion (Misc queries) 2 December 6th 05 10:40 PM
excel formula to convert lat/lon degrees to DDD MM SS.SS? cbm Excel Worksheet Functions 1 July 18th 05 08:37 PM
converting from digital degrees to degrees minutes seconds Patricio Boric Excel Worksheet Functions 1 November 28th 04 07:43 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"