hello all
i have a list of ppl (they have multiple entries)
i tried this formula however it is listing the people's name twice on some instance.....the reason im using this formula is bc the list will expand as ppl will add their names in....so im hoping this formula can keep picking the names once....pls help!!
*see attached*
=IF(ROWS($5:5)>COUNTIF(Master!$H$2:$H$463,Calculations!$A$4),NA(),INDEX(Master!$K$2:$K$463,SMALL(IND EX(ROW(Master!$H$2:$H$463)+(Master!$H$2:$H$463<>Calculations!$A$4)*10^10,0),ROWS($5:5))))
Last edited by jw01; 01-27-2012 at 05:30 PM.
Hi jw01,
I don't think I understand the question. Do you want to count the number of times a persons name appears in the list? If so you could do a simple Countif() function where the range is the whole column.
If you are dealing with expanding data that grows, the normal answer is to do that with a Dynamic Named Range in your formula. See
http://www.beyondtechnology.com/geeks007.shtml or http://www.ozgrid.com/Excel/DynamicRanges.htm
If you are trying to select the correct row a name is in then you may need a helper column to count the number of the same names above each name.
hope this helps
One test is worth a thousand opinions.
Click the * below to say thanks.
hello
basically i have the names of the ppl listed in the master sheet "column H"....they names are listed multiple times
in my "calculation sheet"...i want the formula to list their name only once....i thought the formula i have would accomplish taht..but for some reason its not working...ur thoughts?
You have another option - You can either -
- Copy your columns with names to a different sheet/workbook and perform a Remove Duplicates action on it (Data -> Remove Duplicates)
or
-Copy your columns with names to a different sheet/workbook and perform a Advanced Filter action on it (Data -> Advanced -> select Copy to another location / Filter list in place-> select List range & criteria range -> Unique records only.
If this is too manual to repeat each time your data changes, you can have a macro setup to do it. At a click of a button, you can get it done.
Cheers,
Arlette
If I helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
i did the "remove duplicates" however....because the sheet will be expanding i.e. ppl will be entering their data in...i would like the formula to simply show me the names once....know what i mean?
any thoughts on that? thx u so much
Did you try or learn Dynamic Named Ranges?
Do you want a helper column to count the number of times a name appears?
Is an event macro anything you would consider or do you want a relative simple Excel worksheet function?![]()
One test is worth a thousand opinions.
Click the * below to say thanks.
hey marvin
i have no issues with the defined name portion....but the issue is....
how can i apply taht to create a list? i.e. the help columns to show the name appear only once?
i dont want a macro...thxs
i placed this formula in column F5 on the calculation sheet
but im getting some N/A errors
{=INDEX(Master!$K$2:$K$463,LARGE(IF(ISNA(MATCH(Master!$K$2:$K$463,F$4:F4,0)),IF(Master!$K$2:$K$463<> "",ROW(Master!$K$2:$K$463)-ROW(Master!$K$2)+1)),INT(RAND()*(ROW()+ROW(F$4))+1)))}
it is listing the names....but its causing some issue...there are blanks in my data....any thoughts?
Try:
=LOOKUP(REPT("z",255),CHOOSE({1,2},"",INDEX(Master!$K$2:$K$463,MATCH(0, INDEX(COUNTIF($B$4:$B4,Master!$K$2:$K$463),0),0))))
confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down...
convert the K2:K463 to a dynamic range if you want to add names on the fly...
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.
This one eliminates any blank rows within the data
=LOOKUP(REPT("z",10),CHOOSE({1,2},"",INDEX(Master!$K$2:$K$463,MATCH(0, INDEX((Master!$K$2:$K$463<>"")*(COUNTIF($B$4:$B4,Master!$K$2:$K$463)),0),0))))
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.
hello nbvc
when i tried your first formula...it works...but shows a blank
but when i tried your second formula.....it only shows me 31 ppl? vs. 48 that should be shown....ur thoughts? thx u sir!
you are right... but, unfortunately I've gotta take off... so I'll have get back to it later... or you can either not have them in the original data or live with it as one of the returned results... otherwise, if nobody comes up with it, I will look at it over the weekend....
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.
here is the attached
i have made the range dynamic, its called "Name_"
however with the second formula that you mentioned removes the blanks...its only showing 31 ppl....ur thoughts? thxs again!
if you are looking for extract unique names, this should work with CTRL+SHIFT+ENTER
=LOOKUP(REPT("z",255),CHOOSE({1,2},"",INDEX(Name_,MATCH(1,IF(Name_<>"",IF(ISNA(MATCH(Name_,B$4:B4,0) ),1)),0))))
copy down.
HTH; Haseeb
If your problem is solved, please say so clearly, and mark your thread as Solved:
Forum Rules & How to Mark a thread as SOLVED
you guys are the best!!!!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks