+ Reply to Thread
Results 1 to 4 of 4

Vlookup or VBA to get correct week No for Month

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-01-2008
    Location
    Australia
    Posts
    108

    Vlookup or VBA to get correct week No for Month

    Hi All,
    Need some help here.

    I have on Sheet1 Column A the Financial Month. In a month, there are 4 or 5 weeks and I want to get the start day of every week (Monday) as seen in sheet2
    Instead I managed only to get the last week day that applies all weeks of the month. (instead of every week)

    Is there a way to get the desired output via formula or script?

    Regards,
    Nironto
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup or VBA to get correct week No for Month

    Hi

    1 way using formulas could be this.

    Create a helper and hidden column using this formula.

    =IF(B4=B3;A3+1;1)

    Then use this ARRAY formula.

    =INDEX(Sheet2!$C$2:$C$1000;MATCH(A3&B3;Sheet2!$B$2:$B$1000&Sheet2!$A$2:$A$1000;0))

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    09-01-2008
    Location
    Australia
    Posts
    108

    Re: Vlookup or VBA to get correct week No for Month

    Thanks Fotis1991 as always! u rock!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup or VBA to get correct week No for Month

    ........................

+ 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. [SOLVED] Showing Fridays of each month in a 4 week month and a five week month
    By david_j_p in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-09-2013, 06:27 AM
  2. Replies: 10
    Last Post: 01-22-2012, 10:05 AM
  3. [SOLVED] data move to correct day of week
    By g48dd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-03-2011, 04:15 PM
  4. Replies: 5
    Last Post: 06-17-2010, 02:45 PM
  5. Averages - Day of the Week, Week, Month
    By njexpress9 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2009, 06:53 AM

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