![]() |
#10
|
|||
|
|||
![]()
Good grief, my bad. Simple error. We need to use absolute references for the lookup table.
The current equation in D2... =VLOOKUP(B2,Balances!A2:B21,2,FALSE) Excel automatically increments references so the lookup table then is A3:B22 for the equation in the next row, A4:B23 after that, etc. Making the reference absolute, the equation becomes... =VLOOKUP(B2,Balances!$A$2:$B$21,2,FALSE) What this does is tell Excel to not increment either the row or column reference. Since we are copying down, all we really care about is the row reference so we could just put the $ in front of that part: A$2:B$21. Or, more simply... =VLOOKUP(B2,Balances!A:B,2,FALSE) This makes the entire columns A and B the lookup reference and thus leaves room for you to add rows nearly indefinitely (over one million rows in Excel 2010). Also, we can add error trapping (use this equation)... =IFERROR(VLOOKUP(B2,Balances!A:B,2,FALSE),"") In summary, what this says is: * If there's any error in the equation (e.g. if there's not balance date found that matches the bill date), then just leave a blank space, "". * Otherwise, take the bill date. * Look for it in the Balances table. * When you find it, get the balance in the 2nd column. * It must be an exact match (the FALSE specifies this). |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Important" Folder grabbing all incoming Mail | Jonart | Outlook | 0 | 06-09-2014 01:50 PM |
Why does Word separate table and reference endnotes by allowing text to go in between | newby2013 | Word Tables | 2 | 12-31-2012 03:45 PM |
![]() |
alvin | Word | 1 | 09-18-2012 09:02 AM |
![]() |
drhauser | Mail Merge | 2 | 12-14-2011 02:18 PM |
Any easy way to separate a Word document into separate files? | SamHelm | Word | 0 | 08-21-2010 05:29 AM |