+ Reply to Thread
Results 1 to 3 of 3

Only Calculate if cell does not have a formula?

  1. #1
    Registered User
    Join Date
    07-17-2009
    Location
    Key West, Florida
    MS-Off Ver
    Excel 2003
    Posts
    6

    Only Calculate if cell does not have a formula?

    I'm not sure if this is possible, but does anyone know of a way I can use a formula that does not calculate any other cells that already have a formula in them.

    The reason being, I have to work with a specific type of imported spreadsheet from a .dat file, and the best way to filter out the information I do not want, is to exclude everything that has a formula. I'm hoping to use some sort of IF statement and exclude all formula driven cells.

    Any tips or solutions would be greatly appreciated. Thanks!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Only Calculate if cell does not have a formula?

    I'm not sure if this is possible, but does anyone know of a way I can use a formula that does not calculate any other cells that already have a formula in them.
    There is no such thing as a formula that does not calculate, otherwise it would not be a formula but "data". One cell may reference another, such as A1=B1, which is, strictly speaking, cell referencing, but this too could be a formula of sorts (indirectly) if B1 contains a formula.

    The reason being, I have to work with a specific type of imported spreadsheet from a .dat file, and the best way to filter out the information I do not want, is to exclude everything that has a formula. I'm hoping to use some sort of IF statement and exclude all formula driven cells.
    Perhaps if you explain in greater detail/clarity what it is you want to accomplish a solution can be provided.

    Can you not filter on values or some other criteria?

    Without knowing further details about your workbook, perhaps you can adapt this script to help with filtering. It will look at all cells in a column and if the cell has a formula will write a value of one (1) in the adjacent column and a zero if it does not have a formula.
    Please Login or Register  to view this content.
    You might follow this up with Advanced Filter with criteria to copy only records with a "0" to another sheet.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Only Calculate if cell does not have a formula?

    =IF(XLM.GET.CELL(48,A1),0,A1)
    is a possibility but you'd need the morefunc add in from
    http://xcell05.free.fr/morefunc/english/
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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