Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Work's on mine but not others

I have following formulas in a worksheet, they work perfectly and provide the
exact results I'm looking for. However, when another person opens this file
on their PC, whether from the same network directory or from an e-mail
attachment, all the results from these formulas turn to #NAME?.

Need to find out why this happens and how to correct this issue.

cell B1 and C1 are the first and last name of an employee.
cell D1 is the employee's birthdate.

cell P1 has the following formula and the result should be the hire date
found in a table that is in a separate TAB in the same file:

VLOOKUP(B1&+","&+C1,'Hire Dates'!$B$2:$C$949,2)

cell Q1 has the following formula and the result should be the years and
months employed:

IF(P1="","",TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)& +IF(TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)=1,"
yr., "," yrs.,
")&+TEXT(TRUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)&+IF(TEXT(T RUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)=1," mo. "," mos."))

cell R1 has the following formulas and the results should be the years and
months of the person's age:

IF(P1="","",TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)& +IF(TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)=1,"
yr., "," yrs.,
")&+TEXT(TRUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)&+IF(TEXT(T RUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)=1," mo. "," mos."))

cell S1 has the following formula and the result should be true or false as
to whether or not the employee has 5 years of service and is 55 years old.

IF(P48="","",AND(TRUNC(YEARFRAC(P48,TODAY()),0)5, TRUNC(YEARFRAC(D48,TODAY()),0)=55))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Work's on mine but not others

From Excel Help when I search for YEARFRAC: If this function is not
available, and returns the #NAME? error, install and load the Analysis
ToolPak add-in. Sounds like you have the ToolPac installed and the others do
not. Check Tools | Addins.

BTW: in the formula VLOOKUP(B1&+","&+C1,'Hire Dates'!$B$2:$C$949,2)
the + signs do nothing, you need only the concatenation operator &

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Don C" <Don wrote in message
...
I have following formulas in a worksheet, they work perfectly and provide
the
exact results I'm looking for. However, when another person opens this
file
on their PC, whether from the same network directory or from an e-mail
attachment, all the results from these formulas turn to #NAME?.

Need to find out why this happens and how to correct this issue.

cell B1 and C1 are the first and last name of an employee.
cell D1 is the employee's birthdate.

cell P1 has the following formula and the result should be the hire date
found in a table that is in a separate TAB in the same file:

VLOOKUP(B1&+","&+C1,'Hire Dates'!$B$2:$C$949,2)

cell Q1 has the following formula and the result should be the years and
months employed:

IF(P1="","",TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)& +IF(TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)=1,"
yr., "," yrs.,
")&+TEXT(TRUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)&+IF(TEXT(T RUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)=1,"
mo. "," mos."))

cell R1 has the following formulas and the results should be the years and
months of the person's age:

IF(P1="","",TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)& +IF(TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)=1,"
yr., "," yrs.,
")&+TEXT(TRUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)&+IF(TEXT(T RUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)=1,"
mo. "," mos."))

cell S1 has the following formula and the result should be true or false
as
to whether or not the employee has 5 years of service and is 55 years old.

IF(P48="","",AND(TRUNC(YEARFRAC(P48,TODAY()),0)5, TRUNC(YEARFRAC(D48,TODAY()),0)=55))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Work's on mine but not others

The ToolPac Add-in was exactly the problem. The tip on the formula
concatenation is also good to know. Always looking for ways to shorten the
formulas.

Thanks, Appreciated the help.
Don C.

"Bernard Liengme" wrote:

From Excel Help when I search for YEARFRAC: If this function is not
available, and returns the #NAME? error, install and load the Analysis
ToolPak add-in. Sounds like you have the ToolPac installed and the others do
not. Check Tools | Addins.

BTW: in the formula VLOOKUP(B1&+","&+C1,'Hire Dates'!$B$2:$C$949,2)
the + signs do nothing, you need only the concatenation operator &

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Don C" <Don wrote in message
...
I have following formulas in a worksheet, they work perfectly and provide
the
exact results I'm looking for. However, when another person opens this
file
on their PC, whether from the same network directory or from an e-mail
attachment, all the results from these formulas turn to #NAME?.

Need to find out why this happens and how to correct this issue.

cell B1 and C1 are the first and last name of an employee.
cell D1 is the employee's birthdate.

cell P1 has the following formula and the result should be the hire date
found in a table that is in a separate TAB in the same file:

VLOOKUP(B1&+","&+C1,'Hire Dates'!$B$2:$C$949,2)

cell Q1 has the following formula and the result should be the years and
months employed:

IF(P1="","",TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)& +IF(TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)=1,"
yr., "," yrs.,
")&+TEXT(TRUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)&+IF(TEXT(T RUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)=1,"
mo. "," mos."))

cell R1 has the following formulas and the results should be the years and
months of the person's age:

IF(P1="","",TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)& +IF(TEXT(TRUNC(YEARFRAC(D1,TODAY()),0),0)=1,"
yr., "," yrs.,
")&+TEXT(TRUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)&+IF(TEXT(T RUNC((YEARFRAC(D1,TODAY())-TRUNC(YEARFRAC(D1,TODAY()),0))*12,0),0)=1,"
mo. "," mos."))

cell S1 has the following formula and the result should be true or false
as
to whether or not the employee has 5 years of service and is 55 years old.

IF(P48="","",AND(TRUNC(YEARFRAC(P48,TODAY()),0)5, TRUNC(YEARFRAC(D48,TODAY()),0)=55))




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Has Excel ever lied to you? Mine does. Laviathn Excel Discussion (Misc queries) 5 January 26th 07 09:11 PM
exporting excel to gold mine Tony Excel Discussion (Misc queries) 1 May 12th 06 01:48 PM
N/A mine is returning with 1 Darts via OfficeKB.com Excel Worksheet Functions 4 March 26th 06 01:04 PM
World is mine Devis New Users to Excel 0 February 21st 06 12:58 PM
How do I copy and paste Excel charts and retain formatting? Mine . Ivan Lawler Charts and Charting in Excel 2 February 17th 05 01:53 PM


All times are GMT +1. The time now is 11:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"