Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: Extract data with 2 criteria

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Charles's Avatar
    Join Date
    Aug 2012
    Posts
    63
    Rep Power
    14
    Hi,

    Sorry I was side tracked.
    As for the dates. What if 1 date is missing?
    Will the dates that you specify be in the "Agenda" sheet?

  2. #2
    Member Charles's Avatar
    Join Date
    Aug 2012
    Posts
    63
    Rep Power
    14
    Hi,

    Here's the file. I left the dates that I used in place.
    I did not fully test.
    Attached Files Attached Files

  3. #3
    Member
    Join Date
    Aug 2012
    Posts
    72
    Rep Power
    14
    Hi Charles

    I'm trying to change your code to fetch the column Lápis.
    Enjoy what is ready to put the Lápis.

    and am having trouble on the dates
    Attached Files Attached Files

  4. #4
    Member Charles's Avatar
    Join Date
    Aug 2012
    Posts
    63
    Rep Power
    14
    Hi,

    I'd like to help, but you need to tell me what your trying to do.
    In the code I see you have "c" and "d" doing the same thing.

  5. #5
    Member
    Join Date
    Aug 2012
    Posts
    72
    Rep Power
    14
    Hi.
    has a down arrow, I need to return the data for the value that is in "C1" and also by date (equal and maoir) -> "E1" and "G1" <- (equal and smaller)

    I got back when "C1" has the value "CASA"
    but other values {Computador, Familia, Lápis} I can not return.,

  6. #6
    Member Charles's Avatar
    Join Date
    Aug 2012
    Posts
    63
    Rep Power
    14
    Hi,

    Check your Date range. The Dates in Casa falls with in your range in C1 and E1 and the others do not.
    Thats why Casa works.

  7. #7
    Member
    Join Date
    Aug 2012
    Posts
    72
    Rep Power
    14
    Hi.

    I realized that this format is reading
    Date = MM / dd / yyy

    I need that law in this format
    Date = DD / mm / yyy

  8. #8
    Member Charles's Avatar
    Join Date
    Aug 2012
    Posts
    63
    Rep Power
    14
    It's not the format of the dates its the date range.
    The dates in the other than Casa do not fall with in the specified dates.

  9. #9
    Member
    Join Date
    Aug 2012
    Posts
    72
    Rep Power
    14
    Hi.
    but because when I change from "E1" and "G1" I get back "Pencil" and others?

  10. #10
    Member Charles's Avatar
    Join Date
    Aug 2012
    Posts
    63
    Rep Power
    14
    Hi,

    Your problem is with the dates.
    The Dates that you have in "Casa" is ok.
    The Dates you have in "Raposa" are not ok.
    The date you have in E1 of PROGRAMAÇÃO is


    11/4/2012

    and the dates in Raposa is


    11/3/2012
    10/10/2012
    10/11/2012
    11/1/2012
    11/2/2012
    12/18/2012
    11/3/2012
    11/3/2012
    11/3/2012
    11/3/2012

    As you can see the list of dates are not >= 11/4/2011.

    Thats why when you run the code it does not copy any thing to the Program sheet.

    The Dates for Casa" are


    11/2/2012
    11/1/2012
    11/5/2012
    11/3/2012
    11/2/2012
    11/8/2012
    11/4/2012
    11/5/2012
    11/6/2012
    11/7/2012

    And as you can see you have several Dates that are >= 11/4/2012.

    There for the code will show the data in the Programe sheet.

    I hope tis helps you.

Similar Threads

  1. Replies: 8
    Last Post: 06-08-2013, 01:24 PM
  2. VBA Code to Extract data
    By Howardc in forum Excel Help
    Replies: 1
    Last Post: 07-24-2012, 11:37 PM
  3. Split data based on criteria
    By Mahesh.sreekakulam in forum Excel Help
    Replies: 3
    Last Post: 06-08-2012, 09:30 PM
  4. Extract multiple data matching with input
    By excel_learner in forum Excel Help
    Replies: 1
    Last Post: 02-13-2012, 06:08 PM
  5. Extract data using Advanced Filter
    By PcMax in forum Excel Help
    Replies: 4
    Last Post: 01-02-2012, 02:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •