ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Earliest date using WEEKNUMBER (https://www.excelbanter.com/excel-worksheet-functions/158271-earliest-date-using-weeknumber.html)

Jock

Earliest date using WEEKNUMBER
 
Hi,
Dates in column A and WEEKNUMBER in cloumn B (referring to A).
How do I display (in C) only the earliest date (without duplicates) for each
week (Ie the Monday's date)

Thanks,
--
Traa Dy Liooar

Jock

Mike H

Earliest date using WEEKNUMBER
 
Jock,

With your list of dates in column A and the corresponding wee numbers in
column B put this in C1

=DATE(YEAR(A1),1,B1*7-(DAY(DATE(YEAR(A1),1,1)+7-WEEKDAY(DATE(YEAR(A1),1,1),1))))

Then put this in C2 and drag down
=IF(B2=B1,"",DATE(YEAR(A2),1,B2*7-(DAY(DATE(YEAR(A2),1,1)+7-WEEKDAY(DATE(YEAR(A2),1,1),1)))))

Mike

"Jock" wrote:

Hi,
Dates in column A and WEEKNUMBER in cloumn B (referring to A).
How do I display (in C) only the earliest date (without duplicates) for each
week (Ie the Monday's date)

Thanks,
--
Traa Dy Liooar

Jock


Jock

Earliest date using WEEKNUMBER
 
Great stuff. Thanks Mike
--
Traa Dy Liooar

Jock


"Mike H" wrote:

Jock,

With your list of dates in column A and the corresponding wee numbers in
column B put this in C1

=DATE(YEAR(A1),1,B1*7-(DAY(DATE(YEAR(A1),1,1)+7-WEEKDAY(DATE(YEAR(A1),1,1),1))))

Then put this in C2 and drag down
=IF(B2=B1,"",DATE(YEAR(A2),1,B2*7-(DAY(DATE(YEAR(A2),1,1)+7-WEEKDAY(DATE(YEAR(A2),1,1),1)))))

Mike

"Jock" wrote:

Hi,
Dates in column A and WEEKNUMBER in cloumn B (referring to A).
How do I display (in C) only the earliest date (without duplicates) for each
week (Ie the Monday's date)

Thanks,
--
Traa Dy Liooar

Jock


David Biddulph[_2_]

Earliest date using WEEKNUMBER
 
=IF(B2<B1,A2-WEEKDAY(A2,3),"")
--
David Biddulph

"Jock" wrote in message
...
Hi,
Dates in column A and WEEKNUMBER in cloumn B (referring to A).
How do I display (in C) only the earliest date (without duplicates) for
each
week (Ie the Monday's date)

Thanks,
--
Traa Dy Liooar

Jock





All times are GMT +1. The time now is 05:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com