# How to change field type from string to number

**URL:** <https://discuss.elastic.co/t/how-to-change-field-type-from-string-to-number/238876>\
**Category:** Elasticsearch\
**Created:** [June 26, 2020, 2:40pm UTC](https://discuss.elastic.co/t/how-to-change-field-type-from-string-to-number/238876 "2020-06-26T14:40:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peirceg](https://avatars.discourse-cdn.com/v4/letter/p/7bcc69/32.png) [@peirceg](https://discuss.elastic.co/u/peirceg)\
**Post date:** [June 26, 2020, 2:40pm UTC](https://discuss.elastic.co/t/how-to-change-field-type-from-string-to-number/238876/1 "2020-06-26T14:40:25Z")

</div>

I have imported some sample sales data and want to change the total profits field from a string to a number. I have no coding experience and do not understand the steps on most google pages. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 24, 2020, 2:40pm UTC](https://discuss.elastic.co/t/how-to-change-field-type-from-string-to-number/238876/2 "2020-07-24T14:40:28Z")

</div>

Closed on July 24, 2020, 2:40pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
