Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing another worksheet and getting #name?

Status
Not open for further replies.

draacor

IS-IT--Management
Jul 17, 2007
69
US
Hello,

I have two excel workbooks. The first excel workbook has a cell with the following formula:

=IFERROR(AVERAGE(B2:p3),"")

The second workbook has the following formula to reference the first workbook.

=IF('Workbook1!$R$2>79.9%,'Workbook1'!$R$2,"")

I only want it to show the data if the data is greater than 79.9%. For some reason when i do this it comes up with the #NAME? error. Any suggestions?
 



Hi,

79.9% is a format. See if this works...
[tt]
=IF('Workbook1!$R$2>.799,'Workbook1'!$R$2,"")

[/tt]


Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
doh! that didnt work i get the same error :(
 
if it helps i do have excel 2007, maybe there are extra features that can alleviate this problem.
 
How did your generate the REFERENCE in the formula?

Did you TYPE it in? No, No!

You should only type everything EXCEPT the references: for them you POINT your mouse and CLICK.

Your referece needs the SHEET NAME in the proper syntax!

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
i did the mouse click, i didnt type in the reference, i opened up both workbooks and just clicked on the cells i wanted to reference. I have a feeling that the iferror is whats causing the #name? but there has to be a way around that.
 

"I have two excel workbooks."

Your reference, if you did point & click, would look like this...
[tt]
=[YourWorkbookName.xls]YourSheetName!CellReference
[/tt]
!!!

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
doh i took too much out, i have some names i didnt want to post on the forums so i tried editing it to just say workbook and didnt realize i took out the formatting too. This is what it looks like:

=IF('[Workbook1.xls]Trend Analysis'!$R$2 > 79.9%,'[Workbook1.xls]Trend Analysis'!$R$2,"")
 



Listen, you have something else going on that you're not disclosing.

Here's my WORKING formula in Excel 2007...
[tt]
=IF([TestAddressImport.xlsx]Sheet1!$F$1>7.5%,[TestAddressImport.xlsx]Sheet1!$F$1,"")
[/tt]
Do ANY of your IF function work?

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top