#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Reefaman
 
Posts: n/a
Default #REF! Error


Hello I am using this formula to extract data from one worksheet to
another:
=INDIRECT("Q"&ROW()+168&"!"&"$E$4")
The trouble is that when no info is in the cell being addressed I get
#REF! , anyboby any ideas on how to leave the cell blank when no info
is in the cell addressed.
Tony


--
Reefaman
------------------------------------------------------------------------
Reefaman's Profile: http://www.excelforum.com/member.php...o&userid=31968
View this thread: http://www.excelforum.com/showthread...hreadid=520530

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default #REF! Error

Use the ISERROR function
Then your formula would look like the following

=IF(ISERROR(INDIRECT("Q"&ROW()+168&"!"&"$E$4")),"
",INDIRECT("Q"&ROW()+168&"!"&"$E$4"))

For more,visit and post your questions on
http://groups.google.co.in/group/answers-for-everything

Reefaman wrote:
Hello I am using this formula to extract data from one worksheet to
another:
=INDIRECT("Q"&ROW()+168&"!"&"$E$4")
The trouble is that when no info is in the cell being addressed I get
#REF! , anyboby any ideas on how to leave the cell blank when no info
is in the cell addressed.
Tony


--
Reefaman
------------------------------------------------------------------------
Reefaman's Profile: http://www.excelforum.com/member.php...o&userid=31968
View this thread: http://www.excelforum.com/showthread...hreadid=520530


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default #REF! Error

IF(ISERROR(your formula),"",your formula)

HTH
--
AP

"Reefaman" a écrit
dans le message de
...

Hello I am using this formula to extract data from one worksheet to
another:
=INDIRECT("Q"&ROW()+168&"!"&"$E$4")
The trouble is that when no info is in the cell being addressed I get
#REF! , anyboby any ideas on how to leave the cell blank when no info
is in the cell addressed.
Tony


--
Reefaman
------------------------------------------------------------------------
Reefaman's Profile:

http://www.excelforum.com/member.php...o&userid=31968
View this thread: http://www.excelforum.com/showthread...hreadid=520530



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Reefaman
 
Posts: n/a
Default #REF! Error


Thanks for the replies. Worked a treat. Cheers


--
Reefaman
------------------------------------------------------------------------
Reefaman's Profile: http://www.excelforum.com/member.php...o&userid=31968
View this thread: http://www.excelforum.com/showthread...hreadid=520530

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
Ignore error msgs in formula references gharden Excel Discussion (Misc queries) 4 June 17th 05 12:14 AM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 7 March 7th 05 06:29 PM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 0 February 28th 05 06:26 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM


All times are GMT +1. The time now is 05:27 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"