Results 1 to 4 of 4

Thread: [RESOLVED] Increment Formula With If Statement

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2012
    Posts
    24

    Resolved [RESOLVED] Increment Formula With If Statement

    Hey everyone, I'd like to know, if its possible, how to increment a formula with an If statement that transforms 2 values in time format and then as long as these two values keep beeing added in the cells the formula keeps active in the column.

    I tried to apply the code for all the but this makes my file huge like 20MB!

    You can check this on the file, go the "records" sheet, add the time in the "shift start" and "shift end" fields, then the difference value goes to "hours" in the sheet.

    https://www.dropbox.com/s/ouda3vdcu0buefh/project.xlsm

    Thx in advance!

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jul 2012
    Posts
    24

    Re: Increment Formula With If Statement

    Anyone?

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Increment Formula With If Statement

    i am guessing here a bit, as you description is not really clear

    you can put code into the worksheet change event, probably for the shift end column, that will insert the formula, when the value is in the first column changes
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2012
    Posts
    24

    Re: Increment Formula With If Statement

    This is what I came up with, created a table and applied a formula to the fields and its working fine.

    You can take a look here https://www.dropbox.com/s/qb2m9a7a6a...project.xlsm?m

    Ty

Posting Permissions

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



Click Here to Expand Forum to Full Width