+ Reply to Thread
Results 1 to 2 of 2

Web query refreshes and adds or deletes rows throwing off formula references

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    2

    Web query refreshes and adds or deletes rows throwing off formula references

    Hello Community!

    I have created a worksheet that pulls data from my company's webpage that produces real-time information about our shipments. I have created very simple formulas that return how many packages are in the shipment and where they are going based on the data. So, for example, a formula might read (D2+D5)/3+D8. D2 might refer UPS shipment to Atlanta, D5 might refer DHL shipment going to Atlanta, D8 might refer to Fedex shipments to Atlanta. The good thing is my data is always lined up in the same column. My problem is when my data query refreshes sometimes row 5 is deleted. Say, the maximum amount of rows ever returned in the query is 10, well sometimes the query only returns 6 rows after a refresh because we haven't sent any shipments out via those methods. This completely throws off my formula. In my example, with data only being returned for 6 rows, there is no longer a D8, so of course I get a #ref error. Row 5 might no longer refer to DHL, but to USPS. Is there a way to write the formulas so they take into account the addition and deletion of rows?

    Any help would be very much appreciated. I have google searched and found out all kinds of different thing I didn't know about web queries, but I haven't been able to find a solution to my problem, or I might have run across it but it was too complex for me to understand.

    Thanks in advance for any assistance in this matter!
    Last edited by Makalani; 08-19-2015 at 01:39 PM.

  2. #2
    Registered User
    Join Date
    08-19-2015
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Web query refreshes and adds or deletes rows throwing formula references

    Is this too complex of a question? Should seek help in the commercial services forum?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Loop that creates new worksheets, add web query and refreshes data if worksheet exists
    By aguerra729 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2014, 01:44 AM
  2. [SOLVED] Save old data when web query refreshes
    By no.18shirt in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-30-2013, 05:13 PM
  3. Save old data when web query refreshes
    By BlakeCrossley in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-19-2012, 01:54 PM
  4. SQL Query in VBA throwing mismatch error
    By kishen1912 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-06-2011, 07:07 AM
  5. Stock Macro for web query refreshes
    By mtj2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2008, 02:44 AM
  6. what Event is triggered when user adds/deletes rows?
    By dlh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-20-2007, 08:38 PM
  7. Adds abd Deletes
    By Peter Gedney in forum Excel General
    Replies: 1
    Last Post: 08-09-2006, 12:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1