+ Reply to Thread
Results 1 to 5 of 5

date reference and copy range

  1. #1
    Registered User
    Join Date
    11-10-2016
    Location
    Sri Lanka
    MS-Off Ver
    2010
    Posts
    77

    date reference and copy range

    hi,

    i want to copy-past value from B and C column to F and E column. But need to reference D2 and A column date value .
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,744

    Re: date reference and copy range

    In E2

    =IFERROR(INDEX($C$2:$C$21,SMALL(IF($A$2:$A$21=$D$2,ROW($A$2:$A$21)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    Enter with Ctrl+Shift+Enter

    Drag down until you get blank cells

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: date reference and copy range

    Try this...

    Entered in E2:

    =IF(ROWS(E$2:E2)>COUNTIF(A:A,D$2),"",INDEX(C:C,MATCH(D$2,A:A,0)+ROWS(E$2:E2)-1))

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    11-10-2016
    Location
    Sri Lanka
    MS-Off Ver
    2010
    Posts
    77

    Re: date reference and copy range

    Thanks sir, Both are working.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: date reference and copy range

    You're welcome. Thanks for the feedback!

+ 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. SUMIFS with date range as a cell reference
    By malagajm in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 05-05-2016, 07:52 AM
  2. [SOLVED] reference date time range, return the value into all cell that match datetime range
    By Jarvco13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-22-2013, 10:39 PM
  3. reference column date (yesterday) to get Month(Date) for copy paste
    By jukabub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2013, 03:52 AM
  4. Reference a date, then copy and transpose paste into a date specific location
    By nelmsd in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-26-2013, 03:30 PM
  5. How to copy Cell without changing the range reference
    By Datsme_29929 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-28-2011, 05:08 PM
  6. Copy/Paste Range Reference
    By ac_surf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2010, 09:27 AM
  7. copy date based on date -refer to date range
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2006, 08:35 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