
Originally Posted by
hrlngrv
Unless your list of birthdays in N1:N198 is sorted in ascending order, and the names in A1:A198 sorted along with it, the logic in your 2nd formula is wrong. The row below the topmost match for E1 in N1:N198 may not have the same or next birthday. If your A1:A198 and N1:N198 ranges were sorted by col N in ascending order, you'd only need to find the first date after today, then directly index that row and the next 4 or more.
Anyway, in Google Sheets, use the FILTER function. If you want everyone with the 5th soonest and sooner birthdays,
=sort(filter({N1:N198,A1:A198},N1:N198<=small(N1:N198,5)),1,1)
If you want an Excel-like approach, the formulas are much longer and/or need additional cells per result. Take advantage of what Google Sheets provides.
Bookmarks