{"id":12228,"date":"2023-07-17T06:11:18","date_gmt":"2023-07-17T10:11:18","guid":{"rendered":"https:\/\/www.engineeringradio.us\/blog\/?p=12228"},"modified":"2023-07-17T06:11:19","modified_gmt":"2023-07-17T10:11:19","slug":"excel-spreadsheet-formulas-for-broadcast-engineers","status":"publish","type":"post","link":"https:\/\/www.engineeringradio.us\/blog\/2023\/07\/excel-spreadsheet-formulas-for-broadcast-engineers\/","title":{"rendered":"Excel spreadsheet formulas for Broadcast Engineers"},"content":{"rendered":"\n<p>There are many times when some mathematics is needed in this profession.  For one-off situations, the calculator applications found on most smartphones will work just fine.  However, sometimes the calculation is complex or is needed to be repeated many times.  Excel Spreadsheets have many mathematical functions built in.  Plugging a formula into an Excel spreadsheet is a handy tool.  <\/p>\n\n\n\n<p>I recently acquired this rather nice precision power meter:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"650\" src=\"https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/minicircuits-pwr-1200x650.jpg\" alt=\"\" class=\"wp-image-12241\" srcset=\"https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/minicircuits-pwr-1200x650.jpg 1200w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/minicircuits-pwr-650x352.jpg 650w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/minicircuits-pwr-150x81.jpg 150w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/minicircuits-pwr-768x416.jpg 768w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/minicircuits-pwr-1536x832.jpg 1536w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/minicircuits-pwr-2048x1109.jpg 2048w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption class=\"wp-element-caption\">Mini Circuits precision power meter<\/figcaption><\/figure>\n\n\n\n<p>It has an input power range of -60 to +20 dBm with a stern warning not to exceed +23 dBm.  Since we will be using this for a variety of applications, I thought it might be useful to know approximately how much power will be presented to the instrument in any given situation.  For example, we are installing a 30 KW FM transmitter soon.  The directional coupler that will be used has a coupling factor of -48.5 dBm.  The TPO is 28,000 watts.  <\/p>\n\n\n\n<p>The formula to convert Watts to dBm is dBm=10 X Log10(<em>Pw<\/em>) + 30, where <em>Pw<\/em> is power in Watts.  Thus dBm=10 X log10(28000) + 30 or 74.4715 dBm minus the 48.5 dBm coupling factor which is 25.9715 dBm.   That is too much input for this power meter.  A 20 dB attenuator will need to be used.<\/p>\n\n\n\n<p>Since I will be using this meter in other places, rather than doing that calculation over and over again, why not build an Excel spreadsheet?  That would make it easy to check.<\/p>\n\n\n\n<p>A simple Watts to dBm calculator in Excel looks like this: <\/p>\n\n\n\n<pre class=\"wp-block-verse\">=(10*LOG(C6))+30<\/pre>\n\n\n\n<p>This is copied into cell C11.  C6 is the cell in which the Transmitter output power in watts is entered.  The other cells contain the coupling factor (C5) and external attenuation (C7) In application, it looks something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1035\" height=\"624\" src=\"https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/excel-power-meter.jpg\" alt=\"\" class=\"wp-image-12242\" srcset=\"https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/excel-power-meter.jpg 1035w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/excel-power-meter-650x392.jpg 650w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/excel-power-meter-150x90.jpg 150w, https:\/\/www.engineeringradio.us\/blog\/wp-content\/uploads\/2023\/07\/excel-power-meter-768x463.jpg 768w\" sizes=\"auto, (max-width: 1035px) 100vw, 1035px\" \/><figcaption class=\"wp-element-caption\">Excel spreadsheet power meter calculations<\/figcaption><\/figure>\n\n\n\n<p>You can arrange these any way you like, just change the cell numbers to suit your needs.<\/p>\n\n\n\n<p>I like to make the data entry cells green.  You can lock the formula cells so that the formulas don&#8217;t get changed accidentally.  Below the Approximate port power cell, is the IF statement that will return either a &#8220;LOW&#8221;, &#8220;HIGH&#8221;, or &#8220;OK&#8221; depending on the result value in C11.  That looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=IF(C11&gt;C9,\"HIGH\",IF(C11&lt;C8,\"LOW\",\"OK\"))<\/pre>\n\n\n\n<p>The spreadsheet itself is downloadable: <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.google.com\/spreadsheets\/d\/12XzE8KoNNCtrH6yYsqutRvqzID-WLzC5\/edit?usp=sharing&amp;ouid=111285384989660780172&amp;rtpof=true&amp;sd=true\" target=\"_blank\">Power meter port calculator<\/a><\/p>\n\n\n\n<p>It would be very easy to make a system gain\/loss calculator for using the licensed ERP to calculate the proper TPO.<\/p>\n\n\n\n<p>Other examples of useful Excel spreadsheet formulas:<\/p>\n\n\n\n<p>To convert from dBm to watts: <\/p>\n\n\n\n<pre class=\"wp-block-verse\">=10^((B22-30)\/10)<\/pre>\n\n\n\n<p>B22 is the cell in which the power in dBm is entered.  These can be any place you want on the spreadsheet.<\/p>\n\n\n\n<p>Radio Frequency to Wavelength in Meters: <\/p>\n\n\n\n<pre class=\"wp-block-verse\">=299792458\/B10 <\/pre>\n\n\n\n<p>Where B10 is the cell in which the frequency in Hz is entered.  299792458 is the speed of light (Meters per second) in a vacuum.  If you wanted the input frequency to be in kHz, simply move the decimal point for the speed of light three places to the left, e.g. 299792.458.  For MHz move the decimal four places to the left, GHz five places, etc.<\/p>\n\n\n\n<p>Convert electrical degrees to Meters: <\/p>\n\n\n\n<pre class=\"wp-block-verse\">=(299792.458\/B10)\/360*B11<\/pre>\n\n\n\n<p>Where B10 is the frequency in kHz and B11 is the number of electrical degrees in question.<\/p>\n\n\n\n<p>An example of that in an Excel Spreadsheet can be downloaded: <a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1XjhgnDPKpQjtL5-gX9Z9L3K-XoAMlVyM\/edit?usp=sharing&amp;ouid=111285384989660780172&amp;rtpof=true&amp;sd=true\" target=\"_blank\" rel=\"noreferrer noopener\">Frequency to Wavelength converter<\/a><\/p>\n\n\n\n<p>Audio Frequency to Wavelength in Meters:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=(20.05*(273.16+B11)^0.5)\/B12<\/pre>\n\n\n\n<p>Where B11 is the air temperature in degrees Celsius and B12 is the frequency in Hz.  Room temperature is normally about 21 degrees Celsius (about 70 degrees Fahrenheit). Humidity and altitude can also affect the sound wave velocity, which will affect the wavelength.<\/p>\n\n\n\n<p>Base (or common point) current calculator using base impedance and licensed power:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=SQRT(B12\/B11)<\/pre>\n\n\n\n<p>Where B12 is the License power in watts and B11 is the measured base impedance of the tower (or common point impedance of the phasor).<\/p>\n\n\n\n<p>Convert meters to feet:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=B11\/0.3048<\/pre>\n\n\n\n<p>Where B11 is the length in meters<\/p>\n\n\n\n<p>Convert feet to meters:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=B12*0.3048<\/pre>\n\n\n\n<p>Where B12 is the length in feet.<\/p>\n\n\n\n<p>Convert degrees F to degrees C:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=(B11-32)\/1.8<\/pre>\n\n\n\n<p>Where B11 is the degrees Fahrenheit<\/p>\n\n\n\n<p>Convert degrees C to degrees F:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=(B12*1.8)+32<\/pre>\n\n\n\n<p>Where B12 is the degrees Celsius.  In this case, the order of operations will work without the prentices but I kept them in place for uniformity. <\/p>\n\n\n\n<p>Convert BTU to KW:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=B11\/3412.142<\/pre>\n\n\n\n<p>Where B11 is the BTU\/hr<\/p>\n\n\n\n<p>Example of an Air Conditioner load estimation:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">=(B11*B12-B11)*3412.142<\/pre>\n\n\n\n<p>Where B11 is the TPO, B12 is the transmitter AC to RF efficiency.  The output is in BTU.<\/p>\n\n\n\n<p>There is an entire list of Excel functions here: <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188\" target=\"_blank\" rel=\"noreferrer noopener\">Excel Functions (alphabetic order)<\/a><\/p>\n\n\n\n<p>You get the idea.  Yes, there are smartphone applications as well as online calculators for most of these functions.  However, I have found smartphone apps are becoming more painful to deal with as time goes on, mostly due to the ads.  App developers need to make money, and you can buy apps for things that are often used.  However, it is nice to have these types of calculators available offline.  Besides, it is fun to play around with Excel formulas.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many times when some mathematics is needed in this profession. For one-off situations, the calculator applications found on most smartphones will work just fine. However, sometimes the calculation is complex or is needed to be repeated many times. Excel Spreadsheets have many mathematical functions built in. Plugging a formula into an Excel spreadsheet &hellip; <a href=\"https:\/\/www.engineeringradio.us\/blog\/2023\/07\/excel-spreadsheet-formulas-for-broadcast-engineers\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Excel spreadsheet formulas for Broadcast Engineers<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":9511,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[32,221,15],"class_list":["post-12228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-stuff","tag-am-transmitters","tag-dtv","tag-fm-transmitters"],"_links":{"self":[{"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/posts\/12228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/comments?post=12228"}],"version-history":[{"count":15,"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/posts\/12228\/revisions"}],"predecessor-version":[{"id":12254,"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/posts\/12228\/revisions\/12254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/media\/9511"}],"wp:attachment":[{"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/media?parent=12228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/categories?post=12228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engineeringradio.us\/blog\/wp-json\/wp\/v2\/tags?post=12228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}