Excel - Index and Match Function Help

Asked By Kay
28-Jan-10 10:10 PM
Hi all,

I have a peculiar problem with a function.  I am using Excel 2007.  I am
working with about 57,000 records.  I must match the rate of an audio call
based on two conditions.  I am using the following formula against a list
that is sorted in ascending order:
=INDEX('Rate Table'!$E$34:$H$98,MATCH('Veri vs Interc Clean Data 2010
'!G597,Entity,0),MATCH('Veri vs Interc Clean Data 2010 '!E597,'Rate
Table'!$E$33:$H$33,0))

I can find a match for all but 600 or so records.  There is a match, without
a doubt for the other 600.

I have made sure that the text the lookup is based on is clean...no trailing
or leading spaces.  I have even cleared the cells and retyped the data just
as it is in the lookup table.  No matter how many times, I write it or how I
modify the function, those records return 0.  I have also updated Excel, ran
diagnostics, copied the data to a new workbook, opened and repaired...I just
do not know what else to try.  Of course, the report is due Friday morning.
Any help would be appreciated.
Microsoft Excel
(1)
Excel 2007
(1)
Named range
(1)
Workbook
(1)
VLOOKUP
(1)
INDEX
(1)
MATCH
(1)
Report
(1)
  T. Valko replied to Kay
28-Jan-10 10:26 PM
'!G597,Entity,0),MATCH('Veri vs Interc Clean Data 2010 '!E597,'Rate
Table'!$E$33:$H$33,0))

If your formula is returning 0 that means the MATCH functions *have found*
matches of the lookup values. If they were not finding matches then one or
the other (or possibly both) MATCH function would cause a #N/A error. A 0
could indicate that the cell is empty or it actually does contain a numeric
0. Or, perhaps the cell contains numeric 0 but you have display zero values
turned off so the cell might appear blank/empty.

????

--
Biff
Microsoft Excel MVP
  Jacob Skaria replied to Kay
29-Jan-10 12:20 AM
Check out whether the named range 'Entity' refers to $E$34:$E$98...

=INDEX('Rate Table'!$E$34:$H$98,
MATCH('Veri vs Interc Clean Data 2010 '!G597,'Rate Table'!$E$34:$E$98,0),
MATCH('Veri vs Interc Clean Data 2010 '!E597,'Rate Table'!$E$33:$H$33,0))


--
Jacob
  Jacob Skaria replied to Jacob Skaria
29-Jan-10 12:27 AM
You may also use VLOOKUP() as below


=VLOOKUP('Veri vs Interc Clean Data 2010 '!G597,
'Rate Table'!$E$34:$H$98,
MATCH('Veri vs Interc Clean Data 2010 '!E597,'Rate Table'!$E$33:$H$33,0),0)

--
Jacob
  Kay replied to T. Valko
29-Jan-10 08:17 AM
Thanks to all who have replied so far.

I agree that it is finding something with the 0.  It has found something for
all other 51,000.  The value that it should find is $0.068.  I have checked
all formatting , both the formula cell and the rate table cells.  I checked
options for any odd behaviour there.  I have not turned on the option to have
zero values turned off in either case, the formula cell or the rate table.

The entity range name does refer to the correct area and has worked for the
rest of the formulas correctly.  I tried the vlookup, but it returns an #NA.
Any other ideas.
  T. Valko replied to Kay
29-Jan-10 06:23 PM
Your lookup table is not that big.

I'd suggest you break the formula down to its individual components and then
inspect the cell that the formula refers to.

For example:

For the relative row of the lookup table:

=MATCH('Veri vs Interc Clean Data 2010 '!G597,Entity,0)

For the relative column of the lookup table:

=MATCH('Veri vs Interc Clean Data 2010 '!E597,'Rate Table'!$E$33:$H$33,0)

Then trace that intersection and see what the cell value is.

--
Biff
Microsoft Excel MVP
Create New Account
help
Win7 VirtualStore Weirdness with Excel 2002 and earlier Excel I thought I'd share a weird experience I had today in case it saves installer for it - - which registers it as an add-in for all installed versions of Excel - - and tested it. Fine in Windows 2000 in all installed versions of Excel. Boot to Windows XP, fine there too. Boot to Windows 7. Fine in Excel 2010, 2007, and 2003. But Excel 2002 and 2000 were still loading the old version of the add-in. I uninstalled the add-in, made sure it was gone, and reinstalled it. Same problem in Excel 2002 and earlier; still works fine in Excel 2003 and later. I opened the VB
Searching for text within formula Excel Is it possible to search the contents of a formula ? For example, searching for the with the result of a formula. Is this something a UDF could do ? - Ronald K. Excel Worksheet Discussions Microsoft Excel (1) Ronald K. Isabelle (1) Excel 2007 (1) Sheets (1) Named range (1) Worksheet (1) Workbook (1) ComboBox (1) Forgot to add the purpose of this problem
How to fix Compatibility error Excel I have a WB created and saved in Excel 2003 format. I use and edit the file in Excel 2007 in compatibility mode at times. I need to keep it in 2003 format because some users are still on Excel 2003 and some are on 2007. The WS are protected and have formulas and complex formatting and macros in the WB. Sometimes in 2007, when I save it I get the Compatibilty error report that points to certain cells ranges on the worksheets with this message: This workbook contains data in cells outside of the row and column limit of the selected file
How can you convert a text value to a numerical formula ? Excel How can you convert a text value to a numerical formula ? If A1 contains ABC can you get the 10*20 value to return a numerical value of 200 ? Exceluser Excel Worksheet Discussions Excel 2007 (1) Excel 2003 (1) Excel (1) User defined function (1) CONCATENATE (1) SUBSTITUTE (1) Worksheet (1) Workbook (1) You could make use of a user-defined function like this one: Function eval would use it like: = 3Deval(A1) where A1 contains an string which is a valid Excel expression. Hope this helps. Pete Pete, Thanks for the quick response. I have not used
Lookup formula help Excel Alraedy posted in microsoft.public.excel.functions newsgroup. Server is returing duplicate post error so I am posting my corrected version 4 David Blank Blank Blank Blank I need this for a Paystub Report in my excel 2007 payroll workbook. Under a particular head some employees are charged 1% of their basic pay, some pay 7% and other pay nothing. Any help will be highly appreciated. TIA. Rafeek. Excel Discussions Error (1) Excel (1) Worksheet (1) ISNUMBER (1) Workbook (1) VLOOKUP (1) COUNT (1) MATCH (1) D2: This