Hi,
I have a whole list of information i.e. First Name (column A), Last Name (column B), anniversary (column C). Then on another sheet I have a list of all the months of the year in row 1.
I am trying to create a lookup that will place the persons surname under the corresponding month.
Thanks in advance.
Alex
It would be easier if you could post a workbook showing your setup
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
See the attached workbook
With
On Sheet1...
Col_A contains First Names (beginning in Row_2)
Col_B contains Last Names (beginning in Row_2)
Col_C contains Anniversary Dates (beginning in Row_2)
and
On Sheet2...
A1:L1 contains Jan, Feb,...Dec
This will list names with anniv dates in the same month s Row_1.
(ARRAY FORMULA...committed with CTRL+SHIFT+ENTER, instead of just ENTER)
Copy A2 into A3 and down as far as you need.Code:A2: =IF(SUMPRODUCT(--(TEXT(Sheet1!$C$2:$C$20,"mmm")=A$1))>=ROWS($2:2), INDEX(Sheet1!$B$1:$B$20&", "&Sheet1!$A$1:$A$20,SMALL(IF(TEXT( Sheet1!$C$2:$C$20,"mmm")=A$1,ROW(Sheet1!$C$2:$C$20)),ROWS($2:2))),"")
Copy that series of formulas and paste them under each month name.
Is that something you can work with?
non array with helper colums attached
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Thank you all, that last one worked perfectly! And I am sure I will be able to use that first one in the future.
Thanks again,
Alex
P.S. Happy Christmas
One other thing on the same subject, is it possible to have the surname as a list on the left hand side and then their first name returning a value in the calendar. From the attached document, I mean instead of returning sheet 2, returning sheet 3 instead? I have just moved cells around on sheet 3 for the purpose of this illustration.
Thanks in advance,
Alex
im not sure exactly , i confused myself ! is it only one person or several? put another example with some different names so i can uncloud my mind!
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Hi Sorry about that, I have removed what you did previously and have shown how I am trying to make the two sheets work together. These sheets dont have formulas in them but that is what I am trying to create to automate.
Any suggestions?
Thanks for all your time on this!
Kind regards,
Alex
In Sheet2!B2:
=SUMPRODUCT(--(Sheet1!$B$1:$B$4=$A2),--(TEXT(Sheet1!$D$1:$D$4,"mmm-yy")=TEXT(B$1,"mmm-yy")),Sheet1!$C$1:$C$4)
adjust ranges to suit.
copied across the table...
To hide the Zeroes.. go to Tool|Options and in View tab, uncheck Zero Values
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks