# Need help in appending multiple values in excel cell - ansible

**URL:** <https://forum.ansible.com/t/need-help-in-appending-multiple-values-in-excel-cell-ansible/37506>\
**Category:** Ansible Project\
**Created:** [December 29, 2022, 6:37am UTC](https://forum.ansible.com/t/need-help-in-appending-multiple-values-in-excel-cell-ansible/37506 "2022-12-29T06:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumaresan\_M](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Post date:** [December 29, 2022, 6:37am UTC](https://forum.ansible.com/t/need-help-in-appending-multiple-values-in-excel-cell-ansible/37506/1 "2022-12-29T06:37:59Z")

</div>

Hi All,

We are registering output of some commands and need to store output in excel format.The challenge is to append multiple values in excel cell.Could someone help here?

Regards  
Kumar

---

<div class="post-metadata">

**Author:** ![lee](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/lee/32/4857_2.png) [@lee](https://forum.ansible.com/u/lee)\
**Post date:** [January 3, 2023, 10:00am UTC](https://forum.ansible.com/t/need-help-in-appending-multiple-values-in-excel-cell-ansible/37506/2 "2023-01-03T10:00:06Z")

</div>

Here is an example

[http://www.uni-koeln.de/~pbogusze/posts/Ansible\_export\_facts\_to\_simple\_csv\_file.html](http://www.uni-koeln.de/~pbogusze/posts/Ansible_export_facts_to_simple_csv_file.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [January 5, 2023, 4:49pm UTC](https://forum.ansible.com/t/need-help-in-appending-multiple-values-in-excel-cell-ansible/37506/3 "2023-01-05T16:49:44Z")

</div>

concatenate within the , ?

{{ var1 ~ var2}}, {{var3}, {{var4}} ...

though i would just do it all in one go:

{{ ','|join([var1 ~var2, var3, var4 ...]) }}
