How to format a cell to calculate the distance based on names of cities in the other two cells

I am using 3.6.1 numbers to display distances in Miles or Km in column 3 based on the names of the cities in columns 1 and 2

For example:

"Boston' appears in the cell"A1"and"New York"in cell"B1. "  I would like that the cell "C1" then automatically read "215 Miles.

I could not find a way to do it. Any help would be appreciated. Thank you in advance.

Hi Nicolas,.

Which you will store the information needed for the numbers compute these results?

If she wants to be a direct calculation of the shortest distance, you will need the geographical location of each of the two cities, as well as an algorithm/formula for the calculation of the circle distance between these two places. Boston-New York, is about 190 miles.

On distance (215 miles) of driving, the calculations are a bit more complicated. They require access to a wide range of data including a "route map" for the area that you want to include, then an algorithm that can look up cities, determine a route between them, find the distance of conduct for each section of this road and add them to the top.

If you place a strict limit on the number of cities and have access to networks "driving distance" which were (and maybe still) included with the paper maps printed of gas stations or AAA (to the United States), CAA (Canada), the AA (in Britain) and other organizations to motorist elsewhere in the world, you might be able to manage it with one or more lookup tables and a search feature appropriate in column C.

Otherwise, you may incur development of Google (or one of several others) team to reinvent the wheel, so to speak, and provide you a stand-alone application to do this.

Or you can choose to use a more suitable and existing tool. Some choices are MapQuest, OpenStreetMap, Bing Maps, Google Maps, or maps (Apple) (included in recent versions of Mac OS X).

Kind regards

Barry

Tags: iWork

Similar Questions

  • I have just re installed Windows XP. Windows installed after three attempts. When I turn on the computer there are three choices of Windows XP. Only the first works how to remove the other two?

    I have just re installed Windows XP. Windows installed after three attempts. When I turn on the computer there are three choices of Windows XP. Only the first works how to remove the other two?

    I have a hard drive. At least two partitions. C: 74.7 GB with 63.3 freespace
    D: 74.2 GB with 70.6 freespace
    These are my original specifications of the hard drive: 160 GB (7200 RPM) SERIAL ATA HARD DRIVE WI
    So I suspect there are at least one or more partitions hidden leaving 11.1 GB for hidden partitions!
    Windows is present on both drives C: & D:. In the directory windows on C:, the oldest entry is 19.12.12, 21.43 last 21.12.12, 22.50
    The first entry in the directory windows on D: is 19.12.12, 18.42 the last 21.12.12, 22.40
    I hope that makes sense to someone, any help gratefully received!

    As long as you have verified you dΘmarrez done on the c: / partition, Yes, you can reformat the drive D: / partition using Windows 'disk management '.

    J W Stuart: http://www.pagestart.com

  • Laptop is dead, how is it, I can still type the other letters?

    original title: im sry! :/ so the keyboard of the laptop is dead? How can I solve this problem?

    im SRY! :/ so the keyboard of the laptop is dead? How can I solve this problem?

    But if its dead, how is that I still can type the other letters?
    Thank you

    Each key on the keyboard has its share in the circuit without dependence on the other keys.  Just because someone broke a window in your home does not mean the rest are too broken. ;-0

    Get the keyboard repaired/replaced.m last time I did it for one person (replaced a laptop keyboard) it took 20 minutes to actually do it-most of the deletion of a lot of small screws and a conservative to avoid losing.  (Not counting the delivery the day 2 of the replacement keyboard.)

    What brand / model of the laptop?

  • How can I share 'My images' with the other user accounts on my computer?

    How can I share 'My images' with the other user accounts on my computer?

    where are the 'experts' on these forums adverstised?  I can't get an answer to a simple question.  Does anyone know how to do this?

    Here we are, ok, I'm not an expert, but try this:

    Right click on 'My images' > share > specific people... > select that you want to share this folder with.

    ...

    After that, try to connect by using a different account. If you will not be able to open C:\Users\"FirstUser"\Pictures, you try to extend the network in the left pane of Windows Explorer > expand ComputerName > expand users > expand "FirstUser" > photos

  • How to make a form field validate that it is the sum of the other two fields?

    Hello

    I'm creating a form, and I'd like one of the fields to validate by making sure that this field is the sum of the other two fields of the form.  Anyone have any ideas on how to go about it?  I know that I need to run a custom validation script, but I don't know where to start - I have never made one for before validation.

    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the validation script custom field that the user enters the value which is supposed to be equal to the sum of the other two.

    Custom validation script

    (function () {}

    Get the value that the user entered

    sVal var = event.value;

    If it is empty, do nothing else

    If (! sVal) {}

    return;

    }

    Converts a string to a number

    nVal = + sVal;

    Get the values of the fields in the form of numbers

    var v1 = + getField("text1").value;

    var v2 = + getField("text2").value;

    Add them together, rounded to two decimals, converting to the number

    var sum = + util.printf ("%.2f", v1 + v2);

    Compare the value of the sum of the other two fields

    Change the user if they do not match

    If (nVal! == $) {}

    App.Alert ("the value entered does not equal to the sum of text1 and text2. Please correct. «, 3) ;

    If you want the value entered was rejected, include the following

    Event.RC = false;

    }

    })();

    Replace "text1" and "text2" with real field names.

  • Using FF 35.0.1 on three devices, one of them shows the new synchronization, the other two show an old, so what's the problem?

    I have Firefox on three systems using sync to keep them in line. All have been updated to 35.0.1, however, only a new sync watch, the other two show the synchronization of the former. The new synchronization version runs on Win7, the other two move on Win7 and Win8-systems. What can be wrong?

    Finally got round to then separate connection for the synchronization service, and it worked.

  • Media Center Question can I have set up as a server and the other two as clients, each using two of the tuners of the card?

    I have 3 computers running Windows 7 Professional, one of them has a four installed tuner DVB - s2 card. I want to configure it as a server and the other two as clients, each using two of the tuners of the card. I understand the media library is able to use the basic network TV tuning cards, so there must be some way for me to configure the server to send the information over the network.

    Any ideas?

    On Fri, September 19, 2014 12:28:56 + 0000, SamJ008 wrote:
     
    > I have 3 computers running Windows 7 Professional, one of them has a four installed tuner DVB - s2 card. I want to configure it as a server and the other two as clients, each using two of the tuners of the card. I understand the media library is able to use the basic network TV tuning cards, so there must be some way for me to configure the server to send the information over the network.
    >>
    >>
    >>
    > Any ideas
     
     
    Start reading here
     
    You will not be able to use your existing tuners like tuner network. Microsoft has
    arrested development of Media Center, so don't expect any new hardware/software to
    appear.
     
     
     
    __________________________________________________________________________________________________
    Barb
    MVP Windows Entertainment and connected home
     
    Please mark as answer if that answers your question
     
     
     
  • How to center text compared to the other two layers

    Hello world

    It seems simple enough: I have two layers of distinct text - both in the same line. One is left-aligned, the other is aligned to the right, so that they specify in the middle. Overall, I want they to be centered.

    Example.PNG

    But because these two texts will have different formulations of various projects, I want to use the model function, so I can edit them in first.

    Is there a way to tell After Effects: "some text there, take two text layers and their Center as a whole."?

    For the life of me I can't figure out how to do. The closest I am to a solution is an expression on the anchor to a null object, which reads:

    W1 = thisComp.layer("Text1").sourceRectAtTime () .width;

    W2 = thisComp.layer("Text2").sourceRectAtTime () .width;

    [(thisComp.width-(w1 + w2)) / 2, value [1]]

    Then the text layers are related to the null value.

    I found this in a post on Creative Cow: multiple text layers to form one. how I can it Center as a whole?: Adobe after effects Expressions

    The problem with that: it works with the text aligned to the right. If you change the text aligned to the left, everything goes to the left.

    Does anyone have an idea how to make this work? It may even be a way simpler than using expressions?

    I hope I could explain the problem. If there's anything missing please let me know.

    Thank you!

    Concerning

    FABI

    There is no demo that is involved in the technique. Alignment tools will not work with a demo. In the screenshot at the top of the page, note the selected text and the reference level setting in the character Panel. I just adjusted the base line in the second paragraph of the text to move it to the top so that it is aligned with the base line in the first paragraph of the text.

    Unfortunately, the process becomes a little more difficult if you want to be able to use this model as an asset of editable text dynamically linked in Premiere Pro. Centering becomes a problem. It's pretty easy to get the width of the text layer but the anchor is based on paragraph and I'm not in any way take the width of the first paragraph of the text and add it to the width of the second paragraph of the text and adjust the anchor point to be at the center of the paragraphs combined.

    You can return to the idea of two layers of text, but use the width of each layer and the ratio between the widths to control the position of a null value. If you then related the two layers for the null value, the null value of centering with an expression based on the width of two layers and the ratio between the width of the left and right text would do the trick. I have to think about how to write this expression a bit. This is probably the solution to your problem, but I don't think I could write this expression in my head.

    What you want to do is to calculate the total width of the two layers (tw) and then calculate the ratio between the width of the two layers (rw / lw) then multiply the width of the layer left by the ratio then you can calculate the offset. You may have to calculate the ratio of the layer from left to the total width of the two layers. As I said, I'll have to think for a minute. There is also the problem of the space between the two layers. You will need to add a space before the first letter of the right text layer, but the size of the right layer won't take into account the space so you have to measure it and add it to keep things perfectly centered.

    EDIT:

    So I did a reflection more and I was doing it too hard. All you have to do is to calculate the difference between the width of the layers both text and divide by 2 and add it to the Center comp. name your layers of text left and right, and then add this expression to a null value.

    r = thisComp.layer ("right Text") .sourceRectAtTime (time, false);

    R.width = RT;

    l = thisComp.layer ("left Text") .sourceRectAtTime (time, false);

    lt = l.width;

    CC = thisComp.width/2;

    DIF = (lt - rt) / 2;

    [dif + cc, value [1]]

    Now, hold down the SHIFT key and parent the two lines of text to null. If you don't want to use the trick of null, you can add the expression of two layers of text. Using the value null makes it easier to move. The expression can also be modified to allow you to position the null or layers wherever you want in the model.

  • How to move from one screen to the other applications?

    In order to organize some screens after installing several applications, how can we move them from one screen to the other?
    I found it possible to place them in the bottom bar and then replace them in the necessary form, but it is very slow...
    Another way?

    Also, is it possible to place the apps where we want to and not automatically bring reorganized (empty filled)?
    Thank you

    DUPE: https://support.mozilla.org/en-US/forums/firefox-os-english-forum/709563

  • How can I find out what all the "others" are on my hard drive?

    I'm trying to free up space, storage, there are so many other space of plug, but I'm not sure how to locate files to remove. Help

    Explains the other > OS X tips storage display

  • Equium A200 - how to access personal Documents by using the other account

    My laptop Equium A200 - my OS Vista home Prem

    During a visit to support symantec a technician took the remote control of this laptop to re - install Norton 360.
    On the restart, I noticed that the office is back in yellow as a guest user account.

    When I got back to normal use, I found that I was blocked on the user account that he started seeing the message from GROUP POLICY has NO CLIENT CONNECTION. ACCESS DENIED.

    Fortunately, there are two accounts and I can use the other, but all documents, photos, music, & favorite disappeared.
    Nothing has been saved because of the original problem of N360 & Symantec can't help.

    It is not a password problem, it is not a.
    How can I go back to the account and it is likely to recover the missing files?

    Thanks for any help, Colwyn

    Hello

    You can copy the files such as photos, Favorites, etc. the old folder user (account) to the other folder of the user.

    This could be done following these steps.
    Go to the Vista C partition :-> user
    Here you must choose your old user account
    Then choose all files and copy it to the new user folder.
    The new user folder has the same name as the user account.

    This should help you to get access to files using different account

  • How to display picture three one on the other

    Hello

    I want to display three picture (same size) on one single screen on the other. Normally in this case in the foreground image will appear.

    But I need to see all images.

    How can I do? Does anyone have an idea?

    Thank you in Advace

    I don't know why your way does not work (and it does not work for me as well), but it seems that there is another way:

    image1.getARGB(dataFullScreen, 0, size, 0, 0, size, size);
    image2G.drawARGB(dataFullScreen, 0, size, 0, 0, size, size);
    

    It works at least on my 4.2.1 simulator ("size" here is a const for 200)

  • How to create a new object on the other list list

    Hello

    I'm trying to insert the result of a query in a list in order to put the new values based on the results of the first query: for example, I have this table which contains records:



    adfcal1.PNG


    My question is:OE to create a new list object on the other hand, if you see the picture shows my list, I want to create another list where I stock ordred values if we in line December we will put 1 in column 12 and if we April we put 1 in the 4th column and if we find in my current line November we put 1 in column 11 :

    I'm stuck in this function

    public List<VisiteCons> MyListResult() {

      
    Query query = em.createQuery("SELECT o FROM Visite o ");
      
    List<Visite> visites = query.getResultList();
      
    List<VisiteCons> result = new ArrayList<VisiteCons>();
      
    for(int row = 0 ; row < visites.size() ; row++) {

      
    int m1 = 0, m2 = 0, m3 = 0, m4 = 0, m5 = 0, m6 = 0, m7 = 0, m8 = 0, m9 = 0, m10 = 0, m11 = 0, m12 = 0;
      
    //Pour m1 january
      
    if(visites.get(row).getM1().equals("janvier")){
      m1
    = 1;
      
    }
      
    VisiteCons vc =  new VisiteCons( m1, m2, m3, m4, m5
      
    , m6, m7, m8, m9
      
    , m10, m11,m12);
      result
    .add(vc);
      
    }
      
    return  result;

    }

    VisiteCons is a constructor that I created.



    and this my entity:

    package model;

    import java.io.Serializable;

    Import javax.persistence.Column;

    Import javax.persistence.Entity;

    Import javax.persistence.Id;

    Import javax.persistence.NamedQueries;

    Import javax.persistence.NamedQuery;

    @Entity

    @NamedQueries ({@NamedQuery (name = "Visite.findAll", query = "select visit o o")})

    Visit/public class implements Serializable {}

    private public static final long serialVersionUID =-6069673717468618734 L;

    @Column (length = 4000)

    private String year;

    @Column (nullable = false, length = 100)

    customer private string;

    @Column (length = 4000)

    private String dep.

    @Column (length = 4000)

    private String State;

    @Id

    @Column (nullable = false, length = 100)

    private String idvisite;

    @Column (length = 4000)

    private String ingaff;

    @Column (length = 20)

    private String m1;

    @Column (length = 20)

    private String m10;

    @Column (length = 20)

    private String m11;

    @Column (length = 20)

    private String m12;

    @Column (length = 20)

    private String m2;

    @Column (length = 20)

    private String m3;

    @Column (length = 20)

    private String m4;

    @Column (length = 20)

    private String m5;

    @Column (length = 20)

    private String m6;

    @Column (length = 20)

    private String m7;

    @Column (length = 20)

    private String m8;

    @Column (length = 20)

    private String m9;

    @Column (length = 4000)

    private String moisvisite;

    @Column (length = 4000)

    private String nbvisites;

    @Column (length = 4000)

    private String prbvisite;

    public Visite() {}

    }

    Visit public (String year, String customer, String dep, State of, string idvisite, String ingaff, String m1,

    M10, m11 String, String m12, m2, m3, m4, m5 String String String String String, string m6, m7 of the chain,

    String m8, m9 String, String moisvisite, String nbvisites, String prbvisite) {}

    This.Annee = year;

    This.client = client;

    This.DEP = dep;

    This.Etat = State;

    This.idvisite = idvisite;

    This.ingaff = ingaff;

    This.M1 = m1;

    This.M10 = m10;

    This.M11 = m11;

    This.M12 = m12;

    This.M2 = m2;

    This.M3 = m3;

    This.M4 = m4;

    This.M5 = m5;

    This.M6 = m6;

    This.M7 = m7;

    This.M8 = m8;

    This.M9 = m9;

    This.moisvisite = moisvisite;

    This.nbvisites = nbvisites;

    This.prbvisite = prbvisite;

    }

    public String {} year

    return year;

    }

    {} public void Name\backup (String year)

    This.Annee = year;

    }

    public String getClient() {}

    customer feedback;

    }

    {} public void setClient (string customer)

    This.client = client;

    }

    public String getDep() {}

    return the dep;

    }

    {} public void setDep (String dep)

    This.DEP = dep;

    }

    public String getEtat() {}

    return status;

    }

    {} public void setEtat (String State)

    This.Etat = State;

    }

    public String getIdvisite() {}

    Return idvisite;

    }

    {} public void setIdvisite (String idvisite)

    This.idvisite = idvisite;

    }

    public String getIngaff() {}

    Return ingaff;

    }

    {} public void setIngaff (String ingaff)

    This.ingaff = ingaff;

    }

    public String getM1() {}

    return m1;

    }

    public void setM1 (String m1) {}

    This.M1 = m1;

    }

    public String getM10() {}

    return m10;

    }

    public void setM10 (String m10) {}

    This.M10 = m10;

    }

    public String getM11() {}

    return the m11;

    }

    public void setM11 (String m11) {}

    This.M11 = m11;

    }

    public String getM12() {}

    return m12;

    }

    public void setM12 (String m12) {}

    This.M12 = m12;

    }

    public String getM2() {}

    return m2;

    }

    public void setM2 (String m2) {}

    This.M2 = m2;

    }

    public String getM3() {}

    return m3;

    }

    public void setM3 (String m3) {}

    This.M3 = m3;

    }

    public String getM4() {}

    Return to m4;

    }

    public void setM4 (String m4) {}

    This.M4 = m4;

    }

    public String getM5() {}

    return m5;

    }

    public void setM5 (String m5) {}

    This.M5 = m5;

    }

    public String getM6() {}

    return of m6;

    }

    public void setM6 (String m6) {}

    This.M6 = m6;

    }

    public String getM7() {}

    return m7;

    }

    public void setM7 (String m7) {}

    This.M7 = m7;

    }

    public String getM8() {}

    back m8;

    }

    public void setM8 (String m8) {}

    This.M8 = m8;

    }

    public String getM9() {}

    return m9;

    }

    public void setM9 (String m9) {}

    This.M9 = m9;

    }

    public String getMoisvisite() {}

    Return moisvisite;

    }

    {} public void setMoisvisite (String moisvisite)

    This.moisvisite = moisvisite;

    }

    public String getNbvisites() {}

    Return nbvisites;

    }

    {} public void setNbvisites (String nbvisites)

    This.nbvisites = nbvisites;

    }

    public String getPrbvisite() {}

    Return prbvisite;

    }

    {} public void setPrbvisite (String prbvisite)

    This.prbvisite = prbvisite;

    }

    }

    You can create a view in the db which reads the data from the table and display it in a different way. Then you use the view to get the data in the format and display it in the user interface

    Sample:

    -create a test line

    Select 1 id, m1 'sep', 'mar' m2, m3 'Feb' from dual;

    -output:

    ID: M1 M2 M3

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

    1 sep mar Feb

    -which means that your table has a row with Id = 1 nd three visits (MS, mar and Feb).  Now give us a different look from these data using the select statement

    SELECT id,

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), "jan") > 0 then 'X' other ' ' end) jan.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| ((m3), "February") > 0 then 'X' other ' ' end) Feb.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), "mar") > 0 then 'X' other ' ' end) mar.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), ("apr") > 0 then 'X' other ' ' end) Apr.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| ((m3), 'can') > 0 then 'X' other ' ' end) may,

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), "jun") > 0 then 'X' other ' ' end) June,.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), "Jun") > 0 then 'X' other ' ' end) Jul.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| ((m3), "August") > 0 then 'X' other ' ' end) aug.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), "MS") > 0 then 'X' else ' ' end) Ms.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), 'OCTS') > 0 then 'X' other ' ' end) oct.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), "nov") > 0 then 'X' other ' ' end) nov.

    (case when ((m1||' +'|| m2 ||) instr)) » +'|| (m3), "dec") > 0 then 'X' other ' ' end) dec

    from (select 1 id, m1 'sep', 'mar' m2, m3 "feb" double);

    -output

    ID J F M A M J J A S O N D

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

    1 X X X

    or tabular

    You can create a similar sql statement (and there are better ways to do this, but I'm not the whiz sql) and use it to create a database from this view.

    I don't understand what you mean by

    .. and is there a solution of programmatly

    Timo

  • Was one of my PSD file placed in Indesign export to format PDF is small but the other is very large. WHY?

    Dear all,

    I am facing an unknown problem when I export the PDF file from indesign. I check around all the Images, I found that when some of the PSD files has been placed in indesign and exported to PDF format, the file size is very large. Please see the joint (large_size).  But some are normal, please see the joint (small_size). And you can see that the PSD file is no difference in Photoshop. And PDF output setting is the same, please see the other clip.


    What is the problem of the PSD file? Why the result is a huge different?

    large_size.png

    small_size.png

    Export PDF setting.png

    Really? If I open "S6_edge_gold 2.psd" and in the layers palette, right-click "Layer 1", "Duplicate layer", select New destination and save the new DSP, the DSP news is only 5.8 MB. Placed in an InDesign document and PDF export is no longer made a bloated file.

  • How do you put one layer behind the other part?

    In photoshop, I am doing a logo. I want the ends of each "S" in this image to go in the other, but I don't want the whole S behind the other. How can I do this?

    Add a layer mask by clicking on the mask icon in the layers panel. Ctrl/cmd click on the layer icon to make a choice:

    Ctrl/cmd-alt/opt-shift-click on the icon to the other layer. Will you limit so the selection just areas exceeded shape both knees. Select the layer mask, and with a paint brush of black paint on the areas you don't want.

Maybe you are looking for