|
-
Aug 6th, 2012, 10:24 AM
#1
Thread Starter
Junior Member
[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!
-
Aug 9th, 2012, 05:20 AM
#2
Thread Starter
Junior Member
Re: Increment Formula With If Statement
Anyone?
-
Aug 10th, 2012, 04:17 AM
#3
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
-
Aug 17th, 2012, 04:38 AM
#4
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|