Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default display the cell ref a matching number is in

Please can someone help me with the following query?

If i have a given number and there is a matching number within a row, how
can I return the actual cell ref that the matching number is in please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default display the cell ref a matching number is in

Try this

=ADDRESS(ROW(A1),MATCH($P$1,A1:N1,0))

Drag down and it searches each row starting in row 1 for the address of the
value in P1


Mike

"Cadders" wrote:

Please can someone help me with the following query?

If i have a given number and there is a matching number within a row, how
can I return the actual cell ref that the matching number is in please?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default display the cell ref a matching number is in

Thanks again Mike....can you tell me what the 'Row(a1)' dictates please? the
cell I am matching is N4 and the range to match it against is I4:M4. When I
use your formula and change the 'Match' part, it returns the cell ref of B4
but the matching cell is actually J4 - sorry for being numb :-(

"Mike H" wrote:

Try this

=ADDRESS(ROW(A1),MATCH($P$1,A1:N1,0))

Drag down and it searches each row starting in row 1 for the address of the
value in P1


Mike

"Cadders" wrote:

Please can someone help me with the following query?

If i have a given number and there is a matching number within a row, how
can I return the actual cell ref that the matching number is in please?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default display the cell ref a matching number is in

Hi,

Row(a1) is simply a method of getting a number 1 so that the formula looks
in row 1. The advantage od doing that instead of just entering a 1 is that if
you grag it down then Row(a1) increments to Row(a2) and the formula looks at
the next row.

For your data layout try this
=ADDRESS(ROW(A4),MATCH(N4,I4:M4,0))

once again Row(a4) can simply be a 4

Mike


"Cadders" wrote:

Thanks again Mike....can you tell me what the 'Row(a1)' dictates please? the
cell I am matching is N4 and the range to match it against is I4:M4. When I
use your formula and change the 'Match' part, it returns the cell ref of B4
but the matching cell is actually J4 - sorry for being numb :-(

"Mike H" wrote:

Try this

=ADDRESS(ROW(A1),MATCH($P$1,A1:N1,0))

Drag down and it searches each row starting in row 1 for the address of the
value in P1


Mike

"Cadders" wrote:

Please can someone help me with the following query?

If i have a given number and there is a matching number within a row, how
can I return the actual cell ref that the matching number is in please?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default display the cell ref a matching number is in

ahh I see....thanks again Mike for your help

"Mike H" wrote:

Hi,

Row(a1) is simply a method of getting a number 1 so that the formula looks
in row 1. The advantage od doing that instead of just entering a 1 is that if
you grag it down then Row(a1) increments to Row(a2) and the formula looks at
the next row.

For your data layout try this
=ADDRESS(ROW(A4),MATCH(N4,I4:M4,0))

once again Row(a4) can simply be a 4

Mike


"Cadders" wrote:

Thanks again Mike....can you tell me what the 'Row(a1)' dictates please? the
cell I am matching is N4 and the range to match it against is I4:M4. When I
use your formula and change the 'Match' part, it returns the cell ref of B4
but the matching cell is actually J4 - sorry for being numb :-(

"Mike H" wrote:

Try this

=ADDRESS(ROW(A1),MATCH($P$1,A1:N1,0))

Drag down and it searches each row starting in row 1 for the address of the
value in P1


Mike

"Cadders" wrote:

Please can someone help me with the following query?

If i have a given number and there is a matching number within a row, how
can I return the actual cell ref that the matching number is in please?



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
Display in a selected cell the 1st negative value's matching date Elaine from South Carolina Excel Worksheet Functions 1 November 20th 07 04:20 PM
display a number in another cell Motherlulu Excel Worksheet Functions 3 July 12th 07 03:32 PM
display text in one cell as a number in an adjacent cell in excel Denno New Users to Excel 1 November 16th 06 05:13 PM
have one cell display text which reflects a number in another cell excelrookie Excel Discussion (Misc queries) 3 September 25th 06 05:49 PM
I want to display the number 0 first in a cell, it won't let me n. lauren Excel Discussion (Misc queries) 4 March 8th 05 11:22 PM


All times are GMT +1. The time now is 03:40 AM.

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"