Hi Guys,
Basically, I have a list of about 3,000 names and places of work, in two columns. What I want is to have the place of work in the first column, and then all the employees along that row. There must be a simple solution to this, but I have been banging my head on my desk all morning trying to work it out. All the places of work are sorted, if that makes any difference.
Thanks for your help,
James
Ok, just realised that my description makes little to no sense. Attached is an example of how the data is, and how I need it to be.
Can you save it in 2003 as well, not everybody is using 2007
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Sorry bout that, 2003 attached
Hi James,
I know this isn't what you asked for, you will need someone with VBA experience to produce the list the way you want it, hopefully someone will respond.
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
a pivot table would arrange it for you but it will still be in two columns..
Thanks for that oldchippy - unfortunately as you say its not quite what I need - but I guess its a step closer. This is driving me mad! I've posted this is in the programming forum (I know you guys frown on double posting so please delete the thread if it breaches the rules...)
I know, that's why I saidOriginally Posted by manny_cb
"I know this isn't what you asked for"
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
I figured there has to be a way for Excel to do this w/o VBA so sparked up some neurons and came up with the attached result;Originally Posted by old chippy
I set a dummy column next to the company name containing simply =ROW(). Then I used this array formula to come up with the namesDragged down and right.=INDIRECT(ADDRESS(LARGE(--($B$3:$B$9=$E3)*$C$3:$C$9,COLUMN(A1)),1)) input with CNTRL-SHFT-ENTER
I could not get the errors to disappear. If I added an ISERROR IF statement, everything went blank. I am on 2000 so don't have some of the error removal tools that are available on 2003 up. True?
ChemistB
P.S. As per the title of the attachment, I was working with OFFSET first but that didn't pan out.![]()
Credit where credit due - well done ChemistB, I wouldn't have got that one.
Can you explain how this works?
I've just checked out the "Evaluate formula" and can see now
Last edited by oldchippy; 07-11-2008 at 05:56 PM.
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
when all else fails, fall back on the the old =iserror(f3) font white conditional format trick lol
Here's a possible non-vba solution
Regards
Mike
Another good one Mick - it get better all the time here
oldchippy
-------------
![]()
![]()
If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
changing mikeopolo formula to
and simply put "end" after last entry cols a and c=IF(COLUMNS($F:F)<=(MATCH($C2,$A:$A,0)-MATCH($C1,$A:$A,0)),INDEX($B:$B,MATCH($C1,$A:$A,0)-1+COLUMNS($F:F),1),"")
you can do away with steps 3+4 ie columns D and E
Thanks Martin, very nice substitution and improvement!
Regards
Mike
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks