+ Reply to Thread
Results 1 to 8 of 8

Pulling data that matches a specific date

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Philippines
    MS-Off Ver
    O365
    Posts
    49

    Pulling data that matches a specific date

    Hi,

    I have this spreadsheet where in there's a Raw Data. Along with is there's a different tab for different user, is there a way that if a certain user choose a date it will pull up the data for that date in the Raw Data.

    What formula should I use? and how should I do it.

    Sorry if I can't explain it well but please do see the sample spreadsheet and you will notice what I really want.


    PS :
    Is it possible to do this without using VBA because I want to upload it in Google Spreadsheet.

    Many thanks!
    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,933

    Re: Pulling data that matches a specific date

    1st, put this in E1 in each workbook...
    =MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

    Then use this ARRAY formula in A6, copied down and across for each worksheet...
    =IFERROR(INDEX('Raw Data'!A$5:A$16,SMALL(IF('Raw Data'!$A$5:$A$16=$D$1,IF('Raw Data'!$C$5:$C$16=$E$1,ROW('Raw Data'!$A$5:$A$16)-ROW('Raw Data'!$A$5)+1)),ROW('Raw Data'!$A1)),1),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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
    Registered User
    Join Date
    02-20-2013
    Location
    Philippines
    MS-Off Ver
    O365
    Posts
    49

    Re: Pulling data that matches a specific date

    Thank you for changing the subject.

    I tried what you have said but it pulls up a different data. I'm wondering on this part of the code :
    =MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

    Should I change something there? I have reattached the file again and added the codes and steps that you have said.

    Can you please tell me where did I go wrong?


    Many thanks!
    Attached Files Attached Files

  4. #4
    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,933

    Re: Pulling data that matches a specific date

    Looks like you missed the ARRAY part that I mentioned (dont worry, even old hands make that mistake now and then). You need to enter those with CTRL SHIFT ENTER, not just enter. If you did it properly, your formula should be now be inside {}

    in A6 on each sheet, press F2 (edit), then press CTRL SHIFT ENTER. Then copy down and across

  5. #5
    Registered User
    Join Date
    02-20-2013
    Location
    Philippines
    MS-Off Ver
    O365
    Posts
    49

    Re: Pulling data that matches a specific date

    Yeah! I thought it worked already when I pressed CTRL SHIFT ENTER but it didn't. Haha! Anyway, it's working now.

    But one last request and I just forgot to add it, is it possible that I can pull up the data if its a week range (or most specifically a range of date)

    For example, I want to pull out the data from May 5, 2014 until May 11, 2014.

    Is that possible? Thank you very much for your help! A big thanks really this will help me alot.
    Last edited by Krix; 05-22-2014 at 02:08 AM.

  6. #6
    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,933

    Re: Pulling data that matches a specific date

    Try adding to that formula (it's not as hard as it looks), you just need to add an extra date

    =IFERROR(INDEX('Raw Data'!A$5:A$16,SMALL(IF('Raw Data'!$A$5:$A$16=$D$1,IF('Raw Data'!$C$5:$C$16=$E$1,ROW('Raw Data'!$A$5:$A$16)-ROW('Raw Data'!$A$5)+1)),ROW('Raw Data'!$A1)),1),"")

    =IFERROR(INDEX('Raw Data'!A$5:A$16,SMALL(IF('Raw Data'!$A$5:$A$16>=$D$1,IF('Raw Data'!$A$5:$A$16<=$D$2,IF('Raw Data'!$C$5:$C$16=$E$1,ROW('Raw Data'!$A$5:$A$16)-ROW('Raw Data'!$A$5)+1))),ROW('Raw Data'!$A1)),1),"")

  7. #7
    Registered User
    Join Date
    02-20-2013
    Location
    Philippines
    MS-Off Ver
    O365
    Posts
    49

    Re: Pulling data that matches a specific date

    A BIG THANK YOU!!! How can I put SOLVED on this thread?

  8. #8
    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,933

    Re: Pulling data that matches a specific date

    In the menu bar just above your 1st post, Thread Tools

+ 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. Pulling data for specific date from different workbooks into a master workbook
    By pazuuu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2013, 12:02 PM
  2. insert code to pull only data that matches a specific date entered in a cell
    By Ben.Cgg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2013, 12:04 PM
  3. Pulling a Specific Cell when Pulling a Tabel from Web Based Data
    By Zallen89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2013, 05:39 PM
  4. Replies: 5
    Last Post: 05-04-2012, 09:04 AM
  5. Replies: 2
    Last Post: 12-01-2010, 07:51 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