Formula to pull last date (of many) from data sheet into main workbook

gigi79

New Member
Joined
Sep 18, 2012
Messages
34
Hi all,

I have a question,

I have a tracking sheet that tracks decision and dates, this sheet feeds into a mater workbook that has s decision and decision date columns.

The problem/question is, that there can be reschedules, appeals, etc so there could be more than one decision date (in the tracking sheet). In some situations there may just be ONE decision, in others there can be two or three.

I need the master tracker to only pull the final decision and date (so I would need it to look in all columns and only pull the latest entries)

The tracking sheet looks like this

IDDecisionDecision DateDecision 2Decision Date 2Decision 3Decision Date 3
123456Withdrawn4/20/2015dismissed04/25/2015Reversed4/30/2015
234578Upheld5/1/2015
789457Upheld4/28/2015Reversed5/3/2015

<tbody>
</tbody>



The master sheet appears as below

IDDecisionDecision Date
123456
234578

<tbody>
</tbody>


The current formula (below) is a Vlookup that looks the persons ID and then the decision and date - This is the formula I inherited along with the workbook

=IF($R3150="","",IF(VLOOKUP($R3150,'O:\Private\Document location\[Decisions.xlsx]Hearing'!$F$6:$K$4999,3,FALSE)="","",IFERROR(VLOOKUP($R3150,'O:\Private\document location\[Decisions.xlsx]Hearing'!$F$6:$K$4999,3,FALSE),"")))


Any help is much appreciated.
 
None of the suggestions work. Im not sure if I was clear that the data sheet containing the decisions and dates are in a different workbook.

This is how I adjusted the formulas...still getting NA.

=VLOOKUP($R266,'O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$F$6:$M$4999,COUNTA(INDEX('O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$G$6:$M$4999,MATCH($R266,'O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$F$6:$M$4999,0),)))



The actual data sheet has un-needed data in columns A-E. The data needed to be pulled is in columns G-M

Here are better ideas of the workbooks

Workbook 1 (data)

last namefirst namememberidphonerandom numberlookup numberdecision datedecisiondecision date 2decision 2decision date 3decision 3randomrandom3random4random 5random 6
girljohnsonxxxxxxxxxxxxxxxxxxxx7845523/18/2015upheldxxxxcxxxxxxxxyyyh
boyjamesxxxxxxxxxxxxxxxx1234563/15/2015withdrawn4/1/2015denied
personthreexxxxxxxxxxxxxxxxx8910115/1/2015dismissed5/3/2015reversed5/15/2015upheld

<tbody>
</tbody>






Workbook 2:
The sheet that needs to be populated with the dates and decisions (ranging from columns G-m is below) This is a different workbook




last namefirst namememidphonerandom numberlookup numberdecision datedecisionrandomrandom
girl jjohnsonxxxxxxxxxxxxxxx784552xxxxxxxx
boyjamesxxxxxxxxxxxxx123456xxxxxxx

<tbody>
</tbody>
 
Last edited:
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I think you were clear about it being in two different workbooks. What is unclear is the range areas. What column is the lookup number in work book 1.
 
Upvote 0
try this, using a modified Aladain's solution and using your ranges. I think those are your ranges. You will have to determine that..
Decision =LOOKUP("Ω",INDEX('O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$G$6:$M$4999,MATCH(R266,'O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$F$6:$F$4999,0),))
Decision Date =LOOKUP(9.99999999999999E+307,INDEX('O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$G$6:$M$4999,MATCH(R266,'O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$F$6:$F$4999,0),))
 
Upvote 0
try this, using a modified Aladain's solution and using your ranges. I think those are your ranges. You will have to determine that..
Decision =LOOKUP("Ω",INDEX('O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$G$6:$M$4999,MATCH(R266,'O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$F$6:$F$4999,0),))
Decision Date =LOOKUP(9.99999999999999E+307,INDEX('O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$G$6:$M$4999,MATCH(R266,'O:\Private\Hearings\Tracker\[decisionsTESTING.xlsx]FairHearing'!$F$6:$F$4999,0),))


I meant to quote you.

Thanks again
 
Upvote 0

Forum statistics

Threads
1,215,607
Messages
6,125,818
Members
449,262
Latest member
hideto94

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