Translate this page

Some beautiful music to read the blog with

Friday 4 October 2024

Eve Excel Add In - a run through of my sheet to calculate my wealth, Part 2

This is the second part on my series looking at the spreadsheets which use the Eve Online Excel Add-in to calculate my net wealth.

This sheet focuses on the assets i hold in hangers and is quite annoying in that i have not yet managed to work out how i can do this in one line per character.

i.e. in the prior sheet for each character it only takes one line to calculate the total Sell Orders for example.

For the assets in hangers i need to list them all out and then make sure i am not counting Blue Print Copies.

The basics of the Spreadsheet is that for each character i list out all the assets in the hangers and then value them off Jita prices.  This will also capture all Blueprint Copies which i need to eliminate.  I then list all the Blueprints and if they are a copy i add them all up and take them away from the first list.  All will be clear on the spreadsheet below.

I also do something similar for the Corporate which captures everything in Corporate Hangers.  I.e. items delivered from courier contracts.



Lets go through the first character:

Cell D4 picks up the character ID from the list i input in column D.  See the prior post in where to get the character IDs.  There are two ways.

Cells E4, F4 and G4 get the character name, system and Region:
=EVEONLINE.CHARACTER(D4), 
=EVEONLINE.SOLARSYSTEM(MODE(EVEONLINE.CHARACTER_ASSETS(D4).final_location.solar_system_id)).solar_system_name, 
=EVEONLINE.REGION(MODE(EVEONLINE.CHARACTER_ASSETS(D4).final_location.region_id)).name)

The real work starts in cell D9 with the formula =EVEONLINE.CHARACTER_ASSETS(D4)

This lists all the assets held in hangers for the character where D4 is the cell containing the character ID.  It will form a list.

Column E will then take each item in column D and get the quantity =D9.quantity

Column F will then get the minimum Sell Price in Jita for each item in Column D =EVEONLINE.MARKET_ORDERS_STATS(10000002,D9.type.id).sell.min

10000002 is the id for The Forge which is the Region where Jita is.

The way this formula works is to bring up all the type.id for each asset item, and then gets the enter market order book in The Forge for this item, and then at the end gets the Sell prices only and then only the minimum.

Column G then multiplies these Columns together to get the value of each asset and then this is all summed up in Cell G7.

But we must now eliminate the value of all Blueprint Copies (which are given the Blueprint Original price).

So, Column I lists all the Blueprints owned by the character =EVEONLINE.CHARACTER_BLUEPRINTS(D4)

Column J then shows how many runs are left for each Blueprint =I9.runs.  If the runs left are -1 then that is a Blueprint Original, otherwise it is a Copy.

Column K then lists the value of only the Copies which in this case instead of multiplying the columns together i just used a new formula =IFERROR(IF(J9<>-1,EVEONLINE.MARKET_ORDERS_STATS(10000002,I9.type.id).sell.min,0),0)

Cell K7 then sums all these Blueprint Copies.

And therefore the sum of all the assets owned is Cell G7 - Cell K7.


Finally, look carefully at how it is done for the Corporation Hangers in columns GB onwards.




No comments:

Post a Comment