Results 1 to 4 of 4

Exclude certain cells

Threaded View

  1. #1
    Registered User
    Join Date
    01-08-2016
    Location
    Malmö, Sweden
    MS-Off Ver
    2010
    Posts
    7

    Exclude certain cells

    I have tried to find a solution to exclude certain cells in a range all over the place but I still haven't found what I am looking for. Maybe someone here can help me?

    The point is to exclude C20:C21, C33:C34 etc from the fillrange below (C9:C122) and I guess there is a very simple solution for the problem?

    Worksheets("MB_Vol").Range("C9").FormulaR1C1 = "=AVERAGE(RC[8]:RC[9])"
    Set SourceRange = Worksheets("MB_Vol").Range("C9")
    Set fillRange = Worksheets("MB_Vol").Range("C9:C122")
    SourceRange.AutoFill Destination:=fillRange, Type:=xlFillValues
    Another problem I have is how to include several sheets into this?
    Set SourceRange = Worksheets("MB_Vol").Range("C9")
    Set fillRange = Worksheets("MB_Vol").Range("C9:C122")
    I want to write it like this, but this isn't working:
    Set SourceRange = Worksheets("MB_Vol", "MB2_Vol", "MB3_Vol").Range("C9")
    Set fillRange = Worksheets("MB_Vol", "MB2_Vol", "MB3_Vol").Range("C9:C122")
    Any ideas?

    Thanks in advance!
    Last edited by 6StringJazzer; 01-21-2016 at 08:20 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add EXCLUDE Option in table to Exclude from Solver
    By lbofbb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2015, 09:05 AM
  2. sum a range of cells but exclude the cells that are strings
    By postdirector in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2013, 05:55 PM
  3. [SOLVED] Count number of cells that contain text but exclude cells that contain quotation marks
    By Cantyman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 03:57 PM
  4. Exclude Blank cells when matching against other cells.
    By Neil07979 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-05-2008, 09:28 AM
  5. [SOLVED] Need to exclude certain cells in a range
    By Bob Smith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-05-2006, 12:30 PM
  6. [SOLVED] exclude cells with certain criteria
    By Bram in forum Excel General
    Replies: 2
    Last Post: 10-10-2005, 02:05 PM
  7. Replies: 2
    Last Post: 09-24-2005, 08:05 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