+ Reply to Thread
Results 1 to 3 of 3

Copy a cell value each time a row is added without changing code

  1. #1
    Registered User
    Join Date
    02-19-2015
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    2014
    Posts
    2

    Question Copy a cell value each time a row is added without changing code

    I have multiple edited spreadsheets where one new row is manually added daily. Each row carries a value in A1 that needs to appear in Worksheet #2 - always updating cell H1. Example: Cell A1's value from Worksheet #1 shows in a cell in Worksheet #2 simply with the formula "=A1". When the next row is added I need the new value now in A2 to update cell H1 in Worksheet #2. I don't want to change coding each time a row is added. Will a macro do this for me without changing code?

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Copy a cell value each time a row is added without changing code

    Is it

    Sheet2 H1
    =INDEX(Sheet1!A:A,MAX(IF(Sheet1!A:A<>"",ROW(A:A))),1)
    Confirm with Ctrl + Shift + Enter (Array formula entry)
    ?

  3. #3
    Registered User
    Join Date
    02-19-2015
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    2014
    Posts
    2

    Re: Copy a cell value each time a row is added without changing code

    Yes that's correct - I will try that 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. Replies: 5
    Last Post: 11-18-2014, 01:15 AM
  2. Need code that on time is changing text in cell ?
    By black7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2013, 10:44 PM
  3. Replies: 0
    Last Post: 03-26-2013, 02:58 PM
  4. Copy the data every time something is added
    By antonywalsh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 01:06 PM
  5. formula changing when cell is added
    By rswank in forum Excel General
    Replies: 1
    Last Post: 03-18-2010, 07:04 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