+ Reply to Thread
Results 1 to 5 of 5

Formulas Not Working on Imported Data

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    Rock Hill
    Posts
    41

    Formulas Not Working on Imported Data

    I have a spreadsheet that is importing data. That part is working fine. I have added an addition column that calculates an average if there are numbers there to average. If there are no numbers there to average, then the cell is left blank.
    The formula I am using is as follows:
    Please Login or Register  to view this content.
    This formula works for data that is already there, and I have copied this formula all the way to the very bottom of the spreadsheet, so even blank columns have the formula in them, presumably waiting to be filled as soon as there is data to average.

    But it just doesn't do the calculation right. When new data is added, the formulas are there just like they always are, but they are taking numbers to be the equivalent to a blank.
    I've even tried the following:
    Please Login or Register  to view this content.
    But that doesn't work either. When the new data comes in, the formula is there, and I can clearly see that there is an 82 or something there, which is obviously not equal to zero, but Excel is taking it to be a zero anyway.
    I've worked with many types of problems out in Excel over the course of my career, but I have never dealt with sheets that are set up to automatically import data from... actually I don't know where. This was handed to me from someone else.

    This is frightening. Any and all help with this situation would be greatly appreciated.
    Last edited by Macro-wave; 01-21-2011 at 02:05 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Formulas Not Working on Imported Data

    Your imported data is text, even though it looks like numbers.

    The AVERAGE() function ignores text so your formula returns a blank.

  3. #3
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: Formulas Not Working on Imported Data

    Hi Macro-wave

    Could it be that the Sheet is set to Manual Calculation so the new data is not chaning the formula results?

    If you look at the bottom left of your Excel Screen does it say "Calculate"?

    Try adding this your code.....


    Please Login or Register  to view this content.
    Hope this helps

    Cheers

    Jim

  4. #4
    Registered User
    Join Date
    06-26-2008
    Location
    Rock Hill
    Posts
    41

    Re: Formulas Not Working on Imported Data

    Quote Originally Posted by Cutter View Post
    Your imported data is text, even though it looks like numbers.

    The AVERAGE() function ignores text so your formula returns a blank.
    Thanks. This seemed to be the problem. I formatted all the blank cells to be Numbers instead of General, and it seems to be working now.

    Thanks!

  5. #5
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: Formulas Not Working on Imported Data

    Hi Again

    Seeing Cutter's responce I think this formula would sort the problem.

    =IF(A2="","",AVERAGE(TEXT(A1,0),TEXT(A2,0)))

    Cheers

    Jim

+ 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