+ Reply to Thread
Results 1 to 6 of 6

Need output result for input

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    INDIA,HYD
    MS-Off Ver
    2013
    Posts
    5

    Post Need output result for input

    Hi Experts,

    Need output result for input:-

    Please consider input as below:--
    COMPRESS(NULL,'2008-06-30','2009-07-03'),
    COMPRESS('2014-04-30'),
    COMPRESS('P465','P4760'),
    COMPRESS('','0','3'),

    Expecting output as below(i.e only need to add 'DATE' keyword before date type data('yyyy-mm-dd') and rest all formats it should skip as below) :--

    COMPRESS(NULL,DATE'2008-06-30',DATE'2009-07-03'),
    COMPRESS(DATE'2014-04-30'),
    COMPRESS('P465','P4760'),
    COMPRESS('','0','3'),


    Thanks in Advance Experts.......

  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,002

    Re: Need output result for input

    Please attach an Excel sheet, and explain if these are all in one cell or multiple cells.

    Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    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 Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need output result for input

    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)


    Please Login or Register  to view this content.

    In B1 Cell

    =AddDate(A1)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    11-12-2015
    Location
    INDIA,HYD
    MS-Off Ver
    2013
    Posts
    5

    Post Re: Need output result for input

    Hi Glenn ,

    Thanks for your quick response...
    Attached the excel sheet . All the values are in different cells ,exactly what appear in attachment.
    Please let me know if any further information needed.

    Thanks,
    Satyendra
    Attached Files Attached Files

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Need output result for input

    What is the Maximum possible number of days in a single Cell

    for example "A5" has "COMPRESS(NULL,'2008-06-30','2009-07-03')," here is 2 dates, what is the maximum possible number
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Registered User
    Join Date
    11-12-2015
    Location
    INDIA,HYD
    MS-Off Ver
    2013
    Posts
    5

    Re: Need output result for input

    Maximum possible number is 255

+ 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] Transferring of input from input cell to output cells
    By bebongtheshark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2014, 01:28 AM
  2. [SOLVED] input dob / input certain age / output date at certain age
    By Alastair77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-12-2014, 09:36 AM
  3. Output formula result
    By shawnvon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-14-2014, 07:40 PM
  4. Conditional IF in VBA when using the output/cancel/error result of an input box
    By wardpa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2012, 04:57 PM
  5. Output result from formula into different cell
    By jdeboef in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2012, 03:06 PM
  6. Input to Output
    By Rural Nutty in forum Excel General
    Replies: 4
    Last Post: 08-12-2008, 11:17 AM
  7. Database sheet need result in input & output
    By hasin in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-10-2008, 01:30 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