xml query
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Xml query

Xml query

resolvedResolved · Medium Priority · Version 2007

replyReply Wed 18 May 2011, 15:56Delegate Rohan said...

Rohan has attended:
Excel VBA Intro Intermediate course

Xml query

http://www.bmreports.com/bsp/additional/soapfunctions.php?output=XML&dT=2011-02-02&element=SYSPRICE&submit=Invoke


How can I change the date in the above xml query, by enter the wanted date in excel (For example Cell "A2")

For upcoming training course dates see: Pricing & availability

replyReply Mon 23 May 2011, 13:05Trainer Anthony said...

RE: xml query

Hi Rohan, thanks for your query. If you just want to alter the date in that url string simply use some concatenation:

In cell a1:

="http://www.bmreports.com/bsp/additional/soapfunctions.php?output=XML&dT=";

a2

<your date>

a3

= "&element=SYSPRICE&submit=Invoke"

Then in A4:

= A1 & A2 & A3

Hope this helps,

Anthony

Mon 30 May 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel advanced course london and other Microsoft training courses.

Excel tip:

Stop Formula Returning A "#DIV/0" Error

If a formula returns a #DIV/0 error message there is a way to avoid such results.

For example the formula =A1/B1 will return a #DIV/0 if B1 is empty or a zero.

If you protect your formulas with the ISERROR function, the formula will then look like this:

=IF(ISERROR(A1/B1),0,A1/B1)

In plain English: should the result of A1 divided by B1 be an error change the result to 0 else show the result of A1/B1.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard