Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 07-23-2014, 11:42 AM
gebobs gebobs is offline 'grabbing' a sum from a separate table Windows 7 64bit 'grabbing' a sum from a separate table Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

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).
Reply With Quote
 



Similar Threads
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
'grabbing' a sum from a separate table Columns - separate management alvin Word 1 09-18-2012 09:02 AM
'grabbing' a sum from a separate table Can I use the filter function to separate letters into separate files? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 12:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft