I can't see any formulas in your example, but if it is to be used as a database then your design is all wrong. There should be no empty colums in a database.
I am trying to have a list sorted alphabetically. On the attached sheet the first section of columns is what I want automatically to happen when the second set of columns are entered manually. I am using a VLOOKUP function to pull from the third (fifth column in the function). But the VLOOKUP function requires the data to be sorted otherwise the function doesn't work. So, I would prefer to not have to sort the data (if anyone knows a better way then that would be great), otherwise is there a way to automatically alphabetize the data?
I can't see any formulas in your example, but if it is to be used as a database then your design is all wrong. There should be no empty colums in a database.
Hope that Helps
Roy
For free Excel tools & articles visit my web site
If I have helped you and you feel like putting your hand in your pocket please make a donation to Children in Need
About me.
There aren't any formulas, that is what I am asking help for, a formula to make the second set look like the first set. It is not a database (do you mean like a reference sheet or like a microsoft access database? It is for reference)Originally Posted by royUK
The Vlookup function doesn't require the list to be sorted if you use the last argument as either false or 0.
eg vlookup(a3,lookuplist,3,0)
Daniel
Awesome, it worked thanx!Originally Posted by DMariotti
for future reference, is there a way to autmatically sort a list?
From the main toolbar, Data>>Sort works well
Alastair
Einstein:
Things should be made as simple as possible, but not any simpler
Be sure to check out TemplateZone for all your Microsoft Office Needs.
Get OfficeReady Professional 3.0 here!
WakkoGuy,
You can sort it alphabetically automatically by using VBA and using Excel's Worsheet_change event.
Daniel
Hi
You can also sort it dynamically using formula.
Say you have a list of data in the range A2:A13
In B2 enter the formula
and copy down to B13VB:=SUMPRODUCT(--($A$2:$A$13>A2))
In C2 enter the formula
Copy down to C13VB:=INDEX($A$2:$A$13,MATCH(LARGE($B$2:$B$13,ROW()-1),$B$2:$B$13,0))
Data will automatically sort.
Tony
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks