Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 276
Default refer to cells by cells(0,1) etc rather than "A1"

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default refer to cells by cells(0,1) etc rather than "A1"

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 276
Default refer to cells by cells(0,1) etc rather than "A1"

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
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
how can I disable "cutting cells" and "drag and drop "in excel ? mwoody Excel Worksheet Functions 4 August 25th 08 03:53 PM
Check if cells contain the word "Thailand", return "TRUE" ali Excel Worksheet Functions 7 September 14th 07 09:53 AM
Do mighty exchange "pixels" on "mm" - cells (width, height)? :( And1 Excel Programming 0 May 1st 06 01:17 PM
Can you "duplicate" "copy" listboxes and code to multiple cells? HotRod Excel Programming 1 September 1st 04 05:03 PM
Using "Cells" to write "Range("A:A,H:H").Select" Trip Ives[_2_] Excel Programming 3 June 5th 04 03:13 PM


All times are GMT +1. The time now is 11:13 AM.

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"