+ Reply to Thread
Results 1 to 14 of 14

Excel Reporting - string output and date lookup

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Excel Reporting - string output and date lookup

    Hi all,
    I have input that looks like this:

    A B
    1 Date Note
    2 12/02/2017 Do this
    3 21/02/2017 And that
    4 2/02/2017 and maybe this
    5 3/01/2017 But not this
    6 31/01/2017 leave this out
    7 10/02/2017 lets add this too


    And the output to end up in a single cell like this:
    Desired Output
    2/2/2017 - and maybe this
    10/2/2017 - lets add this too
    12/2/2017 - Do this
    21/02/2017 - And that


    Anyone have any ideas on this?

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

    Re: Excel Reporting - string output and date lookup

    In column C =Concatenate(A2,"-",B2) and then copy down.
    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
    Registered User
    Join Date
    01-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel Reporting - string output and date lookup

    I want only the May items and outputted to a single cell

  4. #4
    Registered User
    Join Date
    05-04-2017
    Location
    MALAYSIA
    MS-Off Ver
    2007
    Posts
    34

    Re: Excel Reporting - string output and date lookup

    And the output to end up in a single cell like this:
    Desired Output
    2/2/2017 - and maybe this
    10/2/2017 - lets add this too
    12/2/2017 - Do this
    21/02/2017 - And that

    output to end up in a single cell?
    DO YOU MEANS SINGLE COLUMN & 4 ROWS?
    OR SINGLE COLUMN & SINGLE ROW?

    CAN DATE IN COLUMN A BE FILTERED & SORTED?

  5. #5
    Registered User
    Join Date
    01-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel Reporting - string output and date lookup

    Hi,

    I'm looking for a formula that'll pick out those dates in May and then print the strings and the associated dates in a SINGLE CELL.
    The reason is I want to have this displayed in a tiled report.

    I know it's possible but not easy necessarily.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Excel Reporting - string output and date lookup

    FYI, those dates are in February, not in May ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    01-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel Reporting - string output and date lookup

    Quote Originally Posted by AliGW View Post
    FYI, those dates are in February, not in May ...
    Hahaha. right you are.... shows how dumb I am :D

  8. #8
    Registered User
    Join Date
    05-04-2017
    Location
    MALAYSIA
    MS-Off Ver
    2007
    Posts
    34

    Re: Excel Reporting - string output and date lookup

    try this if suite your requirement(Note: After filtered and sorted date for February) :

    =CONCATENATE(CONCATENATE(TEXT(A4,"dd-mm-yy"),"-",B4),"/",CONCATENATE(TEXT(A5,"dd-mm-yy"),"-",B5),"/",CONCATENATE(TEXT(A6,"dd-mm-yy"),"-",B6),"/",CONCATENATE(TEXT(A7,"dd-mm-yy"),"-",B7))

  9. #9
    Registered User
    Join Date
    01-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel Reporting - string output and date lookup

    Quote Originally Posted by naeeim07 View Post
    try this if suite your requirement(Note: After filtered and sorted date for February) :

    =CONCATENATE(CONCATENATE(TEXT(A4,"dd-mm-yy"),"-",B4),"/",CONCATENATE(TEXT(A5,"dd-mm-yy"),"-",B5),"/",CONCATENATE(TEXT(A6,"dd-mm-yy"),"-",B6),"/",CONCATENATE(TEXT(A7,"dd-mm-yy"),"-",B7))

    Hi there,

    I kind of can't have any manual steps to filter and sort, that part I can manage. I am hoping to actually pick out what I need by formula to automate a summary.
    The picking out multiple dates and returning multiple strings without a macro is where I am stuck.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel Reporting - string output and date lookup

    There is a user defined function called CONCATALL found here:

    http://www.excelforum.com/tips-and-t...ml#post3096647

    Here is the code:

    Please Login or Register  to view this content.
    Install the code in the VBA editor. The output is done for you in the attached.

    Then this array entered formula.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The CHAR(10) separator creates a new line. You may have to format Alignment for Word wrap and then adjust the height.

    The output looks like this:


    A
    B
    C
    1
    Date
    Note
    2
    12/02/2017
    Do this
    12/02/2017 - Do this
    21/02/2017 - And that
    2/02/2017 - and maybe this
    10/02/2017 - lets add this too
    3
    21/02/2017
    And that
    4
    02/02/2017
    and maybe this
    5
    03/01/2017
    But not this
    6
    31/01/2017
    leave this out
    7
    10/02/2017
    lets add this too
    Dave

  11. #11
    Registered User
    Join Date
    01-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel Reporting - string output and date lookup

    Any ideas anyone?

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel Reporting - string output and date lookup

    Looks like we posted at the same time. LOL

  13. #13
    Registered User
    Join Date
    01-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel Reporting - string output and date lookup

    Quote Originally Posted by FlameRetired View Post
    Looks like we posted at the same time. LOL
    @FlameRetired
    Mate that is exactly what I was trying to achieve. Thank you so much for that.
    I thought it might have to do with an array formula but I'm very rusty with excel so this is a welcome helping hand.

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel Reporting - string output and date lookup

    You are welcome. Thank you for the feedback.

+ 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. Replies: 7
    Last Post: 04-15-2015, 09:32 AM
  2. Need Formula to lookup for specific text in a string and give desired output.
    By winmaxservices1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2014, 03:45 PM
  3. [SOLVED] need help to lookup a (workday) date, and then excel output to show that date minus 1
    By Marijke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2013, 11:13 AM
  4. RT reporting to excel...date format issue?
    By acolburn in forum Excel General
    Replies: 0
    Last Post: 05-16-2013, 11:57 AM
  5. Replies: 3
    Last Post: 08-14-2009, 04:07 AM
  6. access database to create output(reporting)
    By rwab in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2009, 05:46 PM
  7. Replies: 0
    Last Post: 11-28-2007, 07:00 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