Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Help with a formula required please

I require help with a formula please.

I have the following:

=IF(ISERROR(MATCH(old!$C$1:$C$" & overallLastRow & ",new!$C$1:$C$" &
overallLastRow & " ,0)),old!$C$1:$C$" & overallLastRow & " ,"""")

This formula uses 2 lists:

old!$C$1:$C$" & overallLastRow & "
AND
new!$C$1:$C$" & overallLastRow & "

Obviously old and new are the names of the Worksheets on which these lists
are found. These are direct references to these sheets.

What I want to do is give a sheet a name and link to this in a similar way
that I have given a cell number a name of "overallLastRow".

Can anyone tell me how to do this?

Thanks
Dave
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Help with a formula required please

You can do it using INDIRECT - this allows you to build up cell or
range references as a string, eg:

INDIRECT(A1&"!$C$1:$C$" & overallLastRow)

where A1 will contain your sheet name - if you have spaces in the name
then you should use:

INDIRECT("'"&A1&"'!$C$1:$C$" & overallLastRow)

Note the apostrophes.

Hope this helps.

Pete

On Nov 2, 10:28 am, Dave wrote:
I require help with a formula please.

I have the following:

=IF(ISERROR(MATCH(old!$C$1:$C$" & overallLastRow & ",new!$C$1:$C$" &
overallLastRow & " ,0)),old!$C$1:$C$" & overallLastRow & " ,"""")

This formula uses 2 lists:

old!$C$1:$C$" & overallLastRow & "
AND
new!$C$1:$C$" & overallLastRow & "

Obviously old and new are the names of the Worksheets on which these lists
are found. These are direct references to these sheets.

What I want to do is give a sheet a name and link to this in a similar way
that I have given a cell number a name of "overallLastRow".

Can anyone tell me how to do this?

Thanks
Dave



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Help with a formula required please

Does this do it

=IF(ISERROR(MATCH(INDIRECT("'"&old_sheet&"'!$C$1:$ C$"&overallLastRow),
INDIRECT("'"&new_sheet&"'!$C$1:$C$"&overallLastRow ),0)),
INDIRECT("'"&old_sheet&"'!$C$1:$C$"&overallLastRow ),"""")


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Dave" wrote in message
...
I require help with a formula please.

I have the following:

=IF(ISERROR(MATCH(old!$C$1:$C$" & overallLastRow & ",new!$C$1:$C$" &
overallLastRow & " ,0)),old!$C$1:$C$" & overallLastRow & " ,"""")

This formula uses 2 lists:

old!$C$1:$C$" & overallLastRow & "
AND
new!$C$1:$C$" & overallLastRow & "

Obviously old and new are the names of the Worksheets on which these lists
are found. These are direct references to these sheets.

What I want to do is give a sheet a name and link to this in a similar way
that I have given a cell number a name of "overallLastRow".

Can anyone tell me how to do this?

Thanks
Dave



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Help with a formula required please

I have enterred my sheet names into the fomula as follows:

=IF(ISERROR(MATCH(INDIRECT("'"&oldWorkSheet&"'!$C$ 1:$C$"&overallLastRow),INDIRECT("'"&newWorkSheet&" '!$C$1:$C$"&overallLastRow),0)),INDIRECT("'"&oldWo rkSheet&"'!$C$1:$C$"&overallLastRow),"""")

When I put this into my module it comments everything out from the first
"&oldWorkSheet&"'!$C$1:$C$"&overall... onwards.

Dave

"Bob Phillips" wrote:

Does this do it

=IF(ISERROR(MATCH(INDIRECT("'"&old_sheet&"'!$C$1:$ C$"&overallLastRow),
INDIRECT("'"&new_sheet&"'!$C$1:$C$"&overallLastRow ),0)),
INDIRECT("'"&old_sheet&"'!$C$1:$C$"&overallLastRow ),"""")


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Dave" wrote in message
...
I require help with a formula please.

I have the following:

=IF(ISERROR(MATCH(old!$C$1:$C$" & overallLastRow & ",new!$C$1:$C$" &
overallLastRow & " ,0)),old!$C$1:$C$" & overallLastRow & " ,"""")

This formula uses 2 lists:

old!$C$1:$C$" & overallLastRow & "
AND
new!$C$1:$C$" & overallLastRow & "

Obviously old and new are the names of the Worksheets on which these lists
are found. These are direct references to these sheets.

What I want to do is give a sheet a name and link to this in a similar way
that I have given a cell number a name of "overallLastRow".

Can anyone tell me how to do this?

Thanks
Dave




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
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
FORMULA REQUIRED shaji Excel Discussion (Misc queries) 2 September 12th 06 04:05 PM
Formula Required Funkyfido Excel Worksheet Functions 2 January 25th 06 10:30 AM
A Formula required - please! Anthony Excel Discussion (Misc queries) 2 July 21st 05 10:11 AM
Help Required With IF AND Formula Ian Excel Worksheet Functions 3 February 25th 05 12:30 PM


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

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"