#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cjjoo
 
Posts: n/a
Default indirect?


hi guys , this is my problem:

i got two worksheets and sheet 1 has got datas and sheet two is exactly
as sheet 1 and the datas are reference to sheet 1.

so in sheet 1 A1, the value is 5

in sheet 2 A1 , the formula used is =sheet1!A1

the formula applies for the column A in sheet 2 .

the problem is : if i delete any rows( shift rows up) in sheet 1 ,
sheet 2 will

return #REF!


Is there any way of preventing that?


--
cjjoo
------------------------------------------------------------------------
cjjoo's Profile: http://www.excelforum.com/member.php...o&userid=26916
View this thread: http://www.excelforum.com/showthread...hreadid=487511

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default indirect?

Hi!

Try this:

=INDIRECT("Sheet1!A1")

That will always refer to Sheet1 A1 no matter if you insert rows or delete
rows.

Biff

"cjjoo" wrote in
message ...

hi guys , this is my problem:

i got two worksheets and sheet 1 has got datas and sheet two is exactly
as sheet 1 and the datas are reference to sheet 1.

so in sheet 1 A1, the value is 5

in sheet 2 A1 , the formula used is =sheet1!A1

the formula applies for the column A in sheet 2 .

the problem is : if i delete any rows( shift rows up) in sheet 1 ,
sheet 2 will

return #REF!


Is there any way of preventing that?


--
cjjoo
------------------------------------------------------------------------
cjjoo's Profile:
http://www.excelforum.com/member.php...o&userid=26916
View this thread: http://www.excelforum.com/showthread...hreadid=487511



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cjjoo
 
Posts: n/a
Default indirect?


If i use the indirect formula, i cant just click and drag for the
different rows i am refering to . Is there a solution to this?


--
cjjoo
------------------------------------------------------------------------
cjjoo's Profile: http://www.excelforum.com/member.php...o&userid=26916
View this thread: http://www.excelforum.com/showthread...hreadid=487511

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default indirect?

Hi!

Try this:

=INDIRECT("Sheet1!A"&ROWS($1:1))

Biff

"cjjoo" wrote in
message ...

If i use the indirect formula, i cant just click and drag for the
different rows i am refering to . Is there a solution to this?


--
cjjoo
------------------------------------------------------------------------
cjjoo's Profile:
http://www.excelforum.com/member.php...o&userid=26916
View this thread: http://www.excelforum.com/showthread...hreadid=487511



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cjjoo
 
Posts: n/a
Default indirect?


what i am doing is that i want to picked out some datas in sheet 1 that
fulfil a certain criteria(e.g those that has "apples")


but in sheet two, with the indirect function, i cant delete the blank
rows . Is there a way out for this?

the scenario:

sheet 1:
apples
oranges
apples
orange

sheet 2
apples

apples



in sheet two , i want to delete the empty rows but i realised that it
is not possible. Pls advise


--
cjjoo
------------------------------------------------------------------------
cjjoo's Profile: http://www.excelforum.com/member.php...o&userid=26916
View this thread: http://www.excelforum.com/showthread...hreadid=487511



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default indirect?

You could use a formula like this in sheet 2

IF(ISERROR(SMALL(IF(Sheet1!$A1:$A20="apples",ROW($ A1:$A20),""),ROW($A1:$A20)
)),"",
INDEX(Sheet1!$A$1:$A$20,SMALL(IF(Sheet1!$A1:$A20=" apples",ROW($A1:$A20),""),
ROW($A1:$A20))))

To enter it, select the number of rows you think you might need for items to
be copied, then enter the formula in the formula bar, and commit it with
Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"cjjoo" wrote in
message ...

what i am doing is that i want to picked out some datas in sheet 1 that
fulfil a certain criteria(e.g those that has "apples")


but in sheet two, with the indirect function, i cant delete the blank
rows . Is there a way out for this?

the scenario:

sheet 1:
apples
oranges
apples
orange

sheet 2
apples

apples



in sheet two , i want to delete the empty rows but i realised that it
is not possible. Pls advise


--
cjjoo
------------------------------------------------------------------------
cjjoo's Profile:

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



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
Indirect function - Limitations Ken Cobler Excel Worksheet Functions 2 September 16th 05 04:59 PM
indirect cell reference using copies of worksheets in same workboo JT Spitz Excel Worksheet Functions 4 June 15th 05 03:25 PM
Indirect vs. Index WJ Excel Discussion (Misc queries) 3 June 10th 05 10:47 AM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
is there a NON-volatile version of INDIRECT ?? spiderman Excel Discussion (Misc queries) 1 February 4th 05 04:54 PM


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