Find Largest Number In Row Whose Adjacent Cell Meets Criteria

jimmycooker

New Member
Joined
Mar 5, 2019
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have rows where time stamps are entered sequentially / chronologically that include 3 fields:
Name1, Department1, TimeStamp1, Name2, Department2, TimeStamp2, Name3, Department3, TimeStamp3, etc etc.

I need to find the highest date (number) based on matching adjacent department criteria (in the columns to the left of the time stamps). Can anyone help?

I'm using index match, but it always returns the 1st value (the lowest).

Thanks.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Upload some sample data so that we can manipulate it and not have to visualize what you see. Please use the XL2BB function available on this forum. See my signature for instructions if you are unfamiliar.
 
Upvote 0
Signature 1Department 1Date 1Signature 2Department 2Date 2Signature 3Department 3Date 3Signature 4Department 4Date 4Signature 5Department 5Date 5
JohnCQV
16-May-22​
JillMFG
17-May-22​
EricQA
18-May-22​
JacobCQV
19-May-22​
JonniceCQV
20-May-22​
Search lower row for latest date that corresponds with departement 'CQV'
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
365 (profile updated). It's a work laptop, so installations restricted....
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=MAXIFS(C2:O2,B2:N2,"CQV")
 
Upvote 0
Wow :) :) i wasted hours last night trying to achieve the same thing, Thanks so much.
 
Upvote 0
How about if i wanted to pull the corresponding name to the max date and department?
 
Upvote 0
How about
Excel Formula:
=INDEX(A2:M2,MAX(IF(B2:N2="CQV",COLUMN(A2:M2),)))
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,301
Members
449,095
Latest member
Chestertim

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