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, Using Indexes Listed In Another Range
CATEGORY: Lookup Formulas
Problem:

The numbers in Data Range (A1:E6) are arrayed in a reference grid of 4 columns and 5 rows.
Each row in Index Range (A9:B12) contains a pair of values referring to the row and column of a number in Data Range.
We want to find the number in Data Range referred to by each pair of indexes in Index Range.

Solution 1:

Use the OFFSET and MATCH functions as shown in the following formula:
=OFFSET($A$1,MATCH(B9,$A$1:$A$6,0)-1,MATCH(A9,$A$1:$E$1,0)-1)
Solution 2:

Use the INDEX and MATCH functions as shown in the following Array formula:
{=INDEX($A$1:$E$6,MATCH(B9,$A$1:$A$6),MATCH(A9,$A$1:$E$1))}


Example:

Data Range
________A_______B_______C_______D
1_______9_______1_______28______76
2_______18______7_______56______58
3_______6_______4_______10______43
4_______30______70______2_______12
5_______25______66______34______0




Index Range

Column__________Row_____Value
A_______________4_______30
C_______________3_______10
D_______________5_______0



Screenshot // Retrieving A Value From A Reference Grid, Using Indexes Listed In Another Range

Retrieving A Value From A Reference Grid, Using Indexes Listed In Another Range
Rate this tip
12 34 5
  RATING: 3.48
  VIEWS: 17515

READER COMMENTS (view all comments)


Alternative method
B Roberts wrote on June 01, 2005 21:04 EST
An alternative method for those who don't understand the OFFSET function is to use the INDEX function as follows:
=INDEX($A$1:$E$6,MATCH(B10,$A$1:$A$6,0),MATCH(A10,$A$1:$E$1,0))
trying to find out a formula
Thea wrote on February 27, 2006 14:44 EST
I'm not very good at formulas. I've just stared to use xcel. I need to to put dates in a cell. However, they need to be listed is a cloumn. I would like the last cell to be formulated to count the number of dates that are listed in the column. How do you get the dates to be converted into a general numberic number?
Retrieving a List from a Text reference
hamy72 wrote on June 12, 2006 01:10 EST
Hi I have a Purchase Order Report, and it would be of great help if I could have an excel formula that could enable me to retreive a list of items ordered against a certain Purchase order # by mere typing the Purchase Order # in a certain cell.

The attached file contains a portion of the report, with cells A1:B5 the database. However on typing the Order # PU408797 in the cell A16, I would like starting from B16 a list of items ordered on this purchase order # PU408797 listed only.


Regards,



Hamilton Rozario
Multiple Reference output procedure Macro
Brutus wrote on December 31, 1969 19:00 EST
I am trying to automate a milestones past due date register using the qualifying if statement to test if Range H7:H66>0 (based on the system date being greater than the milestone due date).

Please assist me to write a procedure that picks up each entry past due and then extracts the corresponding row references and writes them to cells (in a form) in a different sheet which is a schedule change request.

Thank you
Brutus



REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

Financial Shenanigans : How to Detect Accounting Gimmicks & Fraud in Financial Reports

Real Estate Loopholes: Secrets of Successful Real Estate Investing

The Financial Numbers Game: Detecting Creative Accounting Practices

Infectious Greed: How Deceit and Risk Corrupted the Financial Markets

Accounting Principles, with CD, 6th Edition

Excel Charts

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