Use Excel to edit QGIS attributes?












1















I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?










share|improve this question


















  • 3





    If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.

    – Jakob
    4 hours ago






  • 2





    Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.

    – Rostranimin
    3 hours ago
















1















I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?










share|improve this question


















  • 3





    If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.

    – Jakob
    4 hours ago






  • 2





    Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.

    – Rostranimin
    3 hours ago














1












1








1








I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?










share|improve this question














I know I can open my QGIS .dbf files in Excel (which converts them to .xlsx files). Can I then convert the edited file back into a .dbf file for use in my QGIS project? In other words, can I use the familiar functions, such as find & replace, in Excel, in order to edit my QGIS dbf files?







qgis






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









TVZTVZ

322419




322419








  • 3





    If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.

    – Jakob
    4 hours ago






  • 2





    Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.

    – Rostranimin
    3 hours ago














  • 3





    If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.

    – Jakob
    4 hours ago






  • 2





    Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.

    – Rostranimin
    3 hours ago








3




3





If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.

– Jakob
4 hours ago





If you want to do some data handling in Excel, you can use CSV files in between QGIS and Excel. Ypu can take the geometry with you in CSV as WKT or you can join back the geometry if you have an id.

– Jakob
4 hours ago




2




2





Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.

– Rostranimin
3 hours ago





Not a direct answer, but you may find that there are better ways which are definitely worth the learning - despite the initial lack of familiarity. There are some powerful and fairly simple tools on QGIS directly (field calculator for example). I'd suggest creating a test dataset and just playing with these tools. Also (more advanced) I've recently been using SQL to update data - although (I think) you'd need this in a database - which is fairly easy to achieve (but not entirely intuitive) using Spatialite. Again, worth playing with this. Main point: Excel tools look very limited after this.

– Rostranimin
3 hours ago










2 Answers
2






active

oldest

votes


















5














Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/



Libre Office supports .dbf files natively.



However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.



I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).






share|improve this answer































    2














    The recent Excel version could open/read dbf but no longer save to dbf file.



    Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
    You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.






    share|improve this answer



















    • 3





      similarly, never ever add or delete any row

      – JGH
      3 hours ago











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "79"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f311524%2fuse-excel-to-edit-qgis-attributes%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/



    Libre Office supports .dbf files natively.



    However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.



    I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).






    share|improve this answer




























      5














      Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/



      Libre Office supports .dbf files natively.



      However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.



      I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).






      share|improve this answer


























        5












        5








        5







        Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/



        Libre Office supports .dbf files natively.



        However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.



        I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).






        share|improve this answer













        Natively you can't. But there are addons / plugins for excel to support .dbf format such as http://exceltodbf.sourceforge.net/



        Libre Office supports .dbf files natively.



        However, I do not recommend editing .dbf files (connected to .shp) outside of a GIS. Also never edit column names or add or delete rows unless you really know what you are doing there.



        I prefer using .csv files instead. You can open them with excel, use excel functions and all that stuff (but not saving formulas as .csv is a text file format).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        MrXsquaredMrXsquared

        1,3681316




        1,3681316

























            2














            The recent Excel version could open/read dbf but no longer save to dbf file.



            Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
            You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.






            share|improve this answer



















            • 3





              similarly, never ever add or delete any row

              – JGH
              3 hours ago
















            2














            The recent Excel version could open/read dbf but no longer save to dbf file.



            Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
            You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.






            share|improve this answer



















            • 3





              similarly, never ever add or delete any row

              – JGH
              3 hours ago














            2












            2








            2







            The recent Excel version could open/read dbf but no longer save to dbf file.



            Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
            You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.






            share|improve this answer













            The recent Excel version could open/read dbf but no longer save to dbf file.



            Anyway if you have an older excel version or use other tool to convert back to dbf be very carefull trying to edit shapefile data this way.
            You easily could corrupt your data (the link between the .shp (geometry) and .dbf (attribute table) repose only on the order of data and not on any ID/key) so reordering or sorting the dbf will result in corrupt shapefile where data and geometry didn't match anymore.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 3 hours ago









            J.RJ.R

            3,192222




            3,192222








            • 3





              similarly, never ever add or delete any row

              – JGH
              3 hours ago














            • 3





              similarly, never ever add or delete any row

              – JGH
              3 hours ago








            3




            3





            similarly, never ever add or delete any row

            – JGH
            3 hours ago





            similarly, never ever add or delete any row

            – JGH
            3 hours ago


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f311524%2fuse-excel-to-edit-qgis-attributes%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to label and detect the document text images

            Vallis Paradisi

            Tabula Rosettana