But if you turn off autocalc, it will cause confusion to the poor end user. Think of the confusion and support calls you will generate (or even worst if they do not notice!) when their reports do not balance.
IMHO the VBA mentioned above is a better option as it means that the poor user cannot overwrite your code (think about users doing cut /paste and messing up the hardcoded formula in the cell).
As the VBA is forcing the value of the cell to be the date and not a formula, you do not have to worry about autocalc.
Whenever I am doing anything like this I always go for the route that cuts down the users ability to mess it all up!
Jon
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Excel Formula
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Excel Formula"
Collapse
-
Bear in mind that every time you open the spreadsheet, or press F9 tho, the formula will recalculate and display the current date (rather than the date that the cell was changed)
Tools / Options / General (i think)
Tickbox to turn on or off or do manually with F9.
Leave a comment:
-
Originally posted by Cooperinliverp00lThanks for help
I went with a quick fix. If statement that when a cell doesn't match a certain value it populates another cell with TODAY(). when it does match the certain value then it displays nothing (blank)
It works and is what i wanted
Leave a comment:
-
Originally posted by kramerrather than a macro you could link a1 to a2 then compare values and make a3 = now() or soemthing like that when the two cells aren't a match... obviously using IF and hiding a2 etc...
you get the drift... depends on the macro security setting of the proposed target spreadsheet consumer i guess....
I went with a quick fix. If statement that when a cell doesn't match a certain value it populates another cell with TODAY(). when it does match the certain value then it displays nothing (blank)
It works and is what i wanted
Leave a comment:
-
rather than a macro you could link a1 to a2 then compare values and make a3 = now() or soemthing like that when the two cells aren't a match... obviously using IF and hiding a2 etc...
you get the drift... depends on the macro security setting of the proposed target spreadsheet consumer i guess....
Leave a comment:
-
there's the "NOW()" function which gives you a time/date stamp
all you have to do is wrap an "onchange" event to the cell you want,
and then trigger a NOW() population to the target
something like...
'put this anywhere
sub onchange(ByVal target as Range)
target.offset(0,1).value = now() 'this sets the cell to the right to the time
end sub
'put this against the worksheet
'it picks up a specific cell and detects against it (A1)
sub Worksheet_Change(ByVal target As Range)
If target.Address = "$A$1" And target.Value > 0 Then
Call onchange(target) 'this calls the sub above and parses in the cell
End If
end sub
it's a rough one, but might help you get to the next step
Leave a comment:
-
Excel Formula
Calling all Excel Experts
I have a shared spreadsheet that i want to add a little bit of functionality to it. when i update cell with a value i want the next cell to display the Date on which it was updated. Does excell have a get date function ?
Please helpTags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Contractors, don’t be fooled by HMRC Spotlight 67 on MSCs Today 09:20
- HMRC warns IT consultants and others of 12 ‘payroll entities’ Yesterday 09:15
- How you think you look on LinkedIn vs what recruiters see Dec 2 09:00
- Reports of umbrella companies’ death are greatly exaggerated Nov 28 10:11
- A new hiring fraud hinges on a limited company, a passport and ‘Ade’ Nov 27 09:21
- Is an unpaid umbrella company required to pay contractors? Nov 26 09:28
- The truth of umbrella company regulation is being misconstrued Nov 25 09:23
- Labour’s plan to regulate umbrella companies: a closer look Nov 21 09:24
- When HMRC misses an FTT deadline but still wins another CJRS case Nov 20 09:20
- How 15% employer NICs will sting the umbrella company market Nov 19 09:16
Leave a comment: