# How do I get only the highest price?

**URL:** <https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275>\
**Category:** EVE x Microsoft Excel Add-in\
**Created:** [November 26, 2024, 12:08am UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275 "2024-11-26T00:08:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abbrey\_Agittain](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/abbrey_agittain/32/442003_2.png) [@Abbrey\_Agittain](https://forums.eveonline.com/u/Abbrey_Agittain)\
**Post date:** [November 26, 2024, 12:08am UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/1 "2024-11-26T00:08:42Z")

</div>

In cell C2 is my character. Then in cell C2 I pull market orders:  
=EVEONLINE.CHARACTER\_ORDERS(B2)

Then in D2 I pull all orders of the same type:  
=EVEONLINE.MARKET\_ORDERS(C2.region\_id, C2.type,FALSE)

But I only want to know the highest price, not all the sell orders. How do I get only the highest priced order? Something like:

=EVEONLINE.MARKET\_ORDERS(C2.region\_id, C2.type,FALSE).highest ??!

I want to simulate EveTycoon market orders where it shows how much your price is undercut.

---

<div class="post-metadata">

**Author:** ![Aallin\_Gicquet](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/aallin_gicquet/32/519855_2.png) [@Aallin\_Gicquet](https://forums.eveonline.com/u/Aallin_Gicquet)\
**Post date:** [November 26, 2024, 2:31am UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/2 "2024-11-26T02:31:02Z")

</div>

You might want to check out Eve Guru… It is a new program that works quite well.

---

<div class="post-metadata">

**Author:** ![Geo\_Eclipse\_Oksaras](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/geo_eclipse_oksaras/32/500781_2.png) [@Geo\_Eclipse\_Oksaras](https://forums.eveonline.com/u/Geo_Eclipse_Oksaras)\
**Post date:** [November 26, 2024, 2:34am UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/3 "2024-11-26T02:34:52Z")

</div>

but they want this in the eve excel add-on… telling them another program isn’t helping them.

---

<div class="post-metadata">

**Author:** ![Abbrey\_Agittain](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/abbrey_agittain/32/442003_2.png) [@Abbrey\_Agittain](https://forums.eveonline.com/u/Abbrey_Agittain)\
**Post date:** [November 26, 2024, 3:10am UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/4 "2024-11-26T03:10:34Z")

</div>

I stumbled on the answer myself thanks to Oz’s video on the Skill Dashboard. Turns out it’s an excel function. In this case INDEX but I wrapped that around SORT because I’m not sure if MARKET\_ORDERS always returns highest price first? It seems to but I can’t find any documentation so using SORT to be safe.

=INDEX(SORT(EVEONLINE.MARKET\_ORDERS(C2.region\_id, C2.type,FALSE).price),1)

---

<div class="post-metadata">

**Author:** ![Hundasuupa](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/hundasuupa/32/412082_2.png) [@Hundasuupa](https://forums.eveonline.com/u/Hundasuupa)\
**Post date:** [November 28, 2024, 10:17am UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/5 "2024-11-28T10:17:50Z")

</div>

MARKET\_ORDERS is the raw output of the list, so sorting via the .price is solid.

You can minimize the processing time by using the MARKET\_ORDER\_STATS version that will do the numbers min/max etc. for you.

So for the highest buy order you can do =EVEONLINE.MARKET\_ORDERS\_STATS(region\_id, type\_id).buy.max

and .sell.min for the lowest sell price

---

<div class="post-metadata">

**Author:** ![Abbrey\_Agittain](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/abbrey_agittain/32/442003_2.png) [@Abbrey\_Agittain](https://forums.eveonline.com/u/Abbrey_Agittain)\
**Post date:** [November 30, 2024, 10:33pm UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/6 "2024-11-30T22:33:06Z")

</div>

That is an amazing answer Thanks! For some reason I did not look at market\_orders\_stats.

---

<div class="post-metadata">

**Author:** ![Bewarriot\_Bre\_Maricadie](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/bewarriot_bre_maricadie/32/431274_2.png) [@Bewarriot\_Bre\_Maricadie](https://forums.eveonline.com/u/Bewarriot_Bre_Maricadie)\
**Post date:** [December 29, 2024, 6:12pm UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/7 "2024-12-29T18:12:59Z")

</div>

For Buy order =MAX(EVEONLINE.MARKET\_ORDERS(10000002, $A4.id, 1,$D$2.id).price)  
For Sell order =MIN(EVEONLINE.MARKET\_ORDERS(10000002, $A4.id,0,$D$2.id).price)

 ![Screenshot 2024-12-29 211153](https://global.discourse-cdn.com/eveonline/original/4X/b/2/7/b2700185ed7d72484b0175c6f80647b177bc6f67.png)

---

<div class="post-metadata">

**Author:** ![Anna\_G\_Onzo](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anna_g_onzo/32/390230_2.png) [@Anna\_G\_Onzo](https://forums.eveonline.com/u/Anna_G_Onzo)\
**Post date:** [March 17, 2025, 1:58am UTC](https://forums.eveonline.com/t/how-do-i-get-only-the-highest-price/469275/8 "2025-03-17T01:58:04Z")

</div>

AS above or using streaming the formula is Max or min =MAX(EVEONLINE.MARKET\_ORDERS\_STREAMING(10000002, C3, TRUE).price)
