look up year in non contiguous columns and return date if current year

CONORF

New Member
Joined
Dec 30, 2014
Messages
18
Office Version
  1. 365
Good morning. Hoping someone can help. I have data with dates in non contiguous columns and I want to look at all the columns and return the date if the year is 2023. I haven't been able to do a formula that looks at the data in the different columns and if the year is 2023 to return the date any help would be appreciated. Thank you.
 

Attachments

  • Capture.PNG
    Capture.PNG
    20.5 KB · Views: 7

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Upvote 0
Thank you! that would work great if the columns were contiguous. But they aren't. Any thoughts on how to modify the formula to check non contiguous columns? Appreciate the quick response.
 
Upvote 0
It would not matter if they were not as the formula will only be looking for the Year in that row
Book1
ABCDEFGHIJKLMNOPQRS
1Current Yr EffDate by beg of QtrCurrent Yr Eff Date by beg of Qtr'LCurrent Yr. Eff Date byCurrent Yr Eff Date by beg of Qtr
2abcdabcdabcde
3abcdabcdabcde
4abcdabcdabcde
5abcdabcdabcde
6abcdabcdabcde04/08/202304/08/2023
7abcdabcdabcde 
8abcdabcdabcde 
9abcdabcdabcde 
10abcdabcdabcde 
11abcdabcdabcde 
12abcdabcdabcde 
13abcdabcdabcde 
14abcdabcdabcde 
15abcdabcdabcde 
1607/11/2023abcdabcdabcde07/11/2023
17abcdabcdabcde 
18abcdabcdabcde04/08/202304/08/2023
1928/01/2023abcdabcdabcde28/01/2023
2028/01/2023abcdabcdabcde28/01/2023
21abcdabcdabcde 
22abcdabcd14/01/2023abcde14/01/2023
23abcdabcdabcde 
2404/08/2023abcdabcdabcde04/08/2023
25abcd07/01/2023abcdabcde07/01/2023
Sheet7
Cell Formulas
RangeFormula
S6:S25S6=IFERROR(INDEX(A6:Q6,MATCH(YEAR(TODAY()),YEAR(A6:Q6),0)),"")
 
Upvote 0
Makes sense. I apologize. I should have been more clear. The values in the current yr eff date column have the current year but so do the hidden columns so this is returning the eff date when what I need is the eff date by beg of qtr column. I once again appreciate your help. Below is the screen shot showing that it is returning the 5/1/23 date when what i need is the 4/8/23 date.
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    46.6 KB · Views: 4
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

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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