Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default Vlookup Calculations

Hello, I would like to see if it is possible to do a calculation with a
vlookup as we have 10,000 records to sort through every Monday. This is what
my lookup looks like now: =vlookup(A2, '2-16'!$A$2:$F$10000, 4, FALSE).

Right now it just displays the first instance. But there could be as much as
a couple hundred instances so we would like to total them.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup Calculations

To total, try SUMIF,
eg in B2, copied down:
=SUMIF('2-16'!$A$2:$A$10000,A2,'2-16'!$D$2:$D$10000)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"RoadKill" wrote in message
...
Hello, I would like to see if it is possible to do a calculation with a
vlookup as we have 10,000 records to sort through every Monday. This is
what
my lookup looks like now: =vlookup(A2, '2-16'!$A$2:$F$10000, 4, FALSE).

Right now it just displays the first instance. But there could be as much
as
a couple hundred instances so we would like to total them.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Vlookup Calculations

Then you want Sumif, as in:

=sumif('2-16'!$A2:$A10000,a2,'2-16'!$D2:$D10000)

If the whole column is devoted to this data, you can shorten the formula by
using A:A and D:D which also allows you to support addtional rows without
having to change the formula.

Regards,
Fred.

"RoadKill" wrote in message
...
Hello, I would like to see if it is possible to do a calculation with a
vlookup as we have 10,000 records to sort through every Monday. This is
what
my lookup looks like now: =vlookup(A2, '2-16'!$A$2:$F$10000, 4, FALSE).

Right now it just displays the first instance. But there could be as much
as
a couple hundred instances so we would like to total them.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default Vlookup Calculations

Thank you both. Now it gets a tad bit more complicated. How about if I want
it to look up two things when doing the calculation. Essentially I want it to
match the case of A2 and then calculate for only the ones that match a
certain case in column 4.

So if A2 in sheet 2-16 equals the A2 in the current sheet, then to add the
totals of column 4 in 2-16 if column 3 in 2-16 equals 'Bill Pay'.

Does this make sense?

"RoadKill" wrote:

Hello, I would like to see if it is possible to do a calculation with a
vlookup as we have 10,000 records to sort through every Monday. This is what
my lookup looks like now: =vlookup(A2, '2-16'!$A$2:$F$10000, 4, FALSE).

Right now it just displays the first instance. But there could be as much as
a couple hundred instances so we would like to total them.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup Calculations

To total for multi-col criteria, one way is via SUMPRODUCT,

Eg in E2, copied down:
=SUMPRODUCT(('2-16'!$A$2:$A$10000=A2)*('2-16'!$C$2:$C$10000="Bill
Pay"),'2-16'!$D$2:$D$10000)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"RoadKill" wrote in message
...
Thank you both. Now it gets a tad bit more complicated. How about if I
want
it to look up two things when doing the calculation. Essentially I want it
to
match the case of A2 and then calculate for only the ones that match a
certain case in column 4.

So if A2 in sheet 2-16 equals the A2 in the current sheet, then to add the
totals of column 4 in 2-16 if column 3 in 2-16 equals 'Bill Pay'.

Does this make sense?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup Calculations RBG Excel Worksheet Functions 3 November 12th 07 03:18 PM
N/A results on vlookup with time calculations Freida Excel Worksheet Functions 4 October 22nd 07 06:09 PM
IRR Calculations Allan Excel Discussion (Misc queries) 5 October 22nd 06 06:17 PM
Help with calculations Scoooter Excel Worksheet Functions 1 June 19th 06 03:19 PM
Calculations Help! JenC Excel Discussion (Misc queries) 1 December 24th 04 09:04 AM


All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"