Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Excel "Exact" Function

I have a worksheet in which I want to compare the data in one cell (A1) with
that in another cell. The cell which is to be compared against is immediately
beneath A1 but being one of several which will be filtered, may not be Cell
A2. It could be any one of cells A2 - A10 for example. Can any one help me in
creating a function?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default Excel "Exact" Function

If I understand correctly, you have a value in A1, and you want to determine
if this same value exists anywhere from A2 to A10. If so then you need to
look at the MATCH function. For example in B2 type:-

=IF(MATCH(A1,A2:A10,0)0,"Found","Not Found")

Hope this helps.
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Bryan Gnidrah" wrote:

I have a worksheet in which I want to compare the data in one cell (A1) with
that in another cell. The cell which is to be compared against is immediately
beneath A1 but being one of several which will be filtered, may not be Cell
A2. It could be any one of cells A2 - A10 for example. Can any one help me in
creating a function?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Excel "Exact" Function

Hi Alan,

Thanks for response. My problem is in fact the inverse of your proposed
solution. However, I think I have found a solution, rather than comparing A1
with a variable row from the range A2-A10, I can compare the specific row,
say A7 with A1, placing the function in a cell in the variable row.

"Bryan Gnidrah" wrote:

I have a worksheet in which I want to compare the data in one cell (A1) with
that in another cell. The cell which is to be compared against is immediately
beneath A1 but being one of several which will be filtered, may not be Cell
A2. It could be any one of cells A2 - A10 for example. Can any one help me in
creating a function?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Excel "Exact" Function

This array formula** will extract the *first* item in a filtered list.

=INDEX(A2:A10,MATCH(1,SUBTOTAL(3,OFFSET(A2:A10,,,R OW(A2:A10)-ROW(A2)+1)),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Bryan Gnidrah" wrote in message
...
I have a worksheet in which I want to compare the data in one cell (A1)
with
that in another cell. The cell which is to be compared against is
immediately
beneath A1 but being one of several which will be filtered, may not be
Cell
A2. It could be any one of cells A2 - A10 for example. Can any one help me
in
creating a function?



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
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Excel 2003: Conditional Formatting using "MIN" & "MAX" function MMangen Excel Discussion (Misc queries) 2 September 16th 08 07:13 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
inserting a conditional "go to" command on a excel "if" function velasques Excel Worksheet Functions 5 March 10th 06 08:16 PM
Can you replace "TRUE" with " " in an exact formula? Sweetetc Excel Worksheet Functions 2 February 10th 06 01:11 PM


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