+ Reply to Thread
Results 1 to 12 of 12

Index small - not finding all data in table

Hybrid View

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Index small - not finding all data in table

    Hi,

    I have a worksheet (Faculty Data Received) into which I call data from two other workbooks into its rows; included in the data are names of staff at Col A and Dates at Col B. I need to extract the data into a separate sheet for the ten latest (by date) entries for each member of staff - I am using this for the 'earliest' date and then have 9 other equations which capture 2nd smallest, 3rd smallest etc on rows below it (I have shown the first 2):

    {=INDEX('Faculty Data Received'!$B$1:$B$1500,SMALL(IF('Faculty Data Received'!$A$1:$A$1500=A1,ROW('Faculty Data Received'!$A$1:$A$1500),""),1),1)}

    {=INDEX('Faculty Data Received'!$B$1:$B$1500,SMALL(IF('Faculty Data Received'!$A$1:$A$1500=A1,ROW('Faculty Data Received'!$A$1:$A$1500),""),2),1)}

    My problem is that where the dates are drawn from one of the two other workbooks it appears lower down on the Faculty data Received worksheet and the INDEX SMALL function is not picking up these entries.

    I hope I have made this clear and that somebody may be able to help.

    Many thanks in advance.

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

    Re: Index small - not finding all data in table

    The 10 latest dates...

    Is that the 10 most recent dates or the 10 oldest dates?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Index small - not finding all data in table

    Hi Tony,

    I need the 10 most recent dates please.

    Cheers

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

    Re: Index small - not finding all data in table

    Try this...

    Let's assume you want the results starting in cell B1.

    This array formula** entered in B1 and copied down to B10:

    =LARGE(IF('Faculty Data Received'!A$1:A$1500=A$1,'Faculty Data Received'!B$1:B$1500),ROWS(B$1:B1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Format as Date

  5. #5
    Registered User
    Join Date
    05-24-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Index small - not finding all data in table

    Thanks very much Tony...

    this has worked for my first member of staff BRILLIANTLY although I get a NUM! error where there is no date (I'm sure I'll be able to work out how to rectify that), but when I move on to the information for the next or subsequent members of staff it doesn't quite like it - I should have explained that I'm drawing the 10 most recent entries for all staff members...following is what I now get (BI and EN are different members of staff):

    BI 19/05/2012
    BI 19/01/2012
    BI #NUM!
    BI #NUM!
    BI #NUM!
    BI #NUM!
    BI #NUM!
    BI #NUM!
    BI #NUM!
    BI #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!
    EN #NUM!

    are you able to advise how I might amend the formula for the second and subsequent members of staff please?

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

    Re: Index small - not finding all data in table

    Can you post a SMALL sample file so I can see what you're trying to do?

    A SMALL file is less than 50kb in size! I won't open files that are bigger.

  7. #7
    Registered User
    Join Date
    05-24-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Index small - not finding all data in table

    Hi Again Tony,

    I have attached a much-reduced workbook and very much appreciate your assistance.
    Attached Files Attached Files

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

    Re: Index small - not finding all data in table

    What version of Excel are you using? The sample file is in *.xls format and your profile data says you're using Excel 2010.

    The reason I ask is that we need to trap errors and the best way to do that depends on what version of Excel you're using.
    Last edited by Tony Valko; 05-28-2013 at 11:25 AM. Reason: I don't know how to spell

  9. #9
    Registered User
    Join Date
    05-24-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Index small - not finding all data in table

    Hi Tony,

    Had only just noticed that...file was created in Excel 2010 at work...brought it home and am using Excel for Mac 2011...have now saved the 'master' file as .xlsx format. Hope hat makes sense.

    Cheers

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

    Re: Index small - not finding all data in table

    OK, try this array formula** entered in B1 and copied down:

    =IFERROR(LARGE(IF('Faculty Data Received'!A$2:A$24=A1,'Faculty Data Received'!B$2:B$24),COUNTIF(A$1:A1,A1)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  11. #11
    Registered User
    Join Date
    05-24-2013
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Index small - not finding all data in table

    BINGO!! Thanks, mate...first class as you even included ISERROR to deal with my 'no dates'!!

    Could I really push it now and ask if it would be possible to include adjacent data (e.g. cols to the right) of the date from the 'Faculty Data Received' worksheet alongside the 'top 10 dates' which you have just solved for me? If not, I understand and will muddle through, I'm sure.

    Cheers

    simmo6477

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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