+ Reply to Thread
Results 1 to 2 of 2

Sub Calculate() only works for one column, any ideas

  1. #1
    Registered User
    Join Date
    12-21-2015
    Location
    chongqing,china
    MS-Off Ver
    2013
    Posts
    7

    Sub Calculate() only works for one column, any ideas

    this code works for Rng but not Rng1. Tried every combo (except the right one) Columns just have numbers within range or out of range.
    the ranges are a calculated average of three preceding columns. So, it looks like this.
    column f column O
    Column c, column d, column e, average Column L, column m, column n, average
    0.2524, 0.2526, 0.2525, 0.2525 0.0123, 0.0143, 0.0133 0.0133

    column f works good, the right color in the right cell, Column 0 is all over the place cell that have 0.055 will come in red, cells the have 0.12 come in yellow

    Any help would be appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,906

    Re: Sub Calculate() only works for one column, any ideas

    According to your conditions this makes more sence to me.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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: 4
    Last Post: 08-08-2016, 07:56 AM
  2. Any ideas how to calculate timesheet?
    By pecukevicius in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-16-2015, 09:09 AM
  3. [SOLVED] Column Chart with Three-layered horizontal access - Any ideas?
    By Tenaciousjeebs in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-13-2014, 02:20 AM
  4. Replies: 4
    Last Post: 05-03-2013, 12:45 PM
  5. [SOLVED] Need help/ideas for a tricky row and column delete Macro
    By Antony680 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-30-2012, 02:21 PM
  6. Replies: 2
    Last Post: 07-01-2008, 09:19 AM
  7. [SOLVED] Function not working (but works as a sub). Any ideas?
    By reppy@usa.net in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2006, 03:15 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