Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Cell reference question

Version:Excel 2003
I am trying to reference the first and the last cell within a group of
cell with the same value.

Here is what I have:
B22=ADDRESS(MIN(IF(table=A22,ROW(table))),MIN(IF(t able=A22,COLUMN(table))),,
1) & "-" &
ADDRESS(MAX(IF(table=A22,ROW(table))),MAX(IF(table =A22,COLUMN(table))),,
1)

Where table is A27:A10377
A22 = "REF VALUE"

The cell B22 returns #VALUE, however when I use the formula button
(fx), the formula result is displayed as $A$34-$A$97 (which is
correct).

When I evaluate the formula, I get and error #value
ADDRESS(MIN(IF(#value!=A22, .....
or in other words: IF(A27:A10377...

I even tried to change the cell reference to a number (A22=60155),
thinking it was something with the MIN MAX functions, but alas, the
same result.

If anyone can help, or explain why this doesn't work I would greatly
appreciate it.

Thank you
Ivar
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Cell reference question

Did you array enter the formula? Array formulas need to be entered using the
key combination of CTRL,SHIFT,ENTER (not just ENTER)

Here's another way to do this that doesn't require an array formula:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(A22,table,ROW(table))

--
Biff
Microsoft Excel MVP


"blumonkey" wrote in message
...
Version:Excel 2003
I am trying to reference the first and the last cell within a group of
cell with the same value.

Here is what I have:
B22=ADDRESS(MIN(IF(table=A22,ROW(table))),MIN(IF(t able=A22,COLUMN(table))),,
1) & "-" &
ADDRESS(MAX(IF(table=A22,ROW(table))),MAX(IF(table =A22,COLUMN(table))),,
1)

Where table is A27:A10377
A22 = "REF VALUE"

The cell B22 returns #VALUE, however when I use the formula button
(fx), the formula result is displayed as $A$34-$A$97 (which is
correct).

When I evaluate the formula, I get and error #value
ADDRESS(MIN(IF(#value!=A22, .....
or in other words: IF(A27:A10377...

I even tried to change the cell reference to a number (A22=60155),
thinking it was something with the MIN MAX functions, but alas, the
same result.

If anyone can help, or explain why this doesn't work I would greatly
appreciate it.

Thank you
Ivar



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Cell reference question

Correction:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(A22,table,ROW(table))


Should be:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(2,1/(table=A22),ROW(table))

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Did you array enter the formula? Array formulas need to be entered using
the key combination of CTRL,SHIFT,ENTER (not just ENTER)

Here's another way to do this that doesn't require an array formula:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(A22,table,ROW(table))

--
Biff
Microsoft Excel MVP


"blumonkey" wrote in message
...
Version:Excel 2003
I am trying to reference the first and the last cell within a group of
cell with the same value.

Here is what I have:
B22=ADDRESS(MIN(IF(table=A22,ROW(table))),MIN(IF(t able=A22,COLUMN(table))),,
1) & "-" &
ADDRESS(MAX(IF(table=A22,ROW(table))),MAX(IF(table =A22,COLUMN(table))),,
1)

Where table is A27:A10377
A22 = "REF VALUE"

The cell B22 returns #VALUE, however when I use the formula button
(fx), the formula result is displayed as $A$34-$A$97 (which is
correct).

When I evaluate the formula, I get and error #value
ADDRESS(MIN(IF(#value!=A22, .....
or in other words: IF(A27:A10377...

I even tried to change the cell reference to a number (A22=60155),
thinking it was something with the MIN MAX functions, but alas, the
same result.

If anyone can help, or explain why this doesn't work I would greatly
appreciate it.

Thank you
Ivar





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Cell reference question

On May 19, 12:57 pm, "T. Valko" wrote:
Correction:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(A22,table,ROW(table))


Should be:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(2,1/(table=A22),ROW(table))

--
Biff
Microsoft Excel MVP

"T. Valko" wrote in message

...

Did you array enter the formula? Array formulas need to be entered using
the key combination of CTRL,SHIFT,ENTER (not just ENTER)


Here's another way to do this that doesn't require an array formula:


="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(A22,table,ROW(table))


--
Biff
Microsoft Excel MVP


"blumonkey" wrote in message
...
Version:Excel 2003
I am trying to reference the first and the last cell within a group of
cell with the same value.


Here is what I have:
B22=ADDRESS(MIN(IF(table=A22,ROW(table))),MIN(IF(t able=A22,COLUMN(table))),,
1) & "-" &
ADDRESS(MAX(IF(table=A22,ROW(table))),MAX(IF(table =A22,COLUMN(table))),,
1)


Where table is A27:A10377
A22 = "REF VALUE"


The cell B22 returns #VALUE, however when I use the formula button
(fx), the formula result is displayed as $A$34-$A$97 (which is
correct).


When I evaluate the formula, I get and error #value
ADDRESS(MIN(IF(#value!=A22, .....
or in other words: IF(A27:A10377...


I even tried to change the cell reference to a number (A22=60155),
thinking it was something with the MIN MAX functions, but alas, the
same result.


If anyone can help, or explain why this doesn't work I would greatly
appreciate it.


Thank you
Ivar


The Array enter was the thing I was missing, didn't even know about
it :-) Like your solution better though, just to help me understand
(if you have the time), so if I use the LOOKUP and the ROW in a
combination, it would look up the last value found of A22?
Is INDEX something similar to ADDRESS, but list the row only?

Thank you again!
Ivar
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Cell reference question

"blumonkey" wrote in message
...
On May 19, 12:57 pm, "T. Valko" wrote:
Correction:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(A22,table,ROW(table))


Should be:

="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(2,1/(table=A22),ROW(table))

--
Biff
Microsoft Excel MVP

"T. Valko" wrote in message

...

Did you array enter the formula? Array formulas need to be entered
using
the key combination of CTRL,SHIFT,ENTER (not just ENTER)


Here's another way to do this that doesn't require an array formula:


="A"&INDEX(ROW(table),MATCH(A22,table,0))&"-A"&LOOKUP(A22,table,ROW(table))


--
Biff
Microsoft Excel MVP


"blumonkey" wrote in message
...
Version:Excel 2003
I am trying to reference the first and the last cell within a group of
cell with the same value.


Here is what I have:
B22=ADDRESS(MIN(IF(table=A22,ROW(table))),MIN(IF(t able=A22,COLUMN(table))),,
1) & "-" &
ADDRESS(MAX(IF(table=A22,ROW(table))),MAX(IF(table =A22,COLUMN(table))),,
1)


Where table is A27:A10377
A22 = "REF VALUE"


The cell B22 returns #VALUE, however when I use the formula button
(fx), the formula result is displayed as $A$34-$A$97 (which is
correct).


When I evaluate the formula, I get and error #value
ADDRESS(MIN(IF(#value!=A22, .....
or in other words: IF(A27:A10377...


I even tried to change the cell reference to a number (A22=60155),
thinking it was something with the MIN MAX functions, but alas, the
same result.


If anyone can help, or explain why this doesn't work I would greatly
appreciate it.


Thank you
Ivar


The Array enter was the thing I was missing, didn't even know about
it :-) Like your solution better though, just to help me understand
(if you have the time), so if I use the LOOKUP and the ROW in a
combination, it would look up the last value found of A22?
Is INDEX something similar to ADDRESS, but list the row only?

Thank you again!
Ivar


if I use the LOOKUP and the ROW in a
combination, it would look up the last value found of A22?


Yes, use the "corrected" version.

Is INDEX something similar to ADDRESS, but list the row only?


Sort of. You give INDEX a range of values to "hold". Those values (in this
case) are the row numbers for your named range Table. We then tell INDEX we
want the row number that corresponds to the first location of "REF VALUE" by
using the MATCH function.

--
Biff
Microsoft Excel MVP




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
Cell Reference Question JMK Excel Discussion (Misc queries) 3 January 13th 08 08:44 PM
cell reference question Island Girl New Users to Excel 7 December 28th 07 02:20 AM
Cell Reference Question tompal Excel Worksheet Functions 2 January 12th 06 05:51 PM
Cell reference question JM Excel Discussion (Misc queries) 1 May 18th 05 06:10 AM
cell reference question marika1981 Excel Discussion (Misc queries) 1 April 13th 05 12:16 AM


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