+ Reply to Thread
Results 1 to 4 of 4

Using Array in a row to retrieve specified field

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    So Cal
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using Array in a row to retrieve specified field

    Okay, I have an issue and I think it could be resolved by a formula. If not, please let me know so I can move it to VBA area.

    Anyways, here's my issue. I have a row of data (Code, Description, Date) that just repeats with different values. Some stops earlier than others. What I'm trying to accomplish is to retrieve a certain code and the date on a new column at the end. Here's the catch, certain codes repeat but I want the code that has the latest date.

    There are 100 different Codes but I'm only interested in 20 of them. To make it easier I've highlighted them. They will always be arranged that oldest date is on the left and it increases to the right. If there isn't a value that I'm interested, I'd like to leave it blank. It'll make much more sense once you see the file. It's just very hard to explain it with words. Thank you.
    Attached Files Attached Files
    Last edited by kumatae; 08-06-2013 at 02:53 PM. Reason: formatting

  2. #2
    Forum Contributor
    Join Date
    03-06-2013
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2007, 2010
    Posts
    127

    Re: Using Array in a row to retrieve specified field

    Must your data be in that format? If the data is repeating and is of the same type, can we use just three columns? This would be easier for calculating values.
    BrownBoy

    If happy, mark "SOVLED" & add to "REP"

  3. #3
    Forum Contributor
    Join Date
    03-06-2013
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2007, 2010
    Posts
    127

    Re: Using Array in a row to retrieve specified field

    I could not get the answer you needed with the data in the format you provided so I changed the format, but kept the integrity of the data. I also added a pivotTable to show you that you didn't need to use a function. If this doesn't work I apologize and back to the drawing board.

    Excel Row Array Example.xlsx

  4. #4
    Registered User
    Join Date
    08-06-2013
    Location
    So Cal
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using Array in a row to retrieve specified field

    Quote Originally Posted by BrownBoy View Post
    I could not get the answer you needed with the data in the format you provided so I changed the format, but kept the integrity of the data. I also added a pivotTable to show you that you didn't need to use a function. If this doesn't work I apologize and back to the drawing board.

    Attachment 255951

    Thanks for your help, but the reason why pivot table won't work is because each row is assigned to a unique value which I left out for simplicity. I guess I should have mentioned it above! My bad. Any guidance would be much appreciated!! I'm hesistant to do go VBA since I'm so weak in that field. I was thinking function might work but I'm starting to doubt it and will have to use VBA.

+ 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 write data into an array and retrieve data from array?
    By nigel_12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-28-2013, 07:06 AM
  2. [SOLVED] Retrieve different delivery dates for the same material code - ARRAY FORMULA
    By carlosmaldonado in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2012, 08:37 AM
  3. [SOLVED] Retrieve different delivery dates for the same material code - ARRAY FORMULA
    By carlosmaldonado in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2012, 06:08 AM
  4. Add/Retrieve Elements From an Array
    By AErmie in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2009, 05:12 PM
  5. ADO-Unable to retrieve type "Memo" field from Access DB
    By Baapi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2007, 05:46 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