+ Reply to Thread
Results 1 to 6 of 6

Copying most recent 6 entries with some blanks from previous sheet

  1. #1
    Registered User
    Join Date
    10-23-2018
    Location
    Elm Grove, WI
    MS-Off Ver
    Office for MAC
    Posts
    5

    Copying most recent 6 entries with some blanks from previous sheet

    Trying to copy the most recent 6 (or less if not 6) from the year prior's sheet. There are some blanks.

    Thanks for your help
    Mike
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Copying most recent 6 entries with some blanks from previous sheet

    After looking at your file, Im not really sure what data you are looking at, and where you want it to go to?

    As a side-note, formulas cannot "copy" anything anywhere, they only affect the cell they reside in. If you actually want to physically copy data from 1 point to another, you would need VBA.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: Copying most recent 6 entries with some blanks from previous sheet

    Try this in B3:

    =IFERROR(INDEX('2018'!$H3:$AA3,LARGE(IF('2018'!$H3:$AA3<>"", COLUMN('2018'!$H3:$AA3)),
    COLUMNS(B2:$G2))-COLUMNS('2018'!$A$1:$G$1)),"")

    Array formula, enter with Ctrl+Shift+Enter.
    Last edited by Phuocam; 10-29-2018 at 12:55 AM.

  4. #4
    Registered User
    Join Date
    10-23-2018
    Location
    Elm Grove, WI
    MS-Off Ver
    Office for MAC
    Posts
    5

    Re: Copying most recent 6 entries with some blanks from previous sheet

    Phuocam,

    Tried it and it did not do it. Thanks for trying. I would like it to look at all entries from 2018 from b3 to aa3 and then copy the most recent in 2019 f3. Then the next most recent in e3, then d3, then c3, then finally the oldest of the 6 entries in b3.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Copying most recent 6 entries with some blanks from previous sheet

    Please see attached
    B3
    =IFERROR(INDEX('2018'!3:3,AGGREGATE(14,6,COLUMN('2018'!$B3:$AA3)/('2018'!$B3:$AA3>0),COLUMNS(B3:$G3))),"")

    Phuocam's formula work almost the same, just range is not include until B3.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-23-2018
    Location
    Elm Grove, WI
    MS-Off Ver
    Office for MAC
    Posts
    5

    Re: Copying most recent 6 entries with some blanks from previous sheet

    Perfect, Thanks!

+ 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. Copying the value of a cell from a previous sheet
    By aaron.irvine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2013, 10:46 PM
  2. [SOLVED] Trying to fill in Worksheet blanks by copying down previous cells
    By ppilot in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2013, 02:06 PM
  3. VBA: Copying multiple rows to new sheet with no blanks
    By vultimitamin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2012, 11:30 AM
  4. Finding 3 tables on a sheet and copying them, and then removing the blanks
    By the00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2012, 06:36 AM
  5. Replies: 0
    Last Post: 10-14-2011, 12:09 PM
  6. Summary sheet from recent entries in other sheets
    By harley87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2010, 11:07 AM
  7. Update a cell value from a previous sheet after copying the sheet and renaming it
    By Mistweaver in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2009, 09:43 AM
  8. Copying dynamically from one sheet to another without blanks
    By fynn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2008, 01:16 AM

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