Date Lookup and Value Return

aceyus_michael

New Member
Joined
Oct 28, 2020
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
I am running into a major issue doing an index and match with a date value. Here is the formula I am using:
=INDEX($B$10:$P$11,MATCH(B13,$B$11:$P$11,0)-1)

I need to find a date in a row and then return the value in the cell located above the date matched. I have included a sample of the table. PLEASE help me out as I need this for my forecasts and I can not get this to return my value which is screwing up my entire forecast!

Here is a link to the portion of the data I am having issues with.
Sorry, our o365 is locked down from outside access so could only share this via a link to a shared folder on my personal iCloud.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Your dates don't match. In cell I13 the value is 8/1/21, but your formula in C11 has a date of 8/28/21 when you added the 300 from R2.
maybe change the formula in C11 to:
IF(C10>=1,EOMONTH(C4+$R$2,-1)+1,"No Sales").
then change your INEDX formula to:
=INDEX($B$10:$P$10,MATCH(I13,$B$11:$P$11,0))
 
Upvote 0

Vlookup Formula



Summary


VLOOKUP is an Excel function to lookup and retrieve data from a specific column in table. VLOOKUP supports approximate and exact matching. The "V" stands for "vertical". Lookup values must appear in the first column of the table, with lookup columns to the right.

Purpose

Lookup a value in a table by matching on the first column

Return Value

The matched value from a table.

Syntax

=VLOOKUP (lookup_value, table_array, col_index, [range_lookup])

Arguments

look_value
- The value to look for in the first column of a table.

table_array - The table from which to retrieve a value.

col_index - The column in the table from which to retrieve a value.

range_lookup - [optional] TRUE = approximate match (default). FALSE = exact match.




vlookup-png.25100







Index Formula

The INDEX function in Excel is fantastically flexible and powerful, and you'll find it in a huge number of Excel formulas, especially advanced formulas. But what does INDEX actually do? In a nutshell, INDEX retrieves values at a given location in a list or table.

=INDEX(array, row_num, column_num)

Match Formula


The MATCH function is designed for one purpose: find the numeric position of an item in a list.

=MATCH(lookup_value, lookup_array, match_type)

Index Match together


INDEX and MATCH functions gives you better control over how the row index number and column index number changes. This is often referred to as a dynamic formula. You will learn how this dynamic duo can help prevent errors and improve your INDEX formulas.

=INDEX(array, MATCH(lookup_value, lookup_array, match_type), MATCH(lookup_value, lookup_array, match_type))
index.png
 
Upvote 0
Welcome to the MrExcel board!

Another option that may suit if you want to leave the dates as they are, provided your Excel 365 has the FILTER function.
In B14 and copied across

Excel Formula:
=INDEX(FILTER($B$10:$P$10,TEXT($B$11:$P$11,"myy")=TEXT(B13,"myy"),""),1)
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top