Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 01-21-2008, 05:32 AM
Junior Member
 
Join Date: Oct 2007
Posts: 7
iTrader: (0)
John1889 is on a distinguished road
Default Formula to find a person's age

To better manage our employees on their life insurance plans we need to create a column in excel to calculate todays date and their date of birth and show the age. Any suggestions would be really appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 01-22-2008, 10:56 PM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

You can use the DATEDIF to calculate a person's age. For example, the formula below will calculate the age of a person as of the current date, where BirthDate is the person's date of birth.

=DATEDIF(BirthDate,TODAY(),"y")&" years "&DATEDIF(BirthDate,TODAY(),"ym")&" months "&DATEDIF(BirthDate,TODAY(),"md")&" days"


You can find much more in the following link: cpearson.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 01-24-2008, 04:04 AM
Junior Member
 
Join Date: Oct 2007
Posts: 7
iTrader: (0)
John1889 is on a distinguished road
Default

Thanks a lot for posting the link, it was very helpful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 01-27-2008, 05:27 AM
Junior Member
 
Join Date: Oct 2007
Posts: 6
iTrader: (0)
AlpineMan is on a distinguished road
Default Finding the last 12 rows of a range

I am trying to create a dynamic range that will return the last/bottom 12 rows from a range. I need to produce charts which show performance on a rolling 12 month period, I currently have a table which is set out something like this:

Date Actual % Target
Jan 07 67% 90%
Feb 07 77% 90%
Mar 07 52% 90%

Every month new figures are added to the bottom of this table, I would like to be able to pick up the last/bottom 12 entries automatically so the chart gets updated and we still have all the previous months data.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 01-27-2008, 05:44 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
iTrader: (0)
AdamU is on a distinguished road
Default Prevent clearing cell with spacebar

How can you prevent a user from clearing a cell value with the spacebar? Is there a way to trap the event and throw an alert or simply disable the spacebar for that cell?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 01-27-2008, 05:49 AM
Junior Member
 
Join Date: Nov 2007
Posts: 4
iTrader: (0)
markbenedict is on a distinguished road
Default Help needed in running an Access Macro from within Excel

Can anyone tell me the code to run an Access Macro from within Excel (via an Excel Macro) let's say that: The Access Database is C:\Accessdb.mdb and the macro is runmac
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 01-27-2008, 05:54 AM
Junior Member
 
Join Date: Nov 2007
Posts: 2
iTrader: (0)
lisamapiatan is on a distinguished road
Default Make regular chart out of Pivot Table data

Whenever I try to make a graph by selecting a row or column of pivot table data, Excel creates a whole new tab with a pivot table chart on it. Can this default be turned off? I'd like to be able to reference the cells directly from a graph on the same page as the pivot table.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 01-29-2008, 05:27 AM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

Take a look at the OFFSET function along with COUNTA.

You should end up with something like...

=offset(Sheet1!$A$1,counta(yourrange)-11,0,12,number of columns in range)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 01-29-2008, 05:30 AM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

If you just want to prevent users from being able to alter a cell (emptying data, replacing data with a space character or otherwise making changes), check out Tools > Protection > Protect Sheet. If there are any cells that you want not protected, then select those cells and go to Format > Cells > Protection and uncheck Locked before turning on sheet protection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 01-29-2008, 05:33 AM
Junior Member
 
Join Date: Oct 2007
Posts: 28
iTrader: (0)
BurgoEng is on a distinguished road
Default

Try this code:

Dim objAcc As Access.Application
Set objAcc = New Access.Application
With objAcc
.OpenCurrentDatabase "C:\Accessdb.mdb"
.DoCmd.RunMacro ("runmac")
.CloseCurrentDatabase
.Quit
End With
Set objAcc = Nothing


If you get any error message then go to VB Editor, go to Tools > References and check the box beside Microsoft Access X.X Object Library (the X.X represents whatever version number you have).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 09:05 PM.