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
- Micro-entity accounts: Overview, and how to file with HMRC Today 09:27
- Will HMRC’s 9% interest rate bully you into submission? Yesterday 09:10
- Business Account with ANNA Money Nov 1 15:51
- Autumn Budget 2024: Reeves raids contractor take-home pay Oct 31 14:11
- How Autumn Budget 2024 affects homes, property and mortgages Oct 31 09:23
- Autumn Budget 2024: Reeves raids contractor take-home pay Oct 31 09:20
- Autumn Budget 2024: Umbrella companies hit, Employer NICs hiked, and BADR heading for 18% Oct 30 16:54
- Autumn Budget 2024: chancellor’s full speech Oct 30 16:34
- RecExpo got told this about Labour’s Employment Rights Bill… Oct 30 09:10
- A limited company just got one over HMRC on VAT; here’s how Oct 29 09:24
Leave a comment: