Account  |  Mobile  |  Help    
 
Home Database Live Audio Forums Wiki Classifieds Submit Info About

Go Back   The RadioReference.com Forums > Commercial and Professional Radio > MPT-1327 and TETRA Forum


MPT-1327 and TETRA Forum For general discussion of MPT-1327 and TETRA Trunking Technologies

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-2006, 11:28 AM
Jay911's Avatar
Member
 
Database Admin
 
Join Date: Feb 2002
Location: Alberta
Posts: 2,915
Send a message via ICQ to Jay911 Send a message via AIM to Jay911 Send a message via MSN to Jay911 Send a message via Yahoo to Jay911
Default Excel Translation Forumlae (split from Unitrunker thread)

For those who wonder what I'm talking about in the message below - in the thread on Unitrunker Beta 6 in the Trunk Decoders forum, I posted a code snippet to be used with Excel or OpenOffice Calc, to allow one to convert between full decimal values (which Unitrunker saves MPT IDs in) and the prefix-ID format more understandable to the MPT user.

As it turns out, I was able to spend some time on it this morning after all... give these a try.

From decimal to 000-0000 format:

Code:
=TEXT(INT(B2/8192),"000")&"-"&TEXT(MOD(B2,8192),"0000")
It will not stop you from typing in something that will be greater than a 3 digit prefix. I.e. "500000000" will get you "61035-1280". In other words, it doesn't check for a valid MPT talkgroup ID.

To go back from any dashed ID format to decimal, use this one:

Code:
=LEFT(B2,FIND("-",B2)-1)*8192)+(MID(B2,FIND("-",B2)+1,LEN(B2))
This one is a little more tolerant of widths and such .. doesn't matter if it's 2-203 or 002-0203 or 000000002-00000000203 or whatever.

Again, both these assume that the value you want to convert from is in cell B2.
__________________
--j.
VE6SRT

Last edited by Jay911; 12-20-2006 at 11:40 AM..
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 12-20-2006, 11:40 AM
cg cg is offline
Member
 
Premium Subscriber
 
Join Date: Dec 2000
Location: Connecticut
Posts: 838
Default

thanks for the formula

One very minor thing for those who will cut and paste the first formula, add an = to the front of it.

Excel certainly eliminates a lot of back and forth with the Calculator program.

chris
Reply With Quote
  #3 (permalink)  
Old 12-20-2006, 11:44 AM
Jay911's Avatar
Member
 
Database Admin
 
Join Date: Feb 2002
Location: Alberta
Posts: 2,915
Send a message via ICQ to Jay911 Send a message via AIM to Jay911 Send a message via MSN to Jay911 Send a message via Yahoo to Jay911
Default

Quote:
Originally Posted by cg
One very minor thing for those who will cut and paste the first formula, add an = to the front of it.
Thanks, I fixed that just as you were posting.

Quote:
Originally Posted by cg
Excel certainly eliminates a lot of back and forth with the Calculator program.
You should see what I can do with Motorola TypeII vs TypeI (after finding someone else's hard work and adapting it).
__________________
--j.
VE6SRT
Reply With Quote
  #4 (permalink)  
Old 12-20-2006, 12:01 PM
Member
 
Premium Subscriber
 
Join Date: Jan 2004
Posts: 700
Default

Quote:
Originally Posted by Jay
Code:
=TEXT(INT(B2/8192),"000")&"-"&TEXT(MOD(B2,8192),"0000")
It will not stop you from typing in something that will be greater than a 3 digit prefix. I.e. "500000000" will get you "61035-1280". In other words, it doesn't check for a valid MPT talkgroup ID.
Why didn't I think of TEXT...thanks Jay (not that I use excel for doing this!)

Isn't it good the way Excel simplifies things - mmmmm

.......morfis wanders off slapping his forehead
Reply With Quote
  #5 (permalink)  
Old 12-20-2006, 12:03 PM
Jay911's Avatar
Member
 
Database Admin
 
Join Date: Feb 2002
Location: Alberta
Posts: 2,915
Send a message via ICQ to Jay911 Send a message via AIM to Jay911 Send a message via MSN to Jay911 Send a message via Yahoo to Jay911
Default

I had to look it up in the Help myself. Of all the things I can say about Microsoft, the help system for Office XP is pretty good.
__________________
--j.
VE6SRT
Reply With Quote
Sponsored links
  #6 (permalink)  
Old 12-20-2006, 06:55 PM
Member
 
Database Admin
 
Join Date: May 2003
Location: Queensland, Australia
Posts: 295
Default

Jay

Thanks for the formulae. So easy when you know how.

Comint
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT -5. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All information here is Copyright 2009 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2009 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions