Year from date

jarhead58

Active Member
Joined
Sep 21, 2017
Messages
348
Office Version
  1. 2016
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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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
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?

gaz-chops, I still get #N/A with both
 
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,213,531
Messages
6,114,167
Members
448,554
Latest member
Gleisner2

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