concatenate and lookup last value

smgomez

Board Regular
Joined
Nov 13, 2009
Messages
63
I have concatenated two rows in first worksheet and found the first value in the second worksheet

worksheet1
Fiscal YearPeriod
2020A12

=VLOOKUP(CONCATENATE(E2," ",F2),'Time Periods'!A$2:H$215,2,FALSE) this formula gets me to my first Period From value of 8/29/2020 which is great and now in a separate cell I need to get to my last Period To value of 10/2/2020

Time Periods
Yr/PeriodPeriod FromPeriod To
2020A 128/29/20209/4/2020
2020A 129/5/20209/11/2020
2020A 129/12/20209/18/2020
2020A 129/19/20209/25/2020
2020A 129/26/202010/2/2020

Thanks for your help
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
By far the easiest way to find the last date is using the MAXIFS-function:
=MAXIFS(Period To Range, Yr/Period Range, E2&" "&F2)

This one returns the max date on the Period To Range where the conditions match.

You could also use similar MINIFS-function to find the earliest date from the Period From range.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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