+ Reply to Thread
Results 1 to 5 of 5

Retrieve data using index-match formula

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Retrieve data using index-match formula

    Hi friends,

    I want to retrieve the address from ‘Personal’ sheet to ‘Label’ sheet.
    If there is a ‘Expired’ or ‘Duplicate’ or ‘Company’ remark in column ‘W’ then I want to skip that serial no.
    For ex. Here there is a ‘Expired’ remark in cells ‘W10, W16, W17, W22, W25’ So I want to skip serial nos. 2, 8, 9, 14, 17 on ‘Label’ sheet.
    I don’t want the serial numbers on ‘Label’ sheet more than the serial numbers on the ‘Personal’ sheet.
    I want to convert formulas into values on ‘Label’ sheet.

    Any help will be highly appreciated.

    Thanking you.
    Attached Files Attached Files
    Sincerely,

    mso3

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Retrieve data using index-match formula

    Add a helper column to the data to make this simple:

    Personal
    AL1: "Key"
    AL2: =IF(OR(W9="Duplicate",W9="Expired",W9="Company"), "", B9)

    Copy AL2 down the data set

    Label
    A1: =IFERROR(SMALL(Personal!$AL:$AL,ROW(A1)*2-1), "")
    C1: =IFERROR(SMALL(Personal!$AL:$AL,ROW(A1)*2), "")

    Copy down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Retrieve data using index-match formula

    Hi JBeaucaire,

    Greetings from me!

    It's working fine on 'Personal' sheet but I'm not getting addresses on 'Label' sheet.

    I have started "Key" from AL8 and formula from AL9 because all of my data starts from row 8 and there is a data of company name and other information. So rows 1-7 are not blank.

    I want to change the formula to value to reduce the size of file.
    I don't want extra serial numbers on 'Label' sheet. It should match with the serial numbers on the 'Personal' sheet. In short the serial numbers on 'Label' sheet should not be greater than the serial numbers on 'Personal' sheet. In our case now there are 21 members on 'Personal' sheet so that there should be only 21 serial numbers on 'Label' sheet.

    I think a macro will be better to achieve this target.

    Thanking you in anticipation.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Retrieve data using index-match formula

    Your KEY column went down too far. Your data stops at row 29.

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Retrieve data using index-match formula

    Hi JBeaucaire,
    Excellent! Now it's working fine.

    I appreciate you for the same.

    Thank you and have a nice time.

+ 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. [SOLVED] Using the MATCH-INDEX function to retrieve data.
    By APosada2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-11-2015, 08:02 AM
  2. [SOLVED] VBA to perform an index/match function to retrieve data
    By mji006 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-07-2014, 04:23 PM
  3. Replies: 9
    Last Post: 11-07-2014, 07:10 AM
  4. Replies: 7
    Last Post: 06-27-2014, 02:26 AM
  5. Retrieve MAX value from array using INDEX and MATCH
    By paul724 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-02-2014, 10:07 AM
  6. Replies: 10
    Last Post: 08-19-2013, 11:33 AM
  7. Replies: 6
    Last Post: 01-23-2013, 02:21 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