ExcelTip.com
ExcelTip.com
Account Icon Account Icon Account Icon
Google Exceltip.com
JOIN OUR NEWSLETTER
  and receive for joining:
Free eBook Learn More!
Free Excel ADD-IN
Free Weekly Excel Tip
4 e-books in cd-rom
F1 Formulas & Functions
F1 Formulas & Functions
F1 EXCEL
F1 eBook (Spanish)
F1 EXCEL
Financial Statements.xls
 

» Retrieving a value from a reference grid according to index values
Problem:

Range A1:D5 contains numbers, arrayed in a reference grid specified in row 1 (columns) and column A (rows).
How could we find the value in Range A8:D10 matching each pair of index values (column and row) in Range A7:D5?

Solution:
Use the INDEX and MATCH functions, as follows:
=INDEX($A$1:$D$5,MATCH(B8,$A$1:$A$5),MATCH(A8,$A$1:$D$1))


Screenshot // Retrieving a value from a reference grid according to index values

Retrieving  a value from a reference grid according to index values
Rate this tip
12 34 5
  RATING: 4.14
  VIEWS: 9452

READER COMMENTS (view all comments)


Index & Match
Valerie wrote on July 18, 2005 16:21 EST
I use this formula all the time and have created massive spreadsheets to utilize this formula that has cut my work time immensely. I can download text files from our acctg software to piece together reconciliations in spreadsheets for auditors. Don't know how I lived without it!
Grids not Correctly Stated
Russ911 wrote on July 22, 2005 11:11 EST
The directions state "How could we find the value in Range A8:D10 ...." There is no number in column D. Thus, shouldn't the directions state Range A8:C10?

Then the direction look to match each pair of index values in Range A7:D5. Row 7 has no values, but contains column titles. Row 6 is blank. Row 5 has data, but what's the relationship? Column D is blank except for D5.

Recommend the entire example be rewritten and that the tips be proofread before publishing.
Reply: Russ911
Alan wrote on July 26, 2005 01:48 EST
Hi Russ911,

[QUOTE=Russ911]The directions state "How could we find the value in Range A8:D10 ...." There is no number in column D. Thus, shouldn't the directions state Range A8:C10?

Then the direction look to match each pair of index values in Range A7:D5. Row 7 has no values, but contains column titles. Row 6 is blank. Row 5 has data, but what's the relationship? Column D is blank except for D5.

Recommend the entire example be rewritten and that the tips be proofread before publishing.[/QUOTE]You didn't mention if you have reported the post.

If not, can I suggest you report it using the link in the post so that the webmaster can re-write it.

Alan.



REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

Microsoft Access Version 2002 Step by Step

Microsoft Office XP Step-By-Step (With CD-ROM)

Financial Risk Manager Handbook, Second Edition

Mastering Excel 2000 (for beginner)

Managing by the Numbers: A Commonsense Guide to Understanding and Using Your Company's Financials: An Essential Resource for Growing Businesses

Seven Habits Of Highly Effective People

RELATED MICROSOFT EXCEL TIPS


Convert PDF Files to Excel






Excel VBA books
Accounting books
Business Plans
MS Office books
Taxes books

VIEW ALL BOOKS


  Advertise With Us                               

Tips

Add-In in VBA | Applications - Word, Outlook in VBA | Array Formulas | Cells, Ranges, Rows, and Columns in VBA | Counting | Custom Functions | Custom Functions in VBA | Database Formulas | Database in VBA | Date & Time Formulas | Date & Time in VBA | Events in VBA | Excel 2003 | Excel Chart | Excel Consolidating | Excel Counting | Excel Custom Functions using VBA | Excel Customizing | Excel Data | Excel Dates | Excel Editing | Excel Files | Excel Filter | Excel Format | Excel Formula | Excel General | Excel Grouping and Outlining | Excel Importing Text Files | Excel Information | Excel Keyboard Shortcuts | Excel Loan Formulas | Excel Macros - VBA | Excel Pivot Tables | Excel Printing | Excel Range Name | Excel Security - Protection | Excel Sorting | Excel Style | Excel Subtotals | Excel Summing | Excel Text | Excel Time | Excel Tools | Excel Worksheet, Workbook | Files, Workbook, and Worksheets in VBA | Financial Formulas | Formating in VBA | General Topics in VBA | Import and Export in VBA | Information Formulas | Keyboard & Other Shortcuts in VBA | Keyboard Formula Shortcuts | Links between Worksheet and Workbooks | Links in VBA | Logical Formulas | Lookup Formulas | Mail - Send and Receive in VBA | Menus, Toolbars, Status bar in VBA | Modules, Class Modules in VBA | Other Q&A Formulas | Printing in VBA | Protecting in VBA | Summing | Text Formulas | User Forms, Input boxes in VBA | Using Loops | Working with Formulas |

Tips by Version

Microsoft Excel 97 | Microsoft Excel 2000 | Microsoft Excel 2002 | All Microsoft Excel Versions | New in Excel 2002 | New in Excel 2003 - Office 11

Website

Home | Tip of Hour | Recommended Tips | Most Viewed Tips | Tips by Version | Submit a Tip | My Tips
Microsoft Excel Tutorials | Excel Links | Write for Us | About Us | Search Results | Tip Archives | Excel Forum | Excel Forum Archives

Excel Book

Excel 97 Book | Excel 2000 Book | Excel 2002 Book | Excel XP Book | Book Store

Terms and Conditions of use
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Copyright © 2003 ExcelTip.com
Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation
Site Developed By: Varien