I have 3 columns...when both column a and b contain a date i want today's date to appear in column c. Not sure if this requires an IF formula or not. my example is attached. Thanks for any help.Example.xls
I have 3 columns...when both column a and b contain a date i want today's date to appear in column c. Not sure if this requires an IF formula or not. my example is attached. Thanks for any help.Example.xls
Try
=IF(LEFT(CELL("format",A1),1)&LEFT(CELL("format",B1),1)="DD",TODAY(),"")
format c as date and copy down the column
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
Rubbish title.
Special-K,
1. I don't think you need to specify 1 in left()
2. You can significantly reduce volatility burden of today() by specifying it in one cell then referring to that cell, rather than inserting the function in every iteration
CC, the TODAY() point is an interesting one... last April I went along to the MS Excel UserGroup Conference in London specifically to hear Charles Williams' (he of decisionmodels and FastExcel fame) as he was giving a talk on Calculation and I feel there's a lot to learn re: optimisation.
Like you I always assumed it was much better to store TODAY() in one cell and refer to it thereafter, not that this reduces no. of Volatiles (after all a cell refering to a Volatile cell is itself Volatile by association), but simply because it reduces no. of calcs, however CW actually stated that he felt the use of TODAY() etc in each cell was actually insignificant.
There was a thread kicked off over at MrExcel.com sometime ago in which this point was reiterated:
http://www.mrexcel.com/forum/showthread.php?t=371570
more specifically post 4 onwards...
I found it quite an interesting thread.
Last edited by DonkeyOte; 10-05-2009 at 06:23 AM. Reason: typo
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
What is used to make those calculations?
For example, from link you posted, post 14:
Calculating 5000 =NOW() formulae takes 0.0079 seconds
Calulating 1 =NOW() formula in A1 and 4999 =A1 formula takes 0.0054 seconds
How is calculated?
see post 22 ...
Very interesting!
Based on that, I'd assume that even hard-coding today's date in a separate cell wouldn't really make much difference - what do you think?
I really wanted to go to this year's conference but my employer wouldn't afford me the time, on the basis that "I already know more than enough about Excel". Talk about "in the land of the blind"
CC
I think hard coding the date into one cell and then linking to it would make a difference insofar as it would remove the Volatility, how much of an effect would depend of course on the complexity of the linked functions (ie making them non-volatile).
As for the conference - I'm sure those who spoke (Andy P, Bob Phillips) won't mind me saying that given it was the first run some of the content missed the mark and that it will be better this time around... that said I only went to Day 2.
Why ? Well primarily boiled down to the mixed bag of attendees (skill level). Andy & Bob did a dual presentation on Dashboards which was good but Andy ended up getting rushed and Bob's talk on Arrays (which I was looking forward to) fell foul of the "assumed expertise" issue meaning Bob spent far too long having to explain the basics - losing the advanced users quite early and causing the less skilled to start crying... I didn't envy him trying to explain Arrays to beginners in 15 minutes !
That said I still learnt plenty of little tips and tricks, moreover I finally met a few of the guys I've spoken with online over the years.
Hijack over.
EDIT:
Well if they consider spending 2 days in the company of the UK based MS Excel MVP's to be a waste of your time and their money (you being paid to be there) they're obviously shortsighted !Originally Posted by CC
Last edited by DonkeyOte; 10-05-2009 at 09:04 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks