Results 1 to 7 of 7

Thread: Subtraction Of Series Of Cells' / Array Values

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    14
    Quote Originally Posted by PcMax View Post
    I have an Excel spreadsheet in the column are expected values ​​only.
    There is however the possibility that the macro is interrupted due to a single value text.
    Which solution is indicated I enter a:
    Code:
    On Error Resume Next
    Straightening out your data so that non-numeric text values do not appear in Column C would be the best course of action but, assuming that is not possible for some reason, then I would go with the On Error method instead of the Val method only because the text values are retained and should stand out (they will be left-justified in the cell) in and among the numerical output (which is right-justified)... the Val method would produce incorrect numerical results for the text and be hard to spot given normal looking numbers would be output with it. One thing to note with either method... the value in the cell located in the row above the text cell's output will be incorrect.
    Last edited by Rick Rothstein; 10-26-2012 at 11:57 PM.

Similar Threads

  1. Replies: 4
    Last Post: 06-10-2013, 01:27 PM
  2. Replies: 1
    Last Post: 12-04-2012, 08:56 AM
  3. counting consecutive values in an array
    By 5ko in forum Excel Help
    Replies: 3
    Last Post: 12-04-2012, 03:49 AM
  4. Replies: 3
    Last Post: 08-05-2012, 09:16 PM
  5. Replies: 3
    Last Post: 04-08-2012, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •