Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Referencing cells in another worksheet

Hi All,

I am trying to find a way to link a cell between two worksheets.
Unfortunately copying and pasting the link doesnt work because the data in
the worksheet I am referencing may change rows. For example...

If I have a string in cells A1 and B1 and a numerical Value in C1 and then
when I next run the report, records might be added that would move these to
say A12, B12 and C12 respectively.

on another worksheet, I have a static report that needs to reference these
same values even though they may have moved rows.

Basically I need the formula to say that if string in column A equals one
thing and the string in column B equals on thing, then put the value from
column C in the cell.

Hope this makes sense and any appreciate any help I can get.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Referencing cells in another worksheet

You might be able to use something like this:

=SUMPRODUCT(--(Sheet2!A$1:A$100="string_A"),--(Sheet2!B$1:B$100="string_B"),Sheet2!C$1:C$100)

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Hi All,

I am trying to find a way to link a cell between two worksheets.
Unfortunately copying and pasting the link doesnt work because the data in
the worksheet I am referencing may change rows. For example...

If I have a string in cells A1 and B1 and a numerical Value in C1 and then
when I next run the report, records might be added that would move these
to
say A12, B12 and C12 respectively.

on another worksheet, I have a static report that needs to reference these
same values even though they may have moved rows.

Basically I need the formula to say that if string in column A equals one
thing and the string in column B equals on thing, then put the value from
column C in the cell.

Hope this makes sense and any appreciate any help I can get.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Referencing cells in another worksheet

That works. Thanks a bunch

"T. Valko" wrote:

You might be able to use something like this:

=SUMPRODUCT(--(Sheet2!A$1:A$100="string_A"),--(Sheet2!B$1:B$100="string_B"),Sheet2!C$1:C$100)

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Hi All,

I am trying to find a way to link a cell between two worksheets.
Unfortunately copying and pasting the link doesnt work because the data in
the worksheet I am referencing may change rows. For example...

If I have a string in cells A1 and B1 and a numerical Value in C1 and then
when I next run the report, records might be added that would move these
to
say A12, B12 and C12 respectively.

on another worksheet, I have a static report that needs to reference these
same values even though they may have moved rows.

Basically I need the formula to say that if string in column A equals one
thing and the string in column B equals on thing, then put the value from
column C in the cell.

Hope this makes sense and any appreciate any help I can get.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Referencing cells in another worksheet

Out of curiosity, what do the dashes do that are before the 2 crieria ranges
(--)?

"T. Valko" wrote:

You might be able to use something like this:

=SUMPRODUCT(--(Sheet2!A$1:A$100="string_A"),--(Sheet2!B$1:B$100="string_B"),Sheet2!C$1:C$100)

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Hi All,

I am trying to find a way to link a cell between two worksheets.
Unfortunately copying and pasting the link doesnt work because the data in
the worksheet I am referencing may change rows. For example...

If I have a string in cells A1 and B1 and a numerical Value in C1 and then
when I next run the report, records might be added that would move these
to
say A12, B12 and C12 respectively.

on another worksheet, I have a static report that needs to reference these
same values even though they may have moved rows.

Basically I need the formula to say that if string in column A equals one
thing and the string in column B equals on thing, then put the value from
column C in the cell.

Hope this makes sense and any appreciate any help I can get.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Referencing cells in another worksheet

Let's use this small sample to demonstrate:

...........A..........B..........C
1........C..........X.........10
2........F..........D..........20
3........X.........Y..........15
4........A.........C..........30
5........H.........F..........10

Suppose the formula is:

=SUMPRODUCT(--(A1:A5="X"),--(B1:B5="Y"),C1:C5)

Each of these expressions will return an array of either TRUE or FALSE:
(A1:A5="X")
(B1:B5="Y")

(A1=X)=FALSE.....(B1=Y)=FALSE
(A2=X)=FALSE.....(B2=Y)=FALSE
(A3=X)=TRUE.......(B3=Y)=TRUE
(A4=X)=FALSE.....(B4=Y)=FALSE
(A5=X)=FALSE.....(B5=Y)=FALSE

The "--" coerces the TRUE and FALSE to 1 and 0 respectively.

All 3 of the arrays are then multiplied together like this:

0*0*10 = 0
0*0*20 = 0
1*1*15 = 15
0*0*30 = 0
0*0*10 = 0

SUMPRODUCT (the SUM of PRODUCTS) then adds up the result of the array
multiplication to arrive at the result:

=SUMPRODUCT({0;0;15;0;0}) = 15

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Out of curiosity, what do the dashes do that are before the 2 crieria
ranges
(--)?

"T. Valko" wrote:

You might be able to use something like this:

=SUMPRODUCT(--(Sheet2!A$1:A$100="string_A"),--(Sheet2!B$1:B$100="string_B"),Sheet2!C$1:C$100)

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Hi All,

I am trying to find a way to link a cell between two worksheets.
Unfortunately copying and pasting the link doesnt work because the data
in
the worksheet I am referencing may change rows. For example...

If I have a string in cells A1 and B1 and a numerical Value in C1 and
then
when I next run the report, records might be added that would move
these
to
say A12, B12 and C12 respectively.

on another worksheet, I have a static report that needs to reference
these
same values even though they may have moved rows.

Basically I need the formula to say that if string in column A equals
one
thing and the string in column B equals on thing, then put the value
from
column C in the cell.

Hope this makes sense and any appreciate any help I can get.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Referencing cells in another worksheet

Interesting info. thans so much

"T. Valko" wrote:

Let's use this small sample to demonstrate:

...........A..........B..........C
1........C..........X.........10
2........F..........D..........20
3........X.........Y..........15
4........A.........C..........30
5........H.........F..........10

Suppose the formula is:

=SUMPRODUCT(--(A1:A5="X"),--(B1:B5="Y"),C1:C5)

Each of these expressions will return an array of either TRUE or FALSE:
(A1:A5="X")
(B1:B5="Y")

(A1=X)=FALSE.....(B1=Y)=FALSE
(A2=X)=FALSE.....(B2=Y)=FALSE
(A3=X)=TRUE.......(B3=Y)=TRUE
(A4=X)=FALSE.....(B4=Y)=FALSE
(A5=X)=FALSE.....(B5=Y)=FALSE

The "--" coerces the TRUE and FALSE to 1 and 0 respectively.

All 3 of the arrays are then multiplied together like this:

0*0*10 = 0
0*0*20 = 0
1*1*15 = 15
0*0*30 = 0
0*0*10 = 0

SUMPRODUCT (the SUM of PRODUCTS) then adds up the result of the array
multiplication to arrive at the result:

=SUMPRODUCT({0;0;15;0;0}) = 15

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Out of curiosity, what do the dashes do that are before the 2 crieria
ranges
(--)?

"T. Valko" wrote:

You might be able to use something like this:

=SUMPRODUCT(--(Sheet2!A$1:A$100="string_A"),--(Sheet2!B$1:B$100="string_B"),Sheet2!C$1:C$100)

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Hi All,

I am trying to find a way to link a cell between two worksheets.
Unfortunately copying and pasting the link doesnt work because the data
in
the worksheet I am referencing may change rows. For example...

If I have a string in cells A1 and B1 and a numerical Value in C1 and
then
when I next run the report, records might be added that would move
these
to
say A12, B12 and C12 respectively.

on another worksheet, I have a static report that needs to reference
these
same values even though they may have moved rows.

Basically I need the formula to say that if string in column A equals
one
thing and the string in column B equals on thing, then put the value
from
column C in the cell.

Hope this makes sense and any appreciate any help I can get.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Referencing cells in another worksheet

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Interesting info. thans so much

"T. Valko" wrote:

Let's use this small sample to demonstrate:

...........A..........B..........C
1........C..........X.........10
2........F..........D..........20
3........X.........Y..........15
4........A.........C..........30
5........H.........F..........10

Suppose the formula is:

=SUMPRODUCT(--(A1:A5="X"),--(B1:B5="Y"),C1:C5)

Each of these expressions will return an array of either TRUE or FALSE:
(A1:A5="X")
(B1:B5="Y")

(A1=X)=FALSE.....(B1=Y)=FALSE
(A2=X)=FALSE.....(B2=Y)=FALSE
(A3=X)=TRUE.......(B3=Y)=TRUE
(A4=X)=FALSE.....(B4=Y)=FALSE
(A5=X)=FALSE.....(B5=Y)=FALSE

The "--" coerces the TRUE and FALSE to 1 and 0 respectively.

All 3 of the arrays are then multiplied together like this:

0*0*10 = 0
0*0*20 = 0
1*1*15 = 15
0*0*30 = 0
0*0*10 = 0

SUMPRODUCT (the SUM of PRODUCTS) then adds up the result of the array
multiplication to arrive at the result:

=SUMPRODUCT({0;0;15;0;0}) = 15

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Out of curiosity, what do the dashes do that are before the 2 crieria
ranges
(--)?

"T. Valko" wrote:

You might be able to use something like this:

=SUMPRODUCT(--(Sheet2!A$1:A$100="string_A"),--(Sheet2!B$1:B$100="string_B"),Sheet2!C$1:C$100)

--
Biff
Microsoft Excel MVP


"xtrout" wrote in message
...
Hi All,

I am trying to find a way to link a cell between two worksheets.
Unfortunately copying and pasting the link doesnt work because the
data
in
the worksheet I am referencing may change rows. For example...

If I have a string in cells A1 and B1 and a numerical Value in C1
and
then
when I next run the report, records might be added that would move
these
to
say A12, B12 and C12 respectively.

on another worksheet, I have a static report that needs to reference
these
same values even though they may have moved rows.

Basically I need the formula to say that if string in column A
equals
one
thing and the string in column B equals on thing, then put the value
from
column C in the cell.

Hope this makes sense and any appreciate any help I can get.








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
referencing the name of a worksheet Simon P California Excel Discussion (Misc queries) 5 October 15th 07 02:47 PM
CountIF() in Worksheet B while referencing cells in Worksheet A jfj3rd Excel Worksheet Functions 3 April 14th 06 11:24 PM
CountIF() in Worksheet B while referencing cells in Worksheet A jfj3rd Excel Worksheet Functions 3 April 14th 06 07:36 PM
Same formula referencing same cells returns incorrect results, randomly, when pasted into new worksheet [email protected] Excel Worksheet Functions 1 March 9th 06 07:55 PM
referencing another worksheet chartasap Excel Worksheet Functions 2 July 13th 05 01:58 PM


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