+ Reply to Thread
Results 1 to 2 of 2

many rows for 1 ref#, need to extract 1st row only for 1 ref#

Hybrid View

  1. #1
    J LI
    Guest

    many rows for 1 ref#, need to extract 1st row only for 1 ref#

    Hi there,

    I can't figure out the formula to extract the following problem:

    Col A Col B Col C
    Ref# Amount$ Description
    123 $100 - This is the 1st line of ref# 123
    123 $100 - This is the 2nd line of ref# 123
    123 $100 - This is the 3rd line of ref# 123
    456 $949 - This is the 1st line of ref# 456
    456 $949 - This is the 2nd line of ref# 456
    456 $949 - This is the 3rd line of ref# 456

    I only need to extract the very first line in the column "Description" for
    every separate "Ref#". I have about 13,000 rows of reference, but I only
    need the first line for each Reference #.

    I tried vlookup but it doesn't work.

    Please help, and thanks.

  2. #2
    Daniel CHEN
    Guest

    Re: many rows for 1 ref#, need to extract 1st row only for 1 ref#

    Use match and index functions:

    = index(C1:C99,match("123",A1:A99,0))

    --
    Best regards,
    ---
    Yongjun CHEN
    =================================
    XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
    - - - - www.XLDataSoft.com - - - -
    Free Excel-Based Data Processing Tool is Available for Download
    =================================

    "J LI" <J LI@discussions.microsoft.com> wrote in message
    news:001C11AD-432F-412D-9221-67EE2D56C157@microsoft.com...
    > Hi there,
    >
    > I can't figure out the formula to extract the following problem:
    >
    > Col A Col B Col C
    > Ref# Amount$ Description
    > 123 $100 - This is the 1st line of ref# 123
    > 123 $100 - This is the 2nd line of ref# 123
    > 123 $100 - This is the 3rd line of ref# 123
    > 456 $949 - This is the 1st line of ref# 456
    > 456 $949 - This is the 2nd line of ref# 456
    > 456 $949 - This is the 3rd line of ref# 456
    >
    > I only need to extract the very first line in the column "Description" for
    > every separate "Ref#". I have about 13,000 rows of reference, but I only
    > need the first line for each Reference #.
    >
    > I tried vlookup but it doesn't work.
    >
    > Please help, and thanks.




+ 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