<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Survey123 data - commas for blank options? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1104875#M37847</link>
    <description>&lt;P&gt;Hello, I think maybe my issue wasn't understood. My problem is I'm NOT getting commas for the empty options. I would like to get commas inserted in the downloaded file for the empty options (which could be all the options, or just one, or none). Then I can use text-to-columns and not have to manually add empty cells and turn each answer into a Y/N.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the specific question:&lt;/P&gt;&lt;P&gt;1. People: do you see evidence of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;toilet paper/human waste&lt;/LI&gt;&lt;LI&gt;trash&lt;/LI&gt;&lt;LI&gt;road&lt;/LI&gt;&lt;LI&gt;trail&lt;/LI&gt;&lt;LI&gt;unnatural patches of bare soil&lt;/LI&gt;&lt;LI&gt;campsite&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to be able to easily take the Excel output from S123 and make it look like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Location&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;toilet paper&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;trash&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;road&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;trail&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;bare soil&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;campsite&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the way it comes out of the export doesn't allow me to easily use text-to-columns to convert to this format because there are not commas for the empty values. Only the checked values generate text and a comma...e.g.,&lt;/P&gt;&lt;P&gt;toilet paper,road,bare soil&lt;/P&gt;&lt;P&gt;toilet paper,trash,road,campsite&lt;/P&gt;&lt;P&gt;which would give me:&lt;/P&gt;&lt;TABLE border="1" width="100.00000000000001%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Location&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;toilet paper&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;road&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;bare soil&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%"&gt;2&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;toilet paper&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;trash&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;road&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;campsite&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;which I then have to manually add cells so it's all sorted by each issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 16:31:01 GMT</pubDate>
    <dc:creator>SarahTruebe</dc:creator>
    <dc:date>2021-10-05T16:31:01Z</dc:date>
    <item>
      <title>Survey123 data - commas for blank options?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1104591#M37811</link>
      <description>&lt;P&gt;In my Survey123 survey, I have some questions that are multiple/many choice, where users can select Option A, B, C, D, and/or E, for instance.&amp;nbsp;I am frustrated because when I download the Excel file, it will give me answers to that question that look like this:&lt;/P&gt;&lt;P&gt;A, C, E&lt;/P&gt;&lt;P&gt;A, B, C, E&lt;/P&gt;&lt;P&gt;Obviously, when I want to put this into columns in excel, I have to manually add blank cells between each answer. It would be much easier if Survey123 Excel output did this:&lt;/P&gt;&lt;P&gt;A,,C,,E&lt;/P&gt;&lt;P&gt;A,,B,C,,E&lt;/P&gt;&lt;P&gt;If it would automatically do this for me, in Excel I could have columns for each answer to the question.&amp;nbsp;Is there a setting in Survey123 Connect that I am missing, perhaps, to get the output data to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 00:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1104591#M37811</guid>
      <dc:creator>SarahTruebe</dc:creator>
      <dc:date>2021-10-05T00:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 data - commas for blank options?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1104664#M37818</link>
      <description>&lt;P&gt;Hi Sarah&lt;/P&gt;&lt;P&gt;Survey123 creates the comma separated list according to the sequence that the user selects the options. I think for some people that would be the expected behaviour, for others it might be less so.&lt;/P&gt;&lt;P&gt;Regardless, there are two options to get the list sorted. The first option is to use a JavaScript function in your survey to sort the list alphabetically. As far as I know this will require a logged in user so doing that with a public survey wont be an option.&lt;/P&gt;&lt;P&gt;Nonetheless, you can look at something like this to sort the values in JavaScript then just save the output to a new field in your survey:&lt;/P&gt;&lt;PRE&gt;str.&lt;SPAN class=""&gt;split&lt;/SPAN&gt;(&lt;SPAN class=""&gt;","&lt;/SPAN&gt;).&lt;SPAN class=""&gt;sort&lt;/SPAN&gt;().&lt;SPAN class=""&gt;join&lt;/SPAN&gt;(&lt;SPAN class=""&gt;","&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;The other option is to use the functions in Excel to achieve this. There is an Excel blog which details this exact scenario:&lt;/P&gt;&lt;P&gt;&lt;A href="https://exceljet.net/formula/sort-comma-separated-values" target="_blank" rel="noopener"&gt;https://exceljet.net/formula/sort-comma-separated-values&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically you can use the following formula to convert a cells comma separated values to be alphabetical:&lt;/P&gt;&lt;P&gt;=TEXTJOIN(",";1;SORT(FILTERXML("&amp;lt;x&amp;gt;&amp;lt;y&amp;gt;"&amp;amp;SUBSTITUTE(B5;",";"&amp;lt;/y&amp;gt;&amp;lt;y&amp;gt;")&amp;amp;"&amp;lt;/y&amp;gt;&amp;lt;/x&amp;gt;";"//y")))&lt;/P&gt;&lt;P&gt;- which assumes your data is in cell B5&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 06:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1104664#M37818</guid>
      <dc:creator>DeonLengton</dc:creator>
      <dc:date>2021-10-05T06:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 data - commas for blank options?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1104875#M37847</link>
      <description>&lt;P&gt;Hello, I think maybe my issue wasn't understood. My problem is I'm NOT getting commas for the empty options. I would like to get commas inserted in the downloaded file for the empty options (which could be all the options, or just one, or none). Then I can use text-to-columns and not have to manually add empty cells and turn each answer into a Y/N.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the specific question:&lt;/P&gt;&lt;P&gt;1. People: do you see evidence of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;toilet paper/human waste&lt;/LI&gt;&lt;LI&gt;trash&lt;/LI&gt;&lt;LI&gt;road&lt;/LI&gt;&lt;LI&gt;trail&lt;/LI&gt;&lt;LI&gt;unnatural patches of bare soil&lt;/LI&gt;&lt;LI&gt;campsite&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I want to be able to easily take the Excel output from S123 and make it look like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Location&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;toilet paper&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;trash&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;road&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;trail&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;bare soil&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;campsite&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the way it comes out of the export doesn't allow me to easily use text-to-columns to convert to this format because there are not commas for the empty values. Only the checked values generate text and a comma...e.g.,&lt;/P&gt;&lt;P&gt;toilet paper,road,bare soil&lt;/P&gt;&lt;P&gt;toilet paper,trash,road,campsite&lt;/P&gt;&lt;P&gt;which would give me:&lt;/P&gt;&lt;TABLE border="1" width="100.00000000000001%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;Location&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;toilet paper&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;road&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;bare soil&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%"&gt;2&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;toilet paper&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;trash&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;road&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;campsite&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="14.285714285714286%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;which I then have to manually add cells so it's all sorted by each issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 16:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1104875#M37847</guid>
      <dc:creator>SarahTruebe</dc:creator>
      <dc:date>2021-10-05T16:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 data - commas for blank options?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1105072#M37873</link>
      <description>&lt;P&gt;Hi Sarah&lt;/P&gt;&lt;P&gt;Thanks for explaining your scenario so well. I do however think you will be better off doing most of the heavy work in Excel.&lt;/P&gt;&lt;P&gt;You can achieve your requirement with the SEARCH function of Excel:&lt;/P&gt;&lt;P&gt;=IFERROR(IF(SEARCH(F$4;$E$5);"Y";"N");"")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeonLengton_0-1633503665740.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24617iACCA39DF9055E3EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DeonLengton_0-1633503665740.png" alt="DeonLengton_0-1633503665740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;I have attached my Excel example for your convenience.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 07:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1105072#M37873</guid>
      <dc:creator>DeonLengton</dc:creator>
      <dc:date>2021-10-06T07:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 data - commas for blank options?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1106743#M37986</link>
      <description>&lt;P&gt;Thank you! This should work great for all questions that we have like this. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 16:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-data-commas-for-blank-options/m-p/1106743#M37986</guid>
      <dc:creator>SarahTruebe</dc:creator>
      <dc:date>2021-10-12T16:11:06Z</dc:date>
    </item>
  </channel>
</rss>

