Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JHalsall
 
Posts: n/a
Default Matching more than one cell


I have two columns of data, the first column contains a reference, and
the second contains the data, I want to be able to find data in the
second column where the value in the first column matches a given
reference. I can do this if the reference is unique in the first
column, however the same reference may occur several times in the first
column and I want to be abnle to return all values that match not just
the first one.

Thank you in advance for your assistance in this matter.


--
JHalsall
------------------------------------------------------------------------
JHalsall's Profile: http://www.excelforum.com/member.php...o&userid=34382
View this thread: http://www.excelforum.com/showthread...hreadid=555480

  #2   Report Post  
Posted to microsoft.public.excel.misc
JHalsall
 
Posts: n/a
Default Matching more than one cell


I had an error in my formula have now sorted it.

My formula looks like this:

=INDEX($B:$B,SMALL(IF($A$2:$A$1000=E2,ROW($A$2:$A$ 1000 )),ROW(A1)))

comments on if there is a better way to do this.

Also I now want to be able to see if any of these values contain a
certain value, I am using the below formula which at the moment always
returns F2,

=IF(F$2:F$10="FALSE","FALSE",F2).


--
JHalsall
------------------------------------------------------------------------
JHalsall's Profile: http://www.excelforum.com/member.php...o&userid=34382
View this thread: http://www.excelforum.com/showthread...hreadid=555480

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Matching more than one cell

You could trap the error

=IF(ISERROR(SMALL(IF($A$2:$A$1000=$E$2,ROW($A$2:$A $1000 )),ROW(A1))),"",
INDEX($B:$B,SMALL(IF($A$2:$A$1000=$E$2,ROW($A$2:$A $1000 )),ROW(A1))))

=IF(COUNTIF(F$2:F$10,"FALSE")0,"FALSE",F2)

perhaps


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"JHalsall" wrote in
message ...

I had an error in my formula have now sorted it.

My formula looks like this:

=INDEX($B:$B,SMALL(IF($A$2:$A$1000=E2,ROW($A$2:$A$ 1000 )),ROW(A1)))

comments on if there is a better way to do this.

Also I now want to be able to see if any of these values contain a
certain value, I am using the below formula which at the moment always
returns F2,

=IF(F$2:F$10="FALSE","FALSE",F2).


--
JHalsall
------------------------------------------------------------------------
JHalsall's Profile:

http://www.excelforum.com/member.php...o&userid=34382
View this thread: http://www.excelforum.com/showthread...hreadid=555480



  #4   Report Post  
Posted to microsoft.public.excel.misc
JHalsall
 
Posts: n/a
Default Matching more than one cell


Thank you that has solved my problems.


--
JHalsall
------------------------------------------------------------------------
JHalsall's Profile: http://www.excelforum.com/member.php...o&userid=34382
View this thread: http://www.excelforum.com/showthread...hreadid=555480

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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM


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