+ Reply to Thread
Results 1 to 4 of 4

What code will come for the problem in description

  1. #1
    Registered User
    Join Date
    07-02-2019
    Location
    Germany
    MS-Off Ver
    10
    Posts
    4

    What code will come for the problem in description

    For Example, In excel we have the following details,

    Date Week number Weekday Result
    05.07.2019 28 1 28/1

    Q.What VBA should do?

    A.When user will give input as 05.07.2019 in the Command Button ,the output should be 28/1.

    thanks in advance ! Please help

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,883

    Re: What code will come for the problem in description

    Assumes your data in Column A starting in row1. Result appears in Column B

    Please Login or Register  to view this content.
    My code returns the result of 27/6. 27th week of the year and the 6th day of the week.

    Please explain how you achieve 28/1 as the expected result.
    Last edited by alansidman; 07-04-2019 at 09:50 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: What code will come for the problem in description

    Why 28?
    ISOWEEKNUM function (in German version of Excel: ISOKALENDERWOCHE) would return 27.

    I just noticed you use Excel 2010 - as far as I remember, this function has been introduced only with Excel 2013, so you may use: WEEKNUM ( in German version KALENDERWOCHE ) and second argument 2 to get ISO numbering.

    PS. To get better answer let us know where the input date is stored (in a cell? in a variable?) and how would you like the result to be shown (written to variable, displayed in message box, written to a cell?
    Best Regards,

    Kaper

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: What code will come for the problem in description

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

+ 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. How to get the formula or function for the problem in description
    By AUDIS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2019, 05:41 AM
  2. [SOLVED] Drop List with a description but once chosen description disappear
    By dezspert22 in forum Excel General
    Replies: 22
    Last Post: 12-19-2016, 05:24 PM
  3. Please Write code for respective Description
    By sai0449 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-18-2015, 12:22 PM
  4. Code description
    By vio.coman in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-09-2014, 05:18 AM
  5. User Input Description to SKU 'Smart Code'
    By twistedweb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2014, 02:04 PM
  6. [SOLVED] If code same combine the description
    By Klitos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2013, 05:16 AM
  7. [SOLVED] Lookup Problem:description of the product
    By Annette in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2005, 11:07 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