Choice Year Nearest 2020 And Not Over 2020

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

how to choice or get year based on criteria :
- year nearest 2020 and year not over 2020
my target in cell F3 down
this table
Book4
CDEF
2year baseyear1 (given)year2 (given)my expected result
32020198920192019
42020200520232005
52020203020102010
62020200920352009
72020202520202020
Sheet1


thank any help.
.sst
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi, here's one way.

Book5
ABCD
1year baseyear1 (given)year2 (given)my expected result
22020198920192019
32020200520232005
42020203020102010
52020200920352009
62020202520202020
Sheet1
Cell Formulas
RangeFormula
D2:D6D2=MAXIFS(B2:C2,B2:C2,"<="&A2)
 
Upvote 0
hi ...not work show #NAME?
maybe you use Office 365? I'm use office 2010 and 2016
 
Upvote 0
Here's an alternative you can try.

Book6
ABCD
1year baseyear1 (given)year2 (given)my expected result
22020198920192019
32020200520232005
42020203020102010
52020200920352009
62020202520202020
Sheet1
Cell Formulas
RangeFormula
D2:D6D2=AGGREGATE(14,6,B2:C2/(B2:C2<=A2),1)
 
Upvote 0
Solution
great... this work perfect..
thank you, FormR
 
Last edited:
Upvote 0
for year1 2009 and year2 2035, the result is 2035 should be 2009

It returns 2009 for me?

Book6
ABCD
1year baseyear1 (given)year2 (given)my expected result
22020200920352009
Sheet1
Cell Formulas
RangeFormula
D2D2=AGGREGATE(14,6,B2:C2/(B2:C2<=A2),1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,701
Messages
6,126,308
Members
449,308
Latest member
VerifiedBleachersAttendee

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