Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to prevent a formula from returning #REF! instead return 0

Guys,

I am collating reports and to create a summary I have to reference cells in
varoius daily reports from different sites. However if a report is missing
i.e the excel file is missing I get a #REF! value. This messes up all other
analysis I need to do on my data.
How can I get the cells to return the number zero instead of #REF!.

Cheers

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default How to prevent a formula from returning #REF! instead return 0

You can use the following generic function:

=IF(ISERROR(Formula),0,formula)

Where formula is the formula that you're currently using that produces the
#Ref error.
--
Kevin Backmann


"Franklin" wrote:

Guys,

I am collating reports and to create a summary I have to reference cells in
varoius daily reports from different sites. However if a report is missing
i.e the excel file is missing I get a #REF! value. This messes up all other
analysis I need to do on my data.
How can I get the cells to return the number zero instead of #REF!.

Cheers

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to prevent a formula from returning #REF! instead return 0

If the workbook doesn't exist, I think you'll always get this error.

Maybe you could keep the formulas as text.
Change the leading equal sign to $$$$$=
and change it back to just the equal sign after the workbook is created.

Another option may be to create dummy workbooks. Then use those dummy
workbooks/worksheets in your formulas. When the new workbook is created, use
edit|Links to change the source to the correct workbook.

Franklin wrote:

Guys,

I am collating reports and to create a summary I have to reference cells in
varoius daily reports from different sites. However if a report is missing
i.e the excel file is missing I get a #REF! value. This messes up all other
analysis I need to do on my data.
How can I get the cells to return the number zero instead of #REF!.

Cheers


--

Dave Peterson
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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula for Returning values in another spreadsheet lrbest4x4xfar Excel Worksheet Functions 1 October 14th 05 02:52 PM
Returning the formula in a cell Sukhjeet Excel Discussion (Misc queries) 0 June 29th 05 11:24 AM
Date formula: return Quarter and Fiscal Year of a date Rob Excel Discussion (Misc queries) 7 May 11th 05 08:48 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM


All times are GMT +1. The time now is 03:23 PM.

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

About Us

"It's about Microsoft Excel"