Hi All, I hope you may be able to help me.
I have a spreadsheet with 122 rows. I have used the date function to convert 3 column cells to a date which I can manipulate. I have a requirement whereby I need to extract a cell value and copy this value to another cell location based on certain criteria. There are multiple rows which have the same username but have different dates. I have used the min and max function with arrays to extract the most recent and oldest dates and assign them to their appropriate columns using the formula below:
This has worked well. B2-B122 references the username column (which has more than one instance) and F2-F122 references the date column.
=MIN(IF(B$2:$B$122=B2,F$2:$F$122))
=MAX(IF(B$2:$B$122=B2,F$2:$F$122))
I’d now like to extract specific cell values - L2-L122 for each of the max date rows – not the min date rows. I’ve tried the following but this does not work.
=INDEX(L2:L122,MAX(IF(B$2:$B$122=B2,F$2:$F$122)),1,0)
If possible I'd also like to discard any records which only have one username listed, in other word only one instance in the B column. A string could perhaps be inserted into the new column which will contain the indexed values which says only 1 record or similar.
Any help would be greatly appreciated. Thanks in advance.
Wilbur
Bookmarks