Select lastest date and convert to quarter

Godders199

Active Member
Joined
Mar 2, 2017
Messages
313
Office Version
  1. 2013
Hello, I am not sure if this is possible, but below is an example of a spreadsheet of 1000+ rows , Each row can have upto 3 dates in columns A-C. What i am looking to do is find the latest date in that row and in column D display the Quarter.

[TABLE="width: 244"]
<colgroup><col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="83" style="width: 62pt; mso-width-source: userset; mso-width-alt: 3035;"> <col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="64" style="width: 48pt;"> <tbody>[TR]
[TD="width: 99, bgcolor: transparent"]Date 1[/TD]
[TD="width: 83, bgcolor: transparent"]Date 2[/TD]
[TD="width: 80, bgcolor: transparent"]Date 3[/TD]
[TD="width: 64, bgcolor: transparent"]Quarter[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]01/01/2018[/TD]
[TD="bgcolor: transparent, align: right"]06/04/2018[/TD]
[TD="bgcolor: transparent, align: right"]01/03/2018[/TD]
[TD="bgcolor: transparent"]Q2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]07/06/2018[/TD]
[TD="bgcolor: transparent, align: right"]01/07/2018[/TD]
[TD="bgcolor: transparent"]Q3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]01/01/2018[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]Q1[/TD]
[/TR]
</tbody>[/TABLE]

Is it possible to code this? Read my VBA book and cant find any examples.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi there. You don't need VBA for this. Building on the answer you received yesterday from GasNicki to your previous question about Quarter from Date, for row 4 put this formula in D4: ="Q"&ROUNDUP(MONTH(MAX(A4:C4))/3,0)
 
Last edited:
Upvote 0
Here's a formula :
="Q" & ROUNDUP(MONTH(MAX(A1:C1))/3,0)
 
Upvote 0
I've just looked at your post yesterday. If you really need VBA, have the code enter the formula in the required range and then convert to value.
 
Upvote 0
You're welcome - which way did you go, formula or vba?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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