Results 1 to 13 of 13

Expanded Vlookup Issue

Threaded View

  1. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Another alternative... with no helper columns....

    This formula in F1 counts total records that have month from drop down in either the Birthday or the Anniversary or Both.

    =SUMPRODUCT((TEXT($C$2:$C$10,"mmmm")=$G$2)+(TEXT($D$2:$D$10,"mmmm")=$G$2))-SUMPRODUCT((TEXT($C$2:$C$10,"mmmm")=$G$2)*(TEXT($D$2:$D$10,"mmmm")=$G$2))
    This formula in H2, begins to extract the matching information and pulls only the number of records indicated by the formula in F1:

    =IF(ROWS($A$1:$A1)>$F$1,"",INDEX(A$2:A$10,SMALL(IF((TEXT($C$2:$C$10,"mmmm")=$G$2)+(TEXT($D$2:$D$10,"mmmm")=$G$2),ROW($A$2:$A$10)-ROW($A$2)+1),ROWS($A$1:$A1))))
    the above formula is an array formula and must be confirmed with CTRL+SHIFT+ENTER keys instead of just ENTER.. you will see { } brackets appear around the formula...then copy it down as far as you want and across the other relevant number of columns.

    If you adjust the ranges to suit a large database, you will need to reconfirm the formula with the CSE keys and then copy down and across again.

    See attached.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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