If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > VLookup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-06, 17:05
bailee220 bailee220 is offline
Registered User
 
Join Date: Oct 2003
Posts: 29
VLookup

Can you have a vlookup inside a vlookup? I'm trying to find in a table of data, where more than one thing is equal, and then I want to add or sum those values up.
Reply With Quote
  #2 (permalink)  
Old 02-22-06, 19:25
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
bailee220,

There will be a way, though not VLOOKUP inside another VLOOKUP. VLOOKUP returns a single value.

Depending on if the data is sorted, maybe an OFFSET & COUNTIF could refer to the summation range. OFFSET is volatile. If you have many thousands of these it may not be too efficient. And working across worksheets is also not optimally efficient.

Have you considered a query table - you could do the hard work in SQL - very smart. And/or a pivot table?

Or SUMIF, maybe also using COUNTIF. Maybe use DSUM, etc.

Or even VBA coding.

There are probably many ways. Depends on your requirements.

Hope that gives you enough leads.

If you want more specific suggestions, please post details of your requirements.

regards,
Fazza
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On