Keeping Timestap/Time Static/Unchanging (Using IF, OR, and TIME Statements too)

kitty86

New Member
Joined
Aug 3, 2015
Messages
2
- Using Excel 2010
- All previous columns/rows are being used for something else and cannot be replaced/used for other information.



Hope my title is clear. Anyway, what I need help with is getting the time to stay static in two(?) columns, and not change unless the cell before it changed. Here is what my excel table looks like (part of it/mostly):



MNOPQ
2Energy UsedEnergy LeftLVL UP?Last Fishing TimeEnergy Refilled Time
44254
[2] 12:24 PM[3] 2:22 PM
443
[1] 63


444558


445553


4465[1] 48YES

447563


448558


449553



<tbody>
</tbody>

[1] : The formula I am using here/in that column (N) is:

Code:
=IF(OR(O443="YES", N442-M443<10),S1, N442-M443)

Explanation: If the sum of N442-M443 is below 10 or O443 reads "YES", it equals S1. S1, in this case, is 63 (Max energy). If neither are true (less then 10), just put in the sum of N442-M443. If one of the statements are true, it basically resets the energy level to max/whatever is listed inside of S1.
**NOTE: I understand that if I update S1, past cells with the formula will update too. I am not concerned with that. That is not too important. I just wrote it to save me time of resetting the time myself by hand for whatever cell at that time/moment. The formula I wrote works fine/the way I want it to.

[2] : For column P, the formula is:

Code:
=IF(N442<10,NOW(), "")

Explanation: If the N442 is below 10, put in the time it is now, otherwise leave it blank if it is false. The format of the time is "12:24 PM", which I set when I went to the format cell options.
**NOTE: This, and the other, is where I really need help with. The formula itself works, but as you know, the time does not stay the same. It changes each time I change any cell it seems and when I close/open the document etc. [3] will require the same help. Please view that too, as both are connected.

[3] : For column Q, the formula is:

Code:
=IF(P442<>"",(P442+TIME(0,SUM((S1-N442)*2),0)), "")

Explanation: If P442 is not blank, put in whatever is calculated in P442 and add time to it. In this case, adding minutes after finding the sum of 63(S1) - N442 x 2; otherwise leave it blank if it is false. The '2' represents every 2 minutes that passes, 1 energy is replenished. The format of the time is "2:22 PM". After I formatted the cell etc.
**NOTE: Like before, this is where I really need help with too. Since it connects to the previous column, the time will change here too. The formula itself works, but as you know, the time does not stay the same due to the previous column.
------------------------------------------------------------------------------------------
Both P & Q columns are important because I need to know the 'exact' time energy will be full again. Having the time change on me is not what I want. I 'cannot' put it in manually because I constantly forget to put the time in as soon as I finish, as I become engrossed with my game or with something else, and because I plain forget. So the shortcut by hand is not helpful to me either. Also, I do not want it to change because I want to know what I did during that time frame etc.

So...that is pretty much my trouble. I am guessing some sort of macro is needed, but I have no idea how to use it or even know what to write. I would greatly appreciate the help/explanation. If there is a easier way to do this/the above, please feel free to share.

If you are that curious what the excel sheet/workbook is for, it is for the game/app 'Fishing Superstars' by Gamevil (for personal use). Meant to be a simple excel sheet thing at first, then I got engrossed into it too and it became the monster it is now. I'm still having fun learning either way, and I'm sure this sheet will be useful for future stuff too after some modifications are made. :p
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It worked! :)

Tried only the first link, but it worked. It didn't mess with anything else either! Thank you! :)
 
Upvote 0
your welcome

2nd link explains the same formula i a different way
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top