Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have numerous references from 1 sheet(report) to another sheet(photos).
Currently i use a simple but time consuming: =IF(Report!C28="","",Report!C28) method. I would like to code this as somehting like: =if(Report!(3, 28)<"",Report!(3,28). I have found due to an added delete row code i have put to the Report page the cells being referenced to in the Photo's page then change to Ref#(being not valid) I am thinking that if i refernce the cells by code with the cells (x,y) would auto fix the deleting of the rows in sheet 1?? Am i correct in saying this? Can anyone assist me? Corey.... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This kind of linking is gonna cause you heartache later on--if it hasn't
already. If you can find a nice unique key in both worksheets, maybe you can put those keys in the second and use =vlookup() or =index(match()) to retrieve values from that other sheet. Debra Dalgleish has some notes: http://www.contextures.com/xlFunctions02.html (for =vlookup()) and http://www.contextures.com/xlFunctions03.html (for =index(match())) ========= But a formula like this: =IF(INDIRECT("report!a1")="","",INDIRECT("report!a 1")) Will always point to A1 of the Report sheet--no matter what you insert/delete. Corey wrote: I have numerous references from 1 sheet(report) to another sheet(photos). Currently i use a simple but time consuming: =IF(Report!C28="","",Report!C28) method. I would like to code this as somehting like: =if(Report!(3, 28)<"",Report!(3,28). I have found due to an added delete row code i have put to the Report page the cells being referenced to in the Photo's page then change to Ref#(being not valid) I am thinking that if i refernce the cells by code with the cells (x,y) would auto fix the deleting of the rows in sheet 1?? Am i correct in saying this? Can anyone assist me? Corey.... -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Dave.
You are true gentleman. Went with the : =IF(INDIRECT("report!a1")="","",INDIRECT("report!a 1")) suggestion. Perfect once again. Cheers Corey.... "Dave Peterson" wrote in message ... This kind of linking is gonna cause you heartache later on--if it hasn't already. If you can find a nice unique key in both worksheets, maybe you can put those keys in the second and use =vlookup() or =index(match()) to retrieve values from that other sheet. Debra Dalgleish has some notes: http://www.contextures.com/xlFunctions02.html (for =vlookup()) and http://www.contextures.com/xlFunctions03.html (for =index(match())) ========= But a formula like this: =IF(INDIRECT("report!a1")="","",INDIRECT("report!a 1")) Will always point to A1 of the Report sheet--no matter what you insert/delete. Corey wrote: I have numerous references from 1 sheet(report) to another sheet(photos). Currently i use a simple but time consuming: =IF(Report!C28="","",Report!C28) method. I would like to code this as somehting like: =if(Report!(3, 28)<"",Report!(3,28). I have found due to an added delete row code i have put to the Report page the cells being referenced to in the Photo's page then change to Ref#(being not valid) I am thinking that if i refernce the cells by code with the cells (x,y) would auto fix the deleting of the rows in sheet 1?? Am i correct in saying this? Can anyone assist me? Corey.... -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how can I disable "cutting cells" and "drag and drop "in excel ? | Excel Worksheet Functions | |||
Check if cells contain the word "Thailand", return "TRUE" | Excel Worksheet Functions | |||
Do mighty exchange "pixels" on "mm" - cells (width, height)? :( | Excel Programming | |||
Can you "duplicate" "copy" listboxes and code to multiple cells? | Excel Programming | |||
Using "Cells" to write "Range("A:A,H:H").Select" | Excel Programming |