Results 1 to 7 of 7

Lookup/Match Formula

Threaded View

  1. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup/Match Formula

    This could be a formula alternative:

    Try this, in C2 enter:

    =1+COUNTIF(data!A:A,B2)+C1-(COUNTIF(data!A:A,B2)>0)
    copied down to bottom

    In D2 enter:

    =MAX(C:C)
    in E2 enter:

    =IF(ROWS($A$2:$A2)>$D$2,"",INDEX($B$2:$B$84,MIN(IF(ROWS(A$2:A2)<=$C$2:$C$84,ROW($C$2:$C$84)-ROW($C$2)+1))))
    confirmed with CTRL+SHIFT+ENTER and copied down beyond the bottom until you get blanks.

    in F2 enter:
    =IFERROR(INDEX(data!$D$2:$D$6,SMALL(IF(data!$A$2:$A$6=E2,ROW(data!$A$2:$A$6)-ROW(data!$A$2)+1),COUNTIF(E$2:E2,E2))),"")
    adjust ranges for data! sheet and confirmed with CTRL+SHIFT+ENTER and copied down

    You can then copy and Paste special >> Values over the original 2 columns if desired and remove these formula columns.
    Attached Files Attached Files

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