A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Complex match



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2009, 04:50 PM posted to microsoft.public.excel.misc
Vic
external usenet poster
 
Posts: 182
Default Complex match

Current formula puts "Yes" into cell M. I need to fix this formula so when
there is a match, I need to put the value of cell K from Sheet2 into cell G
of Sheet1. How can I do this?

=IF(ISNA(MATCH(F92,Sheet2!$F$21:$F$9300,0)),"",
IF(OR(INDEX(Sheet2!$I$21:$I$9300,MATCH(F92,Sheet2! $F$21:$F$9300,0))="x",
INDEX(Sheet2!$I$21:$I$9300,MATCH(F92,Sheet2!$F$21: $F$9300,0))="R"),
"Yes",""))

Above formula was the answer to my question:
I have 2 sheets. I need to compare F92 of Sheet-1 with Sheet-2 range from
F21:F9300. If there is a match then I need to see corresponding value in
cell I of sheet-2. If that value is X or R, then on Sheet-1, next to F92 I
need to insert Yes into G92. I need to check Sheet-1 F92 thru F1893. As a
result, I will see some "Yes" in column G of sheet-1. How can I do this?

Thank you.
  #2  
Old November 10th, 2009, 04:53 PM posted to microsoft.public.excel.misc
Vic
external usenet poster
 
Posts: 182
Default Complex match

Correction! The result should be in G not in M.

"Vic" wrote:

Current formula puts "Yes" into cell M. I need to fix this formula so when
there is a match, I need to put the value of cell K from Sheet2 into cell G
of Sheet1. How can I do this?

=IF(ISNA(MATCH(F92,Sheet2!$F$21:$F$9300,0)),"",
IF(OR(INDEX(Sheet2!$I$21:$I$9300,MATCH(F92,Sheet2! $F$21:$F$9300,0))="x",
INDEX(Sheet2!$I$21:$I$9300,MATCH(F92,Sheet2!$F$21: $F$9300,0))="R"),
"Yes",""))

Above formula was the answer to my question:
I have 2 sheets. I need to compare F92 of Sheet-1 with Sheet-2 range from
F21:F9300. If there is a match then I need to see corresponding value in
cell I of sheet-2. If that value is X or R, then on Sheet-1, next to F92 I
need to insert Yes into G92. I need to check Sheet-1 F92 thru F1893. As a
result, I will see some "Yes" in column G of sheet-1. How can I do this?

Thank you.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.