#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Match and Tables

Can anybody tell me what to do:

I have a calculated table {=TABLE(B6,C6)} in cells C22:H33 and use
this formula:

=MATCH(MAX(C22:H33),C22:H33) but it alwys returns N/A.

Is there another way to get the row number for the cell, containing
the maximum value?

Jan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Match and Tables

MATCH only operates on 1D vectors. C22:H33 is 2D.

=SUMPRODUCT((ROW(C22:H33)-ROW(C22)+1)*(C22:H33=MAX(C22:H33)))

This formula will work correctly only if MAX will appear only once in
the data.

HTH
Kostis Vezerides

On Nov 11, 2:31*pm, wrote:
Can anybody tell me what to do:

I have a calculated table {=TABLE(B6,C6)} in cells C22:H33 and use
this formula:

=MATCH(MAX(C22:H33),C22:H33) but it alwys returns N/A.

Is there another way to get the row number for the cell, containing
the maximum value?

Jan


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Match and Tables

Hi,

Assuming this is the data in the range D5:E10

1 45
2 67
3 878
10 12
5 23
6 1

In F5, enter the following array formula
=IF(OR(D5:E5=MAX($D$5:$E$10)),MAX(D5:E5),""). Copy this formula down to
F10.

IN cell F12, enter the following formula
=MATCH(MAX(D5:E10),F5:F10,0)+COUNTBLANK($F$1:F4)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

wrote in message
...
Can anybody tell me what to do:

I have a calculated table {=TABLE(B6,C6)} in cells C22:H33 and use
this formula:

=MATCH(MAX(C22:H33),C22:H33) but it alwys returns N/A.

Is there another way to get the row number for the cell, containing
the maximum value?

Jan


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default Match and Tables

Thank you. I used your formula and it worked out fine.

Jan

vezerid wrote:
MATCH only operates on 1D vectors. C22:H33 is 2D.

=SUMPRODUCT((ROW(C22:H33)-ROW(C22)+1)*(C22:H33=MAX(C22:H33)))

This formula will work correctly only if MAX will appear only once in
the data.

HTH
Kostis Vezerides

On Nov 11, 2:31 pm, wrote:
Can anybody tell me what to do:

I have a calculated table {=TABLE(B6,C6)} in cells C22:H33 and use
this formula:

=MATCH(MAX(C22:H33),C22:H33) but it alwys returns N/A.

Is there another way to get the row number for the cell, containing
the maximum value?

Jan



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default Match and Tables

I used versrid's formula, but thanks anywe

Ashish Mathur wrote:
Hi,

Assuming this is the data in the range D5:E10

1 45
2 67
3 878
10 12
5 23
6 1

In F5, enter the following array formula
=IF(OR(D5:E5=MAX($D$5:$E$10)),MAX(D5:E5),""). Copy this formula down
to F10.

IN cell F12, enter the following formula
=MATCH(MAX(D5:E10),F5:F10,0)+COUNTBLANK($F$1:F4)


wrote in message
...
Can anybody tell me what to do:

I have a calculated table {=TABLE(B6,C6)} in cells C22:H33 and use
this formula:

=MATCH(MAX(C22:H33),C22:H33) but it alwys returns N/A.

Is there another way to get the row number for the cell, containing
the maximum value?

Jan





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 99
Default Match and Tables

I used vezerid's formula, but thanks anyway.

Jan

Ashish Mathur wrote:
Hi,

Assuming this is the data in the range D5:E10

1 45
2 67
3 878
10 12
5 23
6 1

In F5, enter the following array formula
=IF(OR(D5:E5=MAX($D$5:$E$10)),MAX(D5:E5),""). Copy this formula down
to F10.

IN cell F12, enter the following formula
=MATCH(MAX(D5:E10),F5:F10,0)+COUNTBLANK($F$1:F4)


wrote in message
...
Can anybody tell me what to do:

I have a calculated table {=TABLE(B6,C6)} in cells C22:H33 and use
this formula:

=MATCH(MAX(C22:H33),C22:H33) but it alwys returns N/A.

Is there another way to get the row number for the cell, containing
the maximum value?

Jan



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Match and Tables

You are welcome

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Jan Kronsell" wrote in message
...
I used vezerid's formula, but thanks anyway.

Jan

Ashish Mathur wrote:
Hi,

Assuming this is the data in the range D5:E10

1 45
2 67
3 878
10 12
5 23
6 1

In F5, enter the following array formula
=IF(OR(D5:E5=MAX($D$5:$E$10)),MAX(D5:E5),""). Copy this formula down
to F10.

IN cell F12, enter the following formula
=MATCH(MAX(D5:E10),F5:F10,0)+COUNTBLANK($F$1:F4)


wrote in message
...
Can anybody tell me what to do:

I have a calculated table {=TABLE(B6,C6)} in cells C22:H33 and use
this formula:

=MATCH(MAX(C22:H33),C22:H33) but it alwys returns N/A.

Is there another way to get the row number for the cell, containing
the maximum value?

Jan



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
hOW TO MATCH DATA CONTAINED IN DIFFERENT TABLES Shashank Excel Discussion (Misc queries) 0 September 24th 08 12:06 PM
Match and Index for Tables LiAD Excel Worksheet Functions 4 August 29th 08 11:29 AM
Nested MATCH with two tables Dave Lagergren Excel Worksheet Functions 3 September 22nd 07 12:47 AM
How do I match up two tables of data with one column in common Zman Excel Worksheet Functions 1 October 24th 06 09:56 AM
Match two tables using unique ID number fisherman Excel Discussion (Misc queries) 1 August 18th 05 02:36 AM


All times are GMT +1. The time now is 10:26 AM.

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"