+ Reply to Thread
Results 1 to 10 of 10

INDEX and SMALL help

  1. #1
    Registered User
    Join Date
    03-02-2015
    Location
    australia
    MS-Off Ver
    2011
    Posts
    5

    INDEX and SMALL help

    Hi Guys

    I have data in the cell ranges A1 to B4566. In column A are postcodes, in column B are email addresses. There are multiple instances of postcodes per email address, on separate rows. For example:
    Col A Col B
    0100 Email 1
    0100 Email 2
    0100 Email 3
    0200 Email 4
    0200 Email 5
    0300 Email 6
    0300 Email 7

    I have a list of postcodes I need to extract Emails for, in the cell range R1:R308. I also have another list in T1:T198.
    For example, if R1 contains 0100, R2 contains 0200 etc, I want to be able to drag the formula both horizontally and vertically to capture all data, so I'm left with something like:
    0100 email 1 email 2 email 3
    0200 email 4 email 5
    0300 Email 6 Email 7

    Where the number values are the list in column S and the emails are the index formula.

    At the moment here is what I have but it is giving me a #num error:

    Please Login or Register  to view this content.
    Thanks in advance for any help.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: INDEX and SMALL help

    Formula doesn't work.
    Deleted by FR
    Last edited by FlameRetired; 03-02-2015 at 01:18 AM.

  3. #3
    Registered User
    Join Date
    03-02-2015
    Location
    australia
    MS-Off Ver
    2011
    Posts
    5

    Re: INDEX and SMALL help

    Quote Originally Posted by FlameRetired View Post
    What happens when you put the SMALL argument in the columns part of INDEX like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    same deal unfortunately #num

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: INDEX and SMALL help

    Your current formula is perfect #Num in your formula refers that there is no matching value found in column A


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    03-02-2015
    Location
    australia
    MS-Off Ver
    2011
    Posts
    5

    Re: INDEX and SMALL help

    Quote Originally Posted by :) Sixthsense :) View Post
    Your current formula is perfect #Num in your formula refers that there is no matching value found in column A
    You're right - if I change the first value in A1 to match the value in R1 (in this case 3000) it works, however the first few hundred or so in the list aren't in column R1 however I don't want to delete them because I want to re-use this formula for other lists, is there any way around this?

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: INDEX and SMALL help

    Can you please attach a sample file with expected result so that it will be easy for us in giving the exact solution

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    03-02-2015
    Location
    australia
    MS-Off Ver
    2011
    Posts
    5

    Re: INDEX and SMALL help

    Thanks for your help - here's the spreadsheet, hopefully it clears things up.

    desensitized list.xlsx

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: INDEX and SMALL help

    Column-A Values are Text Numbers
    But R1 Value is Real Number

    So instead of R1 change it to TRIM($R1) so that the trim function will make it as Text Number

    =INDEX($B$1:$B$4566,SMALL(IF(TRIM($R1)=$A$1:$A$4566,ROW($A$1:$A$4566)-ROW($A$1)+1),COLUMN(A1)))

  9. #9
    Registered User
    Join Date
    03-02-2015
    Location
    australia
    MS-Off Ver
    2011
    Posts
    5

    Re: INDEX and SMALL help

    Quote Originally Posted by :) Sixthsense :) View Post
    Column-A Values are Text Numbers
    But R1 Value is Real Number

    So instead of R1 change it to TRIM($R1) so that the trim function will make it as Text Number

    =INDEX($B$1:$B$4566,SMALL(IF(TRIM($R1)=$A$1:$A$4566,ROW($A$1:$A$4566)-ROW($A$1)+1),COLUMN(A1)))
    What a silly little thing, thanks so much!

  10. #10
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: INDEX and SMALL help

    Offer such options.
    Attached Files Attached Files

+ 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. INDEX SMALL problem
    By jwillis07 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-11-2015, 01:42 PM
  2. Index( Match( Small( If
    By TravCAH in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2013, 08:41 AM
  3. Index/Small help
    By WWSL14 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-12-2013, 03:50 PM
  4. [SOLVED] Trying to do an Index with small if for the first time
    By Cobbhill in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-04-2012, 03:32 PM
  5. INDEX SMALL with conditional IF and OR
    By cedarhill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2010, 02:43 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