# Compare Expected Excel with response in Postman

**URL:** <https://community.postman.com/t/compare-expected-excel-with-response-in-postman/43905>\
**Category:** Help Hub\
**Created:** [February 13, 2023, 11:56am UTC](https://community.postman.com/t/compare-expected-excel-with-response-in-postman/43905 "2023-02-13T11:56:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalabuda](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@kalabuda](https://community.postman.com/u/kalabuda)\
**Post date:** [February 13, 2023, 11:56am UTC](https://community.postman.com/t/compare-expected-excel-with-response-in-postman/43905/1 "2023-02-13T11:56:21Z")

</div>

Hello guys,

I have tried to compare expected Excel with Postman response. Is it any automated way for doing this?

I have Excel stored and get request whch is presented like this:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/1/b/1b9f7d2e5135a42ffaf697bfccbb22191ab17e9c.png)

_Details (like screenshots)_:

_How I found the problem_:

_I’ve already tried_:

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 13, 2023, 3:42pm UTC](https://community.postman.com/t/compare-expected-excel-with-response-in-postman/43905/2 "2023-02-13T15:42:35Z")

</div>

I’m not sure what you mean by compare Excel.

Do you mean a work book, the whole file, a CSV file?

Can you break down what you are trying to do into smaller chunks and explain the process you are trying to follow?

Could you also post a screenshot of your request\response, and any code you’ve produced so far to help us understand what you are attempting.

---

<div class="post-metadata">

**Author:** ![kalabuda](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@kalabuda](https://community.postman.com/u/kalabuda)\
**Post date:** [February 13, 2023, 7:52pm UTC](https://community.postman.com/t/compare-expected-excel-with-response-in-postman/43905/3 "2023-02-13T19:52:20Z")

</div>

I would like to compare sth like this:

![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/d/fd946ad9942eadada1ce98b8c09912ac8603822c.png)

My expected file looks like this and I would like to comapre it somehow using Postman in automated way.

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 14, 2023, 12:53pm UTC](https://community.postman.com/t/compare-expected-excel-with-response-in-postman/43905/4 "2023-02-14T12:53:51Z")

</div>

That’s a binary file and I don’t think it’s possible to parse it within Postman to enable you to assert against the data inside it.

You would probably need another API that can do the parsing, which would require some development skills.

The following is an example of parsing PDF’s, but it would be a similar process. It’s an fairly advanced task.

[How to parse PDF files in Postman - YouTube](https://www.youtube.com/watch?v=zwfwJ165zHw)

If the spreadsheet was a CSV file\text instead of binary, you could use the CSV Parse library which is available in the Postman sandbox.

[Postman JavaScript reference | Postman Learning Center](https://learning.postman.com/docs/writing-scripts/script-references/postman-sandbox-api-reference/#using-external-libraries)

[CSV Parse - Usage](https://csv.js.org/parse/)
