+ Reply to Thread
Results 1 to 3 of 3

Add formula to cell ignore cells that already has a formula

  1. #1
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Add formula to cell ignore cells that already has a formula

    Hi!

    1. I add, edit and delete the values in column A and B trough a userform.
    2. When a new row is added in column A and B i run a macro that adds formulas pretty much column C to Y.
    3. The problem i have is that if a cell already contains a formula it adds it again and this slows the workbook down verry much (Everytime the macro runs it add 486 formulas)
    4. How do i make this more effective, lets say it skips cells that already have a formula.

    For more detail instruktion see my workbook: Add_formula_to_cell.xlsm

    This is the code i use right now:

    Please Login or Register  to view this content.
    I use Swedish version of excel: (For the attached workbook)
    SUMMA.OMF = SUMIFS
    ANTAL.OMF = COUNTIFS
    OM = IF

    Petter
    Last edited by Petter120; 11-19-2014 at 08:18 AM.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Add formula to cell ignore cells that already has a formula

    1) Have you thought of using a table? It will add formulas to new rows automatically.
    2) For your workbook, it looks like you can use column C (or D or E) to determine the 'empty' rows. So, something like this:
    Please Login or Register  to view this content.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Add formula to cell ignore cells that already has a formula

    I went with this solution, ok i much but it do what i want it to do.


    Please Login or Register  to view this content.

+ 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. Replies: 3
    Last Post: 05-13-2014, 10:48 PM
  2. [SOLVED] Return non-blank cells from range AND ignore cells with only formula w/o results
    By grafitti in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2014, 08:15 AM
  3. Ignore Cells with formula and paste
    By Irprogram in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-01-2008, 08:47 AM
  4. Formula to use number in cell to left & ignore any empty cells
    By joya in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2007, 12:52 PM
  5. Getting formula to ignore blank cells
    By CDM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2006, 06:07 AM

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