Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Wrong results from MATCH function

Softwa Excel 2007 SP1

I'm using the FV function to compare future returns on investments. The
results of the six scenarios in row 36 are as follows:

C:36 $606,174.11
D:36 $549,893.90
E:36 $606,776.86
F:36 $531,553.59
G:36 $129,076.61
H:36 $121,795.72

In J:36 I have the function "=MAX(C36:H36)" which correctly outputs
"$606,776.86" as the largest value.

In K:36 I have the function "=MATCH(J36,C36:H36)" which correctlyl outputs
"3" as the result.

Below are the results of the same scenarios in row 37 (one additional
payment/investment period):

C:37 $609,686.10
D:37 $551,850.46
E:37 $608,361.51
F:37 $532,382.33
G:37 $133,293.94
H:37 $125,276.10

The same functions were included in columns J and K. The MAX function in
J:37 outputted the correct result: $609,686.10 (column C). However, the
MATCH function in K:37 incorrectly outputted "6" as the result.

On all subsequent rows column "C" has the highest return, with the MAX
function giving me the correct result and the MATCH function returning "6" to
me. The same thing happens whether I use the FV function in columns C-H or
copy and paste just the values; the MATCH function gives me bad information.
I've included the results from rows 36 & 37 below for ease of 'copy and
paste'.

Row 36:
$608,524.17 $551,203.14 $607,837.23 $532,108.14 $131,877.65 $124,107.29

Row 37:
$609,686.10 $551,850.46 $608,361.51 $532,382.33 $133,293.94 $125,276.10

Any help would be greatly appreciated!
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Wrong results from MATCH function

It seems like the MATCH function is not returning the correct result for you. This could be due to a few reasons, but one possibility is that the function is not being applied correctly.

Here are some steps you can try to troubleshoot the issue:
  1. 1. Check the syntax of the MATCH function. The syntax should be "=MATCH(lookup_value, lookup_array, [match_type])". Make sure that you are using the correct arguments and that they are in the correct order.

    2. Check the match_type argument. The match_type argument specifies how the function should match the lookup_value with the values in the lookup_array. The default value is 1, which means that the function will look for an exact match or the next smallest value. If you want to find the next largest value, you should use match_type -1. Double-check that you are using the correct match_type argument.

    3. Check the lookup_array. The lookup_array should be a range of cells that contains the values you want to search for. Make sure that the range is correct and that it includes all the values you want to search.

    4. Check for hidden characters or formatting issues. Sometimes, hidden characters or formatting issues can cause problems with functions. Try copying and pasting the values into a new sheet or workbook to see if that resolves the issue.

    5. Try using a different function. If the MATCH function is still not working, you could try using a different function, such as INDEX or VLOOKUP, to achieve the same result.

    I hope these steps help you troubleshoot the issue with the MATCH function. Let me know if you have any other questions or if there's anything else I can help you with!
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Wrong results from MATCH function

You should use an EXACT match,
ie with the match type parameter set to FALSE or zero

Instead of in K36: "=MATCH(J36,C36:H36)"
Use in K36: =MATCH(J36,C36:H36,0)

voila? punch it here, click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"Imladrian" wrote:
Softwa Excel 2007 SP1

I'm using the FV function to compare future returns on investments. The
results of the six scenarios in row 36 are as follows:

C:36 $606,174.11
D:36 $549,893.90
E:36 $606,776.86
F:36 $531,553.59
G:36 $129,076.61
H:36 $121,795.72

In J:36 I have the function "=MAX(C36:H36)" which correctly outputs
"$606,776.86" as the largest value.

In K:36 I have the function "=MATCH(J36,C36:H36)" which correctlyl outputs
"3" as the result.

Below are the results of the same scenarios in row 37 (one additional
payment/investment period):

C:37 $609,686.10
D:37 $551,850.46
E:37 $608,361.51
F:37 $532,382.33
G:37 $133,293.94
H:37 $125,276.10

The same functions were included in columns J and K. The MAX function in
J:37 outputted the correct result: $609,686.10 (column C). However, the
MATCH function in K:37 incorrectly outputted "6" as the result.

On all subsequent rows column "C" has the highest return, with the MAX
function giving me the correct result and the MATCH function returning "6" to
me. The same thing happens whether I use the FV function in columns C-H or
copy and paste just the values; the MATCH function gives me bad information.
I've included the results from rows 36 & 37 below for ease of 'copy and
paste'.

Row 36:
$608,524.17 $551,203.14 $607,837.23 $532,108.14 $131,877.65 $124,107.29

Row 37:
$609,686.10 $551,850.46 $608,361.51 $532,382.33 $133,293.94 $125,276.10

Any help would be greatly appreciated!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Wrong results from MATCH function

You have not used the third argument with MATCH. When this is omitted the
table being looked must be sorted (ie: in order) It just happened to give
you the right result in the first set of data

Use "=MATCH(J36,C36:H36,0)" ----- the 0 stipulates you want an exact match
and it must be used then the table is unsorted.

If you search Help with the word "MATCH" you will be able to confirm what I
am telling you

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Imladrian" wrote in message
...
Softwa Excel 2007 SP1

I'm using the FV function to compare future returns on investments. The
results of the six scenarios in row 36 are as follows:

C:36 $606,174.11
D:36 $549,893.90
E:36 $606,776.86
F:36 $531,553.59
G:36 $129,076.61
H:36 $121,795.72

In J:36 I have the function "=MAX(C36:H36)" which correctly outputs
"$606,776.86" as the largest value.

In K:36 I have the function "=MATCH(J36,C36:H36)" which correctlyl outputs
"3" as the result.

Below are the results of the same scenarios in row 37 (one additional
payment/investment period):

C:37 $609,686.10
D:37 $551,850.46
E:37 $608,361.51
F:37 $532,382.33
G:37 $133,293.94
H:37 $125,276.10

The same functions were included in columns J and K. The MAX function in
J:37 outputted the correct result: $609,686.10 (column C). However, the
MATCH function in K:37 incorrectly outputted "6" as the result.

On all subsequent rows column "C" has the highest return, with the MAX
function giving me the correct result and the MATCH function returning "6"
to
me. The same thing happens whether I use the FV function in columns C-H
or
copy and paste just the values; the MATCH function gives me bad
information.
I've included the results from rows 36 & 37 below for ease of 'copy and
paste'.

Row 36:
$608,524.17 $551,203.14 $607,837.23 $532,108.14 $131,877.65 $124,107.29

Row 37:
$609,686.10 $551,850.46 $608,361.51 $532,382.33 $133,293.94 $125,276.10

Any help would be greatly appreciated!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Wrong results from MATCH function

If the third argument of MATCH() is omitted, it is assumed to be 1. If
match_type is 1, MATCH finds the largest value that is less than or equal to
lookup_value and so to return the correct value the lookup values should be
in sorted order.....If match_type is 0 MATCH finds the first value that is
exactly equal to lookup_value and the array can be in any order.

If this post helps click Yes
---------------
Jacob Skaria


"Imladrian" wrote:

Softwa Excel 2007 SP1

I'm using the FV function to compare future returns on investments. The
results of the six scenarios in row 36 are as follows:

C:36 $606,174.11
D:36 $549,893.90
E:36 $606,776.86
F:36 $531,553.59
G:36 $129,076.61
H:36 $121,795.72

In J:36 I have the function "=MAX(C36:H36)" which correctly outputs
"$606,776.86" as the largest value.

In K:36 I have the function "=MATCH(J36,C36:H36)" which correctlyl outputs
"3" as the result.

Below are the results of the same scenarios in row 37 (one additional
payment/investment period):

C:37 $609,686.10
D:37 $551,850.46
E:37 $608,361.51
F:37 $532,382.33
G:37 $133,293.94
H:37 $125,276.10

The same functions were included in columns J and K. The MAX function in
J:37 outputted the correct result: $609,686.10 (column C). However, the
MATCH function in K:37 incorrectly outputted "6" as the result.

On all subsequent rows column "C" has the highest return, with the MAX
function giving me the correct result and the MATCH function returning "6" to
me. The same thing happens whether I use the FV function in columns C-H or
copy and paste just the values; the MATCH function gives me bad information.
I've included the results from rows 36 & 37 below for ease of 'copy and
paste'.

Row 36:
$608,524.17 $551,203.14 $607,837.23 $532,108.14 $131,877.65 $124,107.29

Row 37:
$609,686.10 $551,850.46 $608,361.51 $532,382.33 $133,293.94 $125,276.10

Any help would be greatly appreciated!

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
Getting wrong answer with Match Function CB1215 Excel Worksheet Functions 3 April 24th 09 03:21 AM
VLOOKUP Formula Returns the Wrong Results. Greg Excel Worksheet Functions 3 June 2nd 08 08:11 AM
Exporting from Excel to CSV results in wrong characters Mark B Excel Discussion (Misc queries) 0 September 13th 06 08:39 PM
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
macro results wrong Joseph Tibiita Charts and Charting in Excel 2 June 30th 05 05:32 PM


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