+ Reply to Thread
Results 1 to 5 of 5

Using evaluate using same style formula but different row number

  1. #1
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Using evaluate using same style formula but different row number

    I would like to use vba to do the calculation and input the value in column D

    So basically it works like this

    Please Login or Register  to view this content.
    I got as far as this
    Please Login or Register  to view this content.
    but if I use the fill handle to bring the dates down I get a mismatch error 13 on this line of code
    Please Login or Register  to view this content.
    *** forgot to mention this is suppose to be a event change so if the value in C changes it updates D


    Thank you for looking
    Last edited by Mr_Bill; 09-24-2014 at 12:23 PM. Reason: *** Amended something

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Using evaluate using same style formula but different row number

    I think the logic is a bit muddled here. First, you have an If statement that tests that the Target is nonblank. Then you evaluate an Excel formula which again tests to see if it is blank. You have already determined that it is nonblank at this point, so do you do not even need the Evaluate. I would write this logic like this. I also simplified your first If statement. The one you had is not wrong, but takes the long way around.


    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: Using evaluate using same style formula but different row number

    Thank you Jazzer for your time. I am just going to use the formula in the cells. Not able to get this to work right. If I delete the date the countdown is still there. With the formula in the cell if i delete the date in c the number in d goes away also. I just have to be careful not delete the formula when I delete the other cells.

    just a idea I had to make it easy on me
    Workbook Idea if you see this you will see what I mean basic.
    Last edited by Mr_Bill; 09-24-2014 at 03:45 PM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Using evaluate using same style formula but different row number

    I see. I was just looking at your code rather than the big picture of what you are trying to accomplish. To blank out the count if the data is deleted you want this:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: Using evaluate using same style formula but different row number

    Thank you for this

+ 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. Vba for row number of evaluate and max
    By stevow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-20-2010, 08:59 AM
  2. Vba for row number of evaluate and max
    By stevow in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2010, 06:14 AM
  3. [SOLVED] How to evaluate a 'dotted' number using formulae (not UDF)
    By Alan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-13-2006, 02:25 PM
  4. [SOLVED] evaluate data by week number
    By in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] evaluate data by week number
    By Steve G in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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