+ Reply to Thread
Results 1 to 4 of 4

Cell referencing issue

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2010
    Location
    Halifax, NS
    MS-Off Ver
    Excel 2007
    Posts
    2

    Cell referencing issue

    I am referencing another cell on a worksheet that has imported data from the web but when i refresh the data connection, i lose the cell reference in the formula and it goes to #REF!

    Example:


    =IF(ISNUMBER(DailyStatsData!A216),DailyStatsData!B216,"")

    changes to

    =IF(ISNUMBER(DailyStatsData!#REF!),DailyStatsData!#REF!,"")

    The DailyStatsData sheet is imported data from the web that is always in the same format.

    Can someone help me out? How should i be inputing the formula so that when i refresh the data i don't get a #REF! error

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Cell referencing issue

    Maybe use a construct like this instead:

    =IF(ISNUMBER(INDEX(DailyStatsData!A:A, 216)), INDEX(DailyStatsData!A:A, 216),"")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Cell referencing issue

    May also be worth checking the properties of the web query itself - if you set to Overwrite rather than Insert does that resolve your issue in the first instance ?

  4. #4
    Registered User
    Join Date
    11-05-2010
    Location
    Halifax, NS
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Cell referencing issue

    Thanks donkey, I think that did it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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