+ Reply to Thread
Results 1 to 3 of 3

Extracting data from certain rows

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    381

    Extracting data from certain rows

    Hi Guys,

    Got a question for ya...

    On the attached I need a formula in sheet 'Overview', cell B4 that looks at the name in column A, matches to the item in ROW3, then matches to the name and item in the sheet called 'Data', and extracts the last date applicable to that person and item from columns F:K.

    Any ideas how to do it?

    Thanks
    Jake
    Attached Files Attached Files

  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
    44,052

    Re: Extracting data from certain rows

    I'm sitting in the hot sunshine... in the unfortunately named town of Peniscola, Spain. My head is a bit fried. There WILL be a shorter way to get this result... but I'm just glad to have got something to work!!

    An array formula, entered in B4 and then copied across/down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    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 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
    28,199

    Re: Extracting data from certain rows

    Try

    in B4

    =IFERROR(LOOKUP(10^10,INDEX(Data!$A$2:$W$34,MATCH(Overview!$A4&B$3,Data!$B$2:$B$34&Data!$C$2:$C$34,0),0)),"")

    ...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.

    Copy across and down

    in E4

    =IFERROR(DATEDIF(B4,$J$2,"D"),"")

    copy across and down

+ 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: 9
    Last Post: 11-11-2015, 08:19 PM
  2. Extracting data from one sheet to another, not in same rows or columns
    By mindrumk424 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2013, 05:13 PM
  3. Replies: 6
    Last Post: 08-18-2012, 05:00 AM
  4. Extracting Particular Rows of Data
    By smobaid in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 07-11-2010, 12:55 PM
  5. extracting rows of data
    By jaydee63 in forum Excel General
    Replies: 9
    Last Post: 01-20-2009, 04:40 PM
  6. [SOLVED] Extracting data from multiple rows
    By thermometer in forum Excel General
    Replies: 9
    Last Post: 05-30-2006, 06:45 PM
  7. [SOLVED] Extracting data from alternate rows
    By davegb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2005, 04:06 PM

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