Results 1 to 8 of 8

Macro to find correct data in a cells that have multiple values.

Threaded View

  1. #1
    Registered User
    Join Date
    01-26-2014
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    11

    Macro to find correct data in a cells that have multiple values.

    Script Example.png (Picture)
    Script Example.xlsx (Example Workbook)

    I'm trying to wrap my head around this and I'm not sure what the easiest way out be.. or if it's even possible (I've found pretty much anything is possible with Excel though..)

    I have a report that I pull that I pull fairly often that is in this format and shows which footage of products each store is getting (out of over 1800 stores)!
    Above is the format that it comes back as. And here is a spreadsheet that shows what steps I take to find correct values in detail.

    So each FTG has an ID# and Desc. The ID is in text format and each ID is seperated with a comma, no space. Description also. Date is seperate by a space and comma. Stores change footages a lot so I want to find out which footage is effective today (1/27/2014) For ex: Store 63 would have the 5ft effective right now because we are between 5/23/08 and 5/22/14. So each ID# and Ftg Description is in the same order as Date.

    When I have hundreds of stores, it is difficult to go through and get each one (even with the way I've been doing it.) But my ultimate goal is to create a macro to put only the current footage ID#, Desc, and Date in Columns C,D,and E. I'm not sure even where to start with doing a macro.

    I usually just find the store with most ftgs, count them, insert that many rows after ID and Description columns, then do a text to columns (comma, delimited), sort by 2nd date column (so they all come up top) and then manually go through them and delete unneeded columns once I have them all. There has to be a better way...

    Thank you in advance for any help!

    Paul
    Last edited by perm; 01-27-2014 at 10:06 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Check cells are correct format and contain correct data
    By rikosborne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2014, 02:53 PM
  2. Excel Macro - Deducing Correct Rule based on multiple rows of data
    By unkle007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2012, 07:05 AM
  3. Replies: 1
    Last Post: 10-23-2012, 12:08 AM
  4. Populating an Excel 2010 Sheet using a macro button which will find the correct data?
    By dewhirstn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2012, 09:14 AM
  5. Need macro to copy data from sheet 1 to multiple pages on sheet 2 in correct cells
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-16-2009, 03:33 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