Excel 2013 - WEBSERVICE and FILTER XML

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
Trying to pull the Manufacturing cost index from an XML pull. The XML comes from https://api.eve-industry.org/system-cost-index.xml?name=Osmon

I successfully used the WEBSERVICE function in excel to create and pull the data;
<CODE>
Code:
B2 = Above Link, C2 = System name (i.e. Osmon)
</CODE><CODE>
Code:
=WEBSERVICE(CONCATENATE(B2,C2))
</CODE>
My question is, how do I used FILTERXML to pull just the Manufacturing data? So far I have
<CODE>
Code:
=FILTERXML(P29,"//Manufacturing")
</CODE>But it only returns a #VALUE ! error. I have also tried a bunch of other ways.
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Try

=FILTERXML(A11,"//solarsystem/activity[@name='Manufacturing']")

or

=FILTERXML(A11,"//activity[@name='Manufacturing']")
 
Upvote 0
Here is another question for you, if you don't mind. If I have another API that I want to pull. Which works fine. This one is for the "Base Installation Cost" https://api.eve-industry.org/job-ba...845,42138,42136,42137,23918,28849,12732,12754

If I have a table, outlined below. Is there a formula that I can copy/paste with FilterXML that will autopopulate based off of the blueprint name?
Blueprint Name
Base Job Installation Cost
Aeon Blueprint
(Formula goes here)
Archon Blueprint
Avatar Blueprint
Bowhead Blueprint

<TBODY>
</TBODY>
Tried this, but it doesn't work xD (O3 is the (Formula goes here))
Code:
=FILTERXML('API Pulls'!B11,"//job-base-cost[@name=O3]")
Or do I just have to manually input them, 1 by 1?
 
Last edited:
Upvote 0
You still need single quotes around the name attribute value, then use ampersands to concatenate the strings and cell reference:

=FILTERXML($A$5,"//job-base-cost[@name='"&A9&"']")
 
Upvote 0

Forum statistics

Threads
1,215,463
Messages
6,124,963
Members
449,200
Latest member
indiansth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top