Benjamin Wilson7 said:The rule is simple: the values in the first column of the table array must be in ascending order; otherwise, you're gonna have problems.
Nicholas King said:Nah.
You're both right, honestly—it just depends on which side of the fence you're sitting on. VLOOKUP. That's it. That's the whole post. The function has its own syntax.
Code:
Here’s the breakdown on VLOOKUP: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
The last "range_lookup" argument gives you two choices: TRUE or FALSE.
If you set that thing to TRUE, the values in the first column of the table array must be in ascending order; otherwise, it's gonna break.
If you set it to FALSE, you don't even need to worry about sorting the data.
driftingpilot8 said:I need to fix my rows—basically, I need to align two columns on the right with their matching rows on the left.
You should've just uploaded the file for download so I wouldn't be wasting my damn time. 😉
Alright, here’s a quick pic to make things easier to wrap your head around.

Just pop this formula into cell G1: =A1. Done. Copy. See below.
Just pop this formula into cell H1: =B1, then drag it down. Easy.
Populate cell I1 with this formula: =IFERROR(VLOOKUP(G1;$C$1:$D$5;1;FALSE);"")
Stick this formula in cell J1: =IFERROR(VLOOKUP(G1;$C$1:$D$5;2;FALSE);"")
You gotta use the "table_array" argument. No exceptions. Absolute addresses. or Named ranges..
By the way: Take a look. Excel 2003 basics. or Some examples for Excel 2007.