+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Text Array

  1. #1
    Registered User
    Join Date
    11-24-2011
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    7

    Unhappy Text Array

    This is kind of hard for me to explain, but I am working on a project I am gradually adding too.

    I am trying to grab data from cells in an array into one cell, so I can use for a .net application e.g.

    elseif formatdatetime(now,2) = ""DATE HERE"" Then

    Response.Write("MESSAGE HERE")

    and so on, depending on the data showing on the filter, so if 12 dates was shown there woud be 12 varibles in the box etc...

    I have also added a copy to clipboard button, but with the basic function I have added it adds some extra " to the clipboard.

    Could anyone ammend my work to make it work, or even point me in the right direction of what to search for?

    I have attached my sample document.
    Attached Files Attached Files

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Text Array

    There is a significant issue with this and that's that you have a pivot table for the dates but the rest of your data doesn't seem to be part of that table. This means when you apply the filter, it hides only the date rows, leaving the others untouched. It would be better to have a filter applied to your original table of data, along with dates.

    As for the formula, the best way that I can see to do it, without VBA anyway, is to have a helper column that you can hide, such as
    Please Login or Register  to view this content.
    in D2, copied down. The formula in the message box could simply be =D16. There's the possibility, however, that if your spreadsheet is fairly large, that you'll run up against Excel's 32,767 character limit per cell. If that is the case, you'll need someone to write a VBA script for you.
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

  3. #3
    Registered User
    Join Date
    11-24-2011
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Text Array

    Thanks for your response, how do I go about editing my pivot table range to include the rest of the data?

    Thanks

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Text Array

    Click on a cell in the pivot table and a couple tabs should appear at the top called Options and Design. Go to Options and find a button in the middle for Change Data Source.

  5. #5
    Registered User
    Join Date
    11-24-2011
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Text Array

    Thanks using your feedback I was able to complete this

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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