+ Reply to Thread
Results 1 to 7 of 7

Pull data from changing column each day

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Baltimore, MD
    MS-Off Ver
    Excel for Mac 2011
    Posts
    43

    Pull data from changing column each day

    Hi everyone.

    I have a pretty complicated (for me) spreadsheet that I am working on. I am stuck on the final piece. Each day, sales are updated in a spreadsheet, and it creates an additional column. In one of my macros, I go to the sales tab, click on a blank cell, and than CMD-Left Arrow to get to the last cell in the column, and than copy the copy and have the macro do its work. Problem is the macro doesnt see it as the last column, it sees it as column F or whatever. Is there a way to have it pull data from the last column, which changes each day in a macro?

    Thanks in advance!

    Chris
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Pull data from changing column each day

    Hi ckserra,
    Do you need to get the last value in the last column or you need to get SUM of the last column?
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    02-13-2015
    Location
    Baltimore, MD
    MS-Off Ver
    Excel for Mac 2011
    Posts
    43

    Re: Pull data from changing column each day

    Hi AlKey. I need the value of the column, so it winds up being like H2:H5 in the example I posted.

    Chris

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Pull data from changing column each day

    Ok, you didn't answer exactly to my question.
    Last value in the last column
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    the SUM of the last column
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E F G H
    1 Name 8/16/2017 8/17/2017 8/18/2017 8/19/2017 8/20/2017 8/21/2017 8/22/2017
    2 Bill 524 546 568 590 612 634 656
    3 Fred 223 320 417 514 611 708 805
    4 James 164 249 334 419 504 589 674
    5 Steve 361 427 493 559 625 691 757
    6
    7 757 Last value in Col H
    8 2892 SUM last Column

  5. #5
    Registered User
    Join Date
    02-13-2015
    Location
    Baltimore, MD
    MS-Off Ver
    Excel for Mac 2011
    Posts
    43

    Re: Pull data from changing column each day

    Hi Al. Sorry, I am usually bad in explaining myself here. This is the portion of the macro I am fighting with,

    Range("P2").Select
    Selection.End(xlToLeft).Select
    Range("H2:H5").Select
    Selection.Copy
    ActiveWindow.SmallScroll Down:=-1
    Range("I2").Select
    ActiveSheet.Paste
    Application.CutCopyMode = False

    The H2:H5 is the issue. Each day a column will be added, so tomorrow it will I, than J, etc. I thought by clicking on a cell than CTRL and left arrow would "trick" the macro into doing what I want, but I am incorrect.

    Thanks again

    Chris

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Pull data from changing column each day

    You should've created your thread under Excel Programming / VBA / Macros instead of Excel General.

  7. #7
    Registered User
    Join Date
    02-13-2015
    Location
    Baltimore, MD
    MS-Off Ver
    Excel for Mac 2011
    Posts
    43

    Re: Pull data from changing column each day

    got it. thank

+ 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 Pull Data From a Specific Row & Column
    By Eneune in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2015, 02:46 PM
  2. Replies: 5
    Last Post: 01-26-2014, 09:36 PM
  3. attempting to pull data from column G conditional of name in Column A
    By exceln00b123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2013, 08:04 PM
  4. Replies: 6
    Last Post: 03-04-2013, 11:25 AM
  5. Macro that can be re-used to pull data from a changing model
    By balston2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2013, 05:23 PM
  6. Replies: 2
    Last Post: 02-02-2012, 09:02 AM
  7. Pull row data across to column
    By bigroo1958 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-30-2010, 09:00 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