Hello,
I am trying to extract the latest date from a range of dates, with a unique identifier as the criteria. My data looks like:
Sheet1
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Identifier[/TD]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1/2/1900[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]3/1/1901[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1/5/1899[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2/3/1900[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]7/4/1901[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]4/2/1901[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1/5/1900[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]3/2/1901[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]6/5/1901[/TD]
[/TR]
</tbody>[/TABLE]
And I would like my output (in a different sheet) to look like:
Sheet2
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]12[/TD]
[TD]1/5/1901[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]6/5/1901[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2/3/1900[/TD]
[/TR]
</tbody>[/TABLE]
So far I have tried (as the input to Sheet2!B) :
to no avail. The closest I have got is:
- but that sums all the date ranges, so my answer will be 2/3/2676.
Any help would be appreciated!
Thanks
I am trying to extract the latest date from a range of dates, with a unique identifier as the criteria. My data looks like:
Sheet1
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Identifier[/TD]
[TD]Dates[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1/2/1900[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]3/1/1901[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1/5/1899[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2/3/1900[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]7/4/1901[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]4/2/1901[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]1/5/1900[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]3/2/1901[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]6/5/1901[/TD]
[/TR]
</tbody>[/TABLE]
And I would like my output (in a different sheet) to look like:
Sheet2
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]12[/TD]
[TD]1/5/1901[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]6/5/1901[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]2/3/1900[/TD]
[/TR]
</tbody>[/TABLE]
So far I have tried (as the input to Sheet2!B) :
Code:
=if(sheet2!A1=Sheet1!A:A,max(sheet1!b:b),"")
Code:
=SUMPRODUCT((sheet2!A1=Sheet1!A:A)*1,(Sheet1!B)*1)
to no avail. The closest I have got is:
Code:
=SUMIFS(Sheet1!B,Sheet1!A:A,Sheet2!A1)
Any help would be appreciated!
Thanks