Highlighting nearest date

Ian1976

Board Regular
Joined
Feb 4, 2016
Messages
96
Office Version
  1. 365
Platform
  1. Windows
Hi I have a table which holds dates (G17:G23) is there anyway of highlighting the nearest date in the corresponding row to the date shown in column G?

Thank you, its part of a much bigger spreadsheet or I'd do it manually! :)

28/09/202123/07/202117/09/202112/11/202107/01/202204/03/2022
21/07/202103/07/202128/08/202123/10/202118/12/202112/02/2022
04/07/202111/07/202105/09/202131/10/202126/12/202120/02/2022
22/08/202102/07/202127/08/202122/10/202117/12/202111/02/2022
15/10/202129/07/202123/09/202118/11/202113/01/202210/03/2022
14/07/202122/07/202116/09/202111/11/202106/01/202203/03/2022
20/07/202109/07/202103/09/202129/10/202124/12/202118/02/2022
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,587
Office Version
  1. 365
Platform
  1. Windows
That's because they are both 28 from the target date.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,147,481
Messages
5,741,397
Members
423,657
Latest member
Medrok2021

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
Top