+ Reply to Thread
Results 1 to 3 of 3

Refreshing web query creates #N/A in referencing cells

  1. #1
    Registered User
    Join Date
    07-05-2019
    Location
    Here
    MS-Off Ver
    1243
    Posts
    2

    Refreshing web query creates #N/A in referencing cells

    Hi,

    I have a worksheet with one tab that has a web query retrieving data from an online table and another tab that uses a series of formulas that start by referencing the tab with the web queries.

    The order of the formulas is as follows:

    web query --> cells referencing the table created by the web query (example formula - =(a2)) --> cells referencing the cells with the =(a2) formula (example - =max(a:a))

    When I first created those tabs, the formulas worked perfectly, but once I refresh the data from the web query, the cells referencing the =(a2) formulas display #N/A errors. Now, the data from the web query displays and updates correctly and in the the same format, and so do the cells with the =(a2) formulas. It's only the cells that reference the =(a2) formulas that break. And even if I paste the =(a2) cells as values to get rid of the formulas, the #N/A remains.

    When I direct the =max(a:a) formula to a column that was originally hard-coded, I get the result I'm looking for.

    I verified the cells have numbers, using ISNUMBER and I tried pasting as values the data from the web query and the data from the =(a2) cells. But nothing helps.

    Any thoughts?

    Thanks.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Refreshing web query creates #N/A in referencing cells

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-05-2019
    Location
    Here
    MS-Off Ver
    1243
    Posts
    2

    Re: Refreshing web query creates #N/A in referencing cells

    Thank you, Glenn.

    Actually, your request led me to try to recreate the error unsuccessfully with a new query, which then led me to finding out my mistake!

    Apparently, when I refreshed the web query, the new data was missing a few of the original entries, leading to an #N/A error in the column with the =(a2) formula. Then, When I tried to find the maximum value in the =(a2) column, the formula failed because of these #N/As, resulting in the new #N/A error that frustrated me so much.

    Since I can't recreate the error with a new query and since the original query produced a very large dataset, I'm afraid I don't have a sample spreadsheet to share and show the error and the fix.

    I hope my explanation is clear enough.

+ 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. [SOLVED] Refreshing only one power query query
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2019, 06:37 AM
  2. Stop Query from refreshing empty cells
    By therealdarkwing in forum Excel General
    Replies: 6
    Last Post: 08-20-2018, 08:56 AM
  3. [SOLVED] Refreshing a query
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-01-2018, 09:48 AM
  4. Table Not Refreshing (Referencing from Pivot and other areas)
    By excel_newbird in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2018, 01:21 PM
  5. Refreshing Web Query
    By Reznorz in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-22-2012, 05:34 AM
  6. Refreshing only certain cells of a web query based on a condition
    By sjfit4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2010, 06:52 AM
  7. Create a web query referencing hyperlink in cells
    By double a enterprises in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2010, 11:25 PM

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