Vlook to get the latest date

abhivick

New Member
Joined
Jan 21, 2017
Messages
1
Hi mates. I'm working on a file where data is entered date wise and I need to keep a track of the latest date entered besides the last order received. When I'm using Vlook up, it shows the date which is on the top of beside that wendor's name but not the latest. As the latest date is mentioned somewhere in the bottom of that column. Please help
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Welcome to the board.

I don't believe you can get what you want via VLOOKUP, but there is a way that you can get it elsewise. Take a look:


Book1
ABCDEF
1AccountAccountCall Date
2A123A1231/21/2017 18:01
3B234A1231/21/2017 18:02
4C345B2221/21/2017 18:03
5AA12B2341/21/2017 18:04
6B2341/21/2017 18:05
7C2341/21/2017 18:06
8C3451/21/2017 18:07
9C3451/21/2017 18:08
10C3451/21/2017 18:09
11AA111/21/2017 18:10
12AA101/21/2017 18:11
13AA121/21/2017 18:12
14AA121/21/2017 18:13
15AA121/21/2017 18:14
16
17
18Lookup Account
19B2342/14/2134 12:10
Sheet1
Cell Formulas
RangeFormula
B19=SUMPRODUCT((E2:E15 = A19) * (F2:F15))
 
Upvote 0
Assuming your vendor's names are in range A2:A1000, your dates are in range B2:B1000, and your lookup name is "Vendor01",
try the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter):

=MAX((A2:A1000="Vendor01")*B2:B1000)
 
Upvote 0
See if this will help?
A​
B​
C​
D​
E​
1​
Namedate
2​
aa
1/1/2017​
aa
1/6/2017​
3​
bb
1/2/2017​
4​
cc
1/3/2017​
5​
dd
1/4/2017​
6​
ee
1/5/2017​
7​
aa
1/6/2017​
8​
bb
1/7/2017​
9​
cc
1/8/2017​
10​
dd
1/9/2017​
11​
ee
1/10/2017​
D2 would be your search criteria
E2=MAX(IF($A$2:$A$11=D2,$B$2:$B$11))
this is an ARRAY formula, entered using CTRL SHIFT ENTER, not just enter

edit: Tetra, is there an echo in here...echo in here...n here...LOL
 
Last edited:
Upvote 0
Whoops. Yeah, I had been fighting an "unresponsive" worksheet and didn't realize that the recovered version was not the one I wanted when I pasted this. I think we're all working along the same lines though.


Book1
ABCDEF
1AccountAccountCall Date
2A123A1231/21/2017 18:01
3B234A1231/21/2017 18:02
4C345B2221/21/2017 18:03
5AA12B2341/21/2017 18:04
6B2341/21/2017 18:05
7C2341/21/2017 18:06
8C3451/21/2017 18:07
9C3451/21/2017 18:08
10C3451/21/2017 18:09
11AA111/21/2017 18:10
12AA101/21/2017 18:11
13AA121/21/2017 18:12
14AA121/21/2017 18:13
15AA121/21/2017 18:14
16
17
18Lookup Account
19B2341/21/2017 18:05
Sheet1
Cell Formulas
RangeFormula
B19=SUMPRODUCT(MAX((E2:E15 = A19) * (F2:F15)))
 
Upvote 0
Hi,

Try this
=INDEX(F1:G14,MATCH(MAX(G1:G14),G1:G14),1)

I am able to respond in real time to you until it is solved!
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,849
Members
449,194
Latest member
HellScout

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