+ Reply to Thread
Results 1 to 5 of 5

Copy data from one sheet to other according to two criteria date and value in specific cel

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Copy data from one sheet to other according to two criteria date and value in specific cel

    dear All
    i have in my attached file in report sheet the following
    i have three cases in J2
    if i select one case like in my example Product & Load they will goto direct to see match data from ref sheet
    and according to date in D2 in report sheet it see match value from sheet ref according to day
    if they found Y its meaning copy corresponding value from Column C (ref) to Column A in report sheet
    in my attached file you can find AA9 not copied because the date in D2 is Sunday and according to
    ref Sunday for AA9 is N
    hope you can understand me
    Attached Files Attached Files
    Last edited by mazan2010; 12-24-2017 at 11:06 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,900

    Re: Copy data from one sheet to other according to two criteria date and value in specific

    Hi. Try this array formula:

    =IFERROR(INDEX(ref!C:C,SMALL(IF(ref!$A$2:$A$26=report!$J$2,IF(INDEX(ref!$D$2:$J$26,,MATCH(TEXT(report!$D$2,"dddd"),ref!$D$1:$J$1,0))="Y",ROW(ref!$A$2:$A$26))),ROWS(A$2:A2))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: Copy data from one sheet to other according to two criteria date and value in specific

    many thanks dear Glenn
    marry Christmas
    its working good

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,900

    Re: Copy data from one sheet to other according to two criteria date and value in specific

    Note:

    MATCH(TEXT(report!$D$2,"dddd") if you do not keep the $ here, the other formulae already in your sheet will give rise to circular reference errors.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,900

    Re: Copy data from one sheet to other according to two criteria date and value in specific

    Thanks, you're welcome. I hope it's warmer in Egypt than it is here in Ireland!!!

+ 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: 12
    Last Post: 09-29-2015, 08:00 AM
  2. [SOLVED] Formula required to match a value in sheet 1 to sheet 2 Column A and select a value from B
    By deputydoug in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2015, 08:44 AM
  3. [SOLVED] Match Value in Sheet 1 with Sheet 2, copy entire row from sheet 1 to new sheet
    By lzyshaman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2013, 07:48 AM
  4. Replies: 11
    Last Post: 10-14-2012, 01:03 PM
  5. [SOLVED] Need Auto Invoicing and pickup details from the main sheet. Creating Auto Invoice.
    By kulins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2012, 09:22 AM
  6. Replies: 3
    Last Post: 12-22-2011, 10:57 AM
  7. Select cell that match from other sheet
    By unley in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-02-2008, 04:04 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