+ Reply to Thread
Results 1 to 6 of 6

Ending value in a specific row passed to a specific cell

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Ending value in a specific row passed to a specific cell

    Hi,

    I have a set of csv files that in column B the ending value changes, is there a macro that I can run on that column which can take the last value in that column and copy it to cell P1

    Thanks for any help,

    David

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Ending value in a specific row passed to a specific cell

    This may be a stupid question but are the csv files in such a way that you can use the "=Right" function? That would remove the need of a macro.

    A macro would probably go something like this:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Ending value in a specific row passed to a specific cell

    Hi stnkynts,

    Unfortunately I need to use a macro so I can press a shortcut key it will automatically search that column and return the value at the end of that column and copy it to the cell P1.

    I tried your macro but it copies the values from B to column P.

    Thanks for the help anyway,

    David

  4. #4
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Ending value in a specific row passed to a specific cell

    Does anybody have an idea on how this could be done?

    Thanks,

    David

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Ending value in a specific row passed to a specific cell

    So you just need the last value in column B put in cell P1? Thats fairly easy:

    just put this formula in cell P1. It should automatically update.
    Please Login or Register  to view this content.
    by macro
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Ending value in a specific row passed to a specific cell

    Perfect! Thanks for your help.

+ 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