+ Reply to Thread
Results 1 to 5 of 5

Selecting once cell to the right

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    11

    Selecting once cell to the right

    Hi

    I have a workbook that contains a monthly P&L account
    I want to run a macro that rolls the report forward one month

    One of the sheets (called say Sheet2) contains the prior year P&L month by month

    EG
    Col D has April 13 figures
    Col E has May 13 figures

    Another sheet (called say Sheet1) contains the current months figures compared with the same month for last year
    ie Col A has April 14 and Col B April 13

    When I run the macro to roll the month I want to replace the figures in Col B on sheet 1 (which currently contains the contents of Col D in sheet2) with the figures of Col E in sheet2 (ie one to the right)

    Thanks
    Vidhur

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Selecting once cell to the right

    Please upload the workbook.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-27-2014
    Posts
    11

    Re: Selecting once cell to the right

    See attached

    So when I run the macro I would like the data in sheet1 col E to pick up the data in sheet2 col E
    And when I run it again next month I would like the date in sheet1 col E to pick up the data in sheet2 col F

    And so on

    Thanks
    Vidhur
    P&L Account Test Data.xlsm

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Selecting once cell to the right

    Hi,

    See attached. It doesn't need a macro. The formulas adjust when you change the Sheet 1 D2 cell to the month end date.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-27-2014
    Posts
    11

    Re: Selecting once cell to the right

    That's so clever
    Thank you

+ 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. Display Cell Data from a cell after selecting option from dropdown list.
    By RoyalleSky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2014, 06:04 AM
  2. Replies: 7
    Last Post: 09-29-2013, 06:12 PM
  3. Replies: 2
    Last Post: 06-03-2012, 03:33 PM
  4. [SOLVED] How to select cell to the right of active cell without selecting the activecell aswell?
    By Emmaly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 07:22 AM
  5. selecting a cell certain amount of cells down from currently active cell
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2010, 01:22 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