+ Reply to Thread
Results 1 to 7 of 7

Value calculated too early

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    Value calculated too early

    Hi,

    I have a spreadsheet setup that is used as a timesheet. The problem I am having is that I have set a maximum value for the morning and evening shift of 12 hours. But when I type in say 0800 in the "start" box a value is already calculated in the total box which is over the 12 hours maximum, so I cant eneter the finish time. I need a way of delaying the calculation.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Maybe you can include an IF() statement in your calculation box that says if the end time is blank (not inputted), then remain blank, otherwise proceed with the calculation....

    e.g. =IF(end_time="","",your_current_formula)

    replace end_time with the cell address housing that time and replace your_current_formula with your existing formula (minus the = sign).
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    works but doesnt

    =IF(D7="","",((Q7-P7+(Q7<P7))*24)+(E7+H7)+((S7-R7+(S7<R7))*24)

    The validation I have looks like this:

    =$U$7<=10

    It works because no value is entered in the cell untill both "in" and "out" cells have been completed. but still wont let me enter the value I get a validation error. Only now I cant enter any value in the cell. There is no value in the cell, yet it is saying that it values over 10.

    Thanks,
    Simon Green
    Last edited by Sirishgreen; 11-27-2007 at 09:35 AM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You'll need to attach a zipped XL2003 sheet explaining the problem...it's hard to picture it.

  5. #5
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    here it is

    u7 is the field used in the validation. There is no entry in there. Yet it wont validate an entry on the time sheet.

    The 21st of the month is the only place where it is setup properly, so only there can be used for testing
    Thanks,
    Simon Green
    Attached Files Attached Files
    Last edited by Sirishgreen; 11-27-2007 at 10:27 AM.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    What if you change your data validation formula to:

    =OR($U$7<=10,$U$7="")

    ?

  7. #7
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    126

    Thanks

    ive got no idea how when or why, but it works and im happy.

    Thanks for that i cant believe ive nearly finished this thing now has taken me ages, thanks again for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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