Vlookup searching date as value in separate file.

isafloor

New Member
Joined
Feb 3, 2015
Messages
37
Office Version
  1. 2007
Hello, I have two separate files. In one I have many sheets (one for each production lot) in which weekly evaluations are registered (I grade them from 1-5), for example:

File: Weekly Evaluations
Sheet: Lot 1

(Column A).................(Column B)........................(Column C)
Date......................... Condition........................... Productivity
02-nov-18..................... 1............................................ 4

I want to make a different excel file that will retrieve the last production evaluation that was registered. That way I have one synoptic view of all different production lots with their most recent evaluation, instead of having to look at each lot sheet individually in the Weekly Evaluations file.

File: Lot Overview

(Column A)
Date
=MAX('[Weekly Evaluations.xlsx]Lot 01'!$A:$A) (this is for retrieving the last registered evaluation in Lot 1)

(Column B)
Condition
=LOOKUPV(Table1[[#This row],[Date]],'Weekly Evaluations.xlsx'!Table1[#Data],2,FALSE)

The problem I am having is that even though I can get the last date that was registered in the Date column for the Lot Overview file, I cannot retrieve the input evaluation for "Condition" from the Weekly Evaluations file, and only get a "#N/A". I tried changing the date format in both files but it doesn't work.

(By the way I am translating the Excel formula names, so if something seems odd regarding this respect this is why).

I will appreciate the help.

Thanks,
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hello, I have two separate files. In one I have many sheets (one for each production lot) in which weekly evaluations are registered (I grade them from 1-5), for example:

File: Weekly Evaluations
Sheet: Lot 1

(Column A).................(Column B)........................(Column C)
Date......................... Condition........................... Productivity
02-nov-18..................... 1............................................ 4

I want to make a different excel file that will retrieve the last production evaluation that was registered. That way I have one synoptic view of all different production lots with their most recent evaluation, instead of having to look at each lot sheet individually in the Weekly Evaluations file.

File: Lot Overview

(Column A)
Date
=MAX('[Weekly Evaluations.xlsx]Lot 01'!$A:$A) (this is for retrieving the last registered evaluation in Lot 1)

(Column B)
Condition
=LOOKUPV(Table1[[#This row],[Date]],'Weekly Evaluations.xlsx'!Table1[#Data],2,FALSE)

The problem I am having is that even though I can get the last date that was registered in the Date column for the Lot Overview file, I cannot retrieve the input evaluation for "Condition" from the Weekly Evaluations file, and only get a "#N/A". I tried changing the date format in both files but it doesn't work.

(By the way I am translating the Excel formula names, so if something seems odd regarding this respect this is why).

I will appreciate the help.

Thanks,

Try this!

In Column B use

=INDEX('Table of Content'!B:B,COUNTA('Table of Content'!B:B),1)

In Clolumn A use

=INDEX('Table of Content'!A:A,COUNTA('Table of Content'!A:A),1)
 
Upvote 0
Hello, thank you for the suggestion but I am having problems implementing the formula as I could not understand what I was doing even after reading the help information in Excel. Translating into Spanish also makes it a little more challenging.

Here is an example of the file, I would want to have in "Recent overview" the results of the most recent evaluation for each lot.

RECENT OVERVIEW sheet

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Lot[/TD]
[TD]Product[/TD]
[TD]Date[/TD]
[TD]Size[/TD]
[TD]Qty[/TD]
[TD]Qlty[/TD]
[TD]Alarm[/TD]
[TD]Notes[/TD]
[TD]Reviewed[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]01[/TD]
[TD]Pencils[/TD]
[TD]March 18 2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02[/TD]
[TD]Chairs[/TD]
[TD]March 18 2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]03[/TD]
[TD]Tables[/TD]
[TD]March 18 2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Date is a "Max" value formula, i. e. the mos recent review date.

The columns from Size to Reviewer should show the latest information from the last review date in each lot's sheet.

LOT 01 sheet
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Year[/TD]
[TD]Week[/TD]
[TD]Date[/TD]
[TD]Size[/TD]
[TD]Qty[/TD]
[TD]Qlty[/TD]
[TD]Alarm[/TD]
[TD]Notes[/TD]
[TD]Reviewed[/TD]
[/TR]
[TR]
[TD]2019[/TD]
[TD]10[/TD]
[TD]March 18 2019[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]no[/TD]
[TD][/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]2019[/TD]
[TD]11[/TD]
[TD]March 18 2019[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]no[/TD]
[TD][/TD]
[TD]Kate[/TD]
[/TR]
[TR]
[TD]2019[/TD]
[TD]12[/TD]
[TD]March 18 2019[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]yes[/TD]
[TD]Poor quality[/TD]
[TD]Paul[/TD]
[/TR]
</tbody>[/TABLE]


Sorry about taking so much time but I got terribly swamped at work!

Cheers,
Isafloor
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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