Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-13-2020, 10:28 PM
ArviLaanemets ArviLaanemets is offline Formula if today is nth month of quarter Windows 8 Formula if today is nth month of quarter Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Quote:
Originally Posted by Marcia View Post
Arvi, I had been trying to figure out this formula. I listed in column E all the months in a year then changed "TODAY" to E1, E2..... January is 1, February is 2. I can not understand why the formula (=month(E1)=3.....)still returns the value of F1 when January is less than 3. Could you explain its syntax please.
Here you go!

The expression INT((MONTH(TODAY())-1)/3) returns 0 for months 1 - 3, 1 for months 4 - 6, 2 for months 7 - 8 and 3 for months 9 - 12;
Multiplying the result of precious expression returns 0, 3, 6 and 9 respectively (end month of previous quarter in case you count december of previous year as 0);
Adding the number of month in quarter you want the result returned for (n) to result of previous expression returns the number of this month in year;
All what remains, is to use IF() to compare month numbers, and return the wanted value when there is a match.
Attached Files
File Type: xlsx ValueForNthMonthOfQuarter.xlsx (8.4 KB, 6 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Highlighting When Approaching End of Quarter if Date in Cell is From Previous Quarter PrincessApril Excel 6 12-06-2019 02:38 PM
Formula if today is nth month of quarter Format in a formula month and numbers Marcia Excel 10 02-28-2019 05:55 AM
Formula if today is nth month of quarter Nested If Statements in Formula Field to Produce the Diffrnc in Years Between Today's & Entered Date mshu31 Word 1 02-09-2017 02:04 PM
Formula if today is nth month of quarter Formula For Displaying Exact Days of the Month ddhawks Excel 2 07-12-2016 11:48 PM
Formula if today is nth month of quarter Formula to divide if no of days in month is 28 shilabrow Excel 5 06-26-2014 12:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft