+ Reply to Thread
Results 1 to 3 of 3

Excel script/macro/function

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Miami
    MS-Off Ver
    Office 2013
    Posts
    2

    Cool Excel script/macro/function

    Hello Everyone,

    I need little help creating a script/macro/function that will help me get the following results at the end of each row.

    Excel document contents:

    Column1 Column2 Column3 Column4 Column5 Column6 Column7
    Name 9/15/14 9/16/14 9/17/14 9/18/14 9/19/14 Results
    Test1 1 0 0 0 1 (Notes: I need IF Row B2-F2 has 1 Display date where 1 is present and separate by comma).
    Test2 0 0 0 0 1 (Notes: I need IF Row B2-F2 has 1 Display date where 1 is present and separate by comma).
    Test2 1 1 0 1 1 (Notes: I need IF Row B2-F2 has 1 Display date where 1 is present and separate by comma).

    I have Excel 2013. Any help is much appreciated.



    Thank you,

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Excel script/macro/function

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    The UDF accepts 4 inputs, all are required. The first input is the criteria. Second is the Criteria Range (what the criteria is compared to). The third is the Join Range (What is being joined based on the criteria). Lastly is the Delim, which allows you to put in text between values.

    Please Login or Register  to view this content.
    The above was with inspiration from here: http://www.mrexcel.com/forum/excel-q...y-formula.html
    Last edited by Whizbang; 10-15-2014 at 04:59 PM.

  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Miami
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Excel script/macro/function

    Whizbang,

    Thank you I will try this out shortly.

+ 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. script to run the macro from Vb script with out opening the excel file
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2021, 03:33 AM
  2. [SOLVED] Excel macro to VBS script
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-02-2014, 02:58 PM
  3. [SOLVED] Excel function or script for concatenate all values from B:B for same columns in A:A
    By Odeen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2012, 10:29 AM
  4. [SOLVED] Excel Macro or other script
    By MartinaL in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-06-2005, 09:05 PM
  5. Excel Macro using vb script
    By Lillian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2005, 02:06 AM

Tags for this Thread

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