Year from date

jarhead58

Active Member
Joined
Sep 21, 2017
Messages
367
Office Version
  1. 2021
Platform
  1. Windows
Hey everyone!! Hope you all had a great holiday season!!

I have J4 set with "=Mode(B4:B105)" which column B contain various numbers. Column A cells are dates, (A4=1/1/2019, A5=12/28/2018....etc going backward) How can I change the value of J4 ":B105" to the column B cell number closest to a year from the date of A4 or is it not possible? TIA
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Could you continue the example A4 = 1/1/2019, A5 = 12/28/2018, for example up to A12 and then explain what you need in J4?
 
Upvote 0
Could you continue the example A4 = 1/1/2019, A5 = 12/28/2018, for example up to A12 and then explain what you need in J4?

Thanks for the reply! The cells in column A are random dates entered sorted from newest to oldest; A6 = 12/26/18, A7 = 12/20/18 and so on!
 
Upvote 0
Thanks for the reply! The cells in column A are random dates entered sorted from newest to oldest; A6 = 12/26/18, A7 = 12/20/18 and so on!

How can I change the value of J4 ":B105" to the column B cell number closest to a year from the date of A4



I need you to give the example of the result you expect
 
Upvote 0
Formula should have been

=MODE(OFFSET(B4,,,MATCH(A4,A5:A10000,-1)))

if you change MODE to SUM

=SUM(OFFSET(B4,,,MATCH(A4,A5:A10000,-1)))

what do you get?
 
Upvote 0
I need you to give the example of the result you expect

Say A4 has 1/2/19, I'm looking for the closest same date except for it being a year ago like 1/2 or 1/4/2018 within 2 days of A4 date! Does that help?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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