Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phil
 
Posts: n/a
Default Lookup , match, not sure !?

Hi,
I am trying to find a formula that will look up a text value in Column A
then compare it to the corresponding cell in columnB and copy the numbers in
column c.
For instance...
Look down Column A for "Tony". If Tony is in ,say, A5 then look at B5 for
"Phil" and if B5 = Phil then copy number in C5. If B5 not equal to Phil then
do nothing.

Hope i explained it ok.
Thanks.


  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=INDEX(C1:C10,MATCH(1,(A1:A10="Tony")*(B1:B10="Phi l")*ISNUMBER(C1:C10),0))
array entered (ctrl+shift+enter)

will give you the first number where col A and Col B are tony and phil and
col C is a number.

"Phil" wrote in message
. uk...
Hi,
I am trying to find a formula that will look up a text value in Column A
then compare it to the corresponding cell in columnB and copy the numbers
in column c.
For instance...
Look down Column A for "Tony". If Tony is in ,say, A5 then look at B5 for
"Phil" and if B5 = Phil then copy number in C5. If B5 not equal to Phil
then do nothing.

Hope i explained it ok.
Thanks.




  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

=sumproduct(--(A:A="Tony"),--(B:B="Phil"),C:C)

will return a zero value if Tony & Phil aren't side by side in columns A &
B, but if they are side by side, will return the value in column C



"Phil" wrote:

Hi,
I am trying to find a formula that will look up a text value in Column A
then compare it to the corresponding cell in columnB and copy the numbers in
column c.
For instance...
Look down Column A for "Tony". If Tony is in ,say, A5 then look at B5 for
"Phil" and if B5 = Phil then copy number in C5. If B5 not equal to Phil then
do nothing.

Hope i explained it ok.
Thanks.



  #4   Report Post  
Phil
 
Posts: n/a
Default

Excellent, thanks buddy!
"N Harkawat" <nharkawat@hotmail_dot_com wrote in message
...
=INDEX(C1:C10,MATCH(1,(A1:A10="Tony")*(B1:B10="Phi l")*ISNUMBER(C1:C10),0))
array entered (ctrl+shift+enter)

will give you the first number where col A and Col B are tony and phil
and col C is a number.

"Phil" wrote in message
. uk...
Hi,
I am trying to find a formula that will look up a text value in Column A
then compare it to the corresponding cell in columnB and copy the numbers
in column c.
For instance...
Look down Column A for "Tony". If Tony is in ,say, A5 then look at B5 for
"Phil" and if B5 = Phil then copy number in C5. If B5 not equal to Phil
then do nothing.

Hope i explained it ok.
Thanks.






  #5   Report Post  
RagDyer
 
Posts: n/a
Default

SUMPRODUCT *doesn't* work with entire column references:

A:A, B:B, C:C
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Duke Carey" wrote in message
...
=sumproduct(--(A:A="Tony"),--(B:B="Phil"),C:C)

will return a zero value if Tony & Phil aren't side by side in columns A &
B, but if they are side by side, will return the value in column C



"Phil" wrote:

Hi,
I am trying to find a formula that will look up a text value in Column A
then compare it to the corresponding cell in columnB and copy the

numbers in
column c.
For instance...
Look down Column A for "Tony". If Tony is in ,say, A5 then look at B5

for
"Phil" and if B5 = Phil then copy number in C5. If B5 not equal to Phil

then
do nothing.

Hope i explained it ok.
Thanks.






  #6   Report Post  
Phil
 
Posts: n/a
Default

What you gave me worked great but is there a way to do it where "Tony" and
"Phil" can be in either column. As it is now Tony in A matches with Phil in
B but can Tony be in A or B and still match with Phil in B or A ?
"N Harkawat" <nharkawat@hotmail_dot_com wrote in message
...
=INDEX(C1:C10,MATCH(1,(A1:A10="Tony")*(B1:B10="Phi l")*ISNUMBER(C1:C10),0))
array entered (ctrl+shift+enter)

will give you the first number where col A and Col B are tony and phil
and col C is a number.

"Phil" wrote in message
. uk...
Hi,
I am trying to find a formula that will look up a text value in Column A
then compare it to the corresponding cell in columnB and copy the numbers
in column c.
For instance...
Look down Column A for "Tony". If Tony is in ,say, A5 then look at B5 for
"Phil" and if B5 = Phil then copy number in C5. If B5 not equal to Phil
then do nothing.

Hope i explained it ok.
Thanks.






  #7   Report Post  
RagDyer
 
Posts: n/a
Default

Try this:

=SUMPRODUCT((A1:A10={"Tony","Phil"})*(B1:B10={"Phi l","Tony"})*C1:C10)
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"Phil" wrote in message
. uk...
What you gave me worked great but is there a way to do it where "Tony" and
"Phil" can be in either column. As it is now Tony in A matches with Phil

in
B but can Tony be in A or B and still match with Phil in B or A ?
"N Harkawat" <nharkawat@hotmail_dot_com wrote in message
...

=INDEX(C1:C10,MATCH(1,(A1:A10="Tony")*(B1:B10="Phi l")*ISNUMBER(C1:C10),0))
array entered (ctrl+shift+enter)

will give you the first number where col A and Col B are tony and phil
and col C is a number.

"Phil" wrote in message
. uk...
Hi,
I am trying to find a formula that will look up a text value in Column

A
then compare it to the corresponding cell in columnB and copy the

numbers
in column c.
For instance...
Look down Column A for "Tony". If Tony is in ,say, A5 then look at B5

for
"Phil" and if B5 = Phil then copy number in C5. If B5 not equal to Phil
then do nothing.

Hope i explained it ok.
Thanks.







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
Complex LookUp / Match Problem ?? carl Excel Worksheet Functions 2 May 2nd 05 08:53 PM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM
Lookup then Match and insert value from next column Tenacity Excel Worksheet Functions 3 March 4th 05 02:49 AM
lookup, index, match, offset, etc. [email protected] Excel Worksheet Functions 2 January 3rd 05 08:51 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM


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