Fomula of dinamic values inside an array

drom

Well-known Member
Joined
Mar 20, 2005
Messages
543
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and thanks in advance!

If I wanna know the Week Number of a quarter, I can use, the formula:

The Dates are in Column D
=WEEKNUM(D3;1)-WEEKNUM((LOOKUP(D3;DATE(YEAR(D3);{2;5;8;11};1)));1)+1

But in my company the first quarter stars the 1st of november, the 2nd quarter the 1st of february, the 3rd the 1st of may and the 4th the 1st of august

so I have to modify the prior formula



I do not know how can I change the array created inside the lookup

LOOKUP(D3;DATE(YEAR(D3-1);11;1)&";"&DATE(YEAR(D3);2;1)&";"&DATE(YEAR(D3);5;1)&";"&DATE(YEAR(D3);8;1))

including { } does not work
to make it work
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
See if this works for you:

=ROUNDUP(D3/7;0)-ROUNDUP(EDATE(EOMONTH(D3;-1)+1;-MOD(MONTH(D3)+1;3))/7;0)+1
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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