+ Reply to Thread
Results 1 to 4 of 4

Right year concatenated with the ISOWEEKNUM function

  1. #1
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Right year concatenated with the ISOWEEKNUM function

    Hello,

    I have an issue with the ISOWEEKNUM function.

    I have a table where I want to extract a "YEAR - WEEK" column from a @DATE column, using this formula:

    =YEAR([@Date])&"-"& ISOWEEKNUM([@Date])

    However, for 01-01-2022 I get 2022-52. Technically this is right since I concatenate two numbers that are right on their own.
    I would like to order this column in the right sequence though.

    How can I achieve that?

    Thanks...
    Last edited by ArnolddG; 08-03-2022 at 05:41 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Right year concatenated with the ISOWEEKNUM function

    One way:

    =YEAR(A1)+IF(ISOWEEKNUM(A1)>WEEKNUM(A1),-1,0)&"-"&ISOWEEKNUM(A1)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Re: Right year concatenated with the ISOWEEKNUM function

    What a clever solution, Glenn.
    That works perfectly.
    Thanks a lot...

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Right year concatenated with the ISOWEEKNUM function

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Match a concatenated value in a concatenated list in a vba function
    By Rolly_Sefu in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-14-2021, 07:52 AM
  2. [SOLVED] Transform User Defined Function to Sub (Filter Partial Concatenated Match) SOS
    By therealdees in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-10-2021, 12:14 PM
  3. Replies: 4
    Last Post: 10-07-2018, 04:35 PM
  4. Excel "isoweeknum" equivalent function in Access
    By okl in forum Access Tables & Databases
    Replies: 1
    Last Post: 09-21-2017, 06:35 PM
  5. [SOLVED] User Defined Function To Add A Zero In A Concatenated Formula
    By BanburyS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-29-2012, 02:23 AM
  6. Need a function to concatenated cell preserving the color in the source text
    By pglufkin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 09:54 PM
  7. vba to Match concatenated values in concatenated columns
    By bjurick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2012, 03:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1