Last Cell to contain Specific Word then return this Second Cell

MrCat

New Member
Joined
Sep 25, 2017
Messages
10
Hi Everyone,

I'm trying to work on a formula which has me stumped.

I have a table which contains Names in one Column(A), and Dates in a second Column(B).
I only want to return column B DATE if the Column A Name is Bob
But it has to be the last Row that has Bob in it

i.e.
A B
Name Date
Alice 2018-01-02 14:30
Bob 2018-01-14 14:30
John 2018-01-16 13:30
John 2018-02-01 13:30
Peter 2018-02-14 00:13
Bob 2018-02-15 13:13
Alice 2018-02-15 14:13


Now even though there is a Bob with the Date 2018-01-14 14:30 , I only want to return 2018-02-15 13:13

I've tried a few different formulas but cant quite manage it. I was most recently seeing if I could work using the Index command to get the last row to contain Bob, but it wasn't working.

=IF(A:A="Bob",INDEX(B:B,COUNTA(B:B)))

Any help at all is appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Give this array-entered** formula a try (change the range references to match your data layout, but note that I would not recommend use whole column references)...

=MAX(IF(A2:A8="Bob",B2:B8))

**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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