+ Reply to Thread
Results 1 to 1 of 1

Insert New Column Based Upon Unique Values

Hybrid View

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    63

    Insert New Column Based Upon Unique Values

    Hello,

    In my first worksheet "sheetA" I have a list of names in column B. I then have a list of dates from column O to CK in row 4.

    The dates in row 4 are the last 75 days of sales.

    The data in the second worksheet "sheetB" has the updated sales - a combination of names and dates.

    I need a macro to look at the "sheetB" and add each unique date value in date order to the columns to the right of the existing 75 dates, and then remove the initial few columns (depening on how many new columns are added) so there will always end up witn only 75. There could be 5 unique dates to add or only 1 etc depening on when the sales data is refreshed.

    I will then use a countifs formula to match the names and the dates from "sheetA" from the values in "sheetB" to keep my sales data up to date.

    I have attached an example - hopefully this will explain what i mean more clearly.

    Can anyone help with this macro please?

    Many thanks
    Attached Files Attached Files

+ 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