Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark the Shark
 
Posts: n/a
Default How to combine a vlookup with a sumif function!!!

I've been trying to combine a vlookup function with a sumif function
for weeks now, however, without success.

This is my problem. Instead of looking up a single value, i.e.
=vlookup(A1, rang, 4, false), I like to do this for an entire range
and suming up that range. Something like this:
1 2 3 4 5 6
Table 1 10€ 35€ 50€ 23€ 60€ 50€
Jack 10€ 35€ 50€ 23€ 60€ 50€
Brian 10€ 35€ 50€ 23€ 60€ 50€
Juergen 10€ 35€ 50€ 23€ 60€ 50€
Feff 10€ 35€ 50€ 23€ 60€ 50€

So, I like to look-up the sum of these value without suming up these
values in table 1 and doing a vlookup on the sum.

Table 2

Feff
Juergen
Jack

I think the formula should look something like
this...=(sum(if(vlookup(Table2'A1;range;1;false)=T able2'A1;sum(range)))...I
really have no idea how excel can choose the particular row to sum up
the value. I hope this is not too confusing to you. I figured I'd
write it in English rather than German as more user can help me out on
this. I really appreciate any help. thanks you!!!
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

If you know how many columns wide the data is, then it a SUM will work for you

Let's assume row 1 has column headings and the data starts in row 2. Your
example shows 1 column of names & 6 columns of data. How about this formula

=SUM(OFFSET(B1:G1,MATCH("Jack",A2:A6,0),0,1,6))


"Mark the Shark" wrote:

I've been trying to combine a vlookup function with a sumif function
for weeks now, however, without success.

This is my problem. Instead of looking up a single value, i.e.
=vlookup(A1, rang, 4, false), I like to do this for an entire range
and suming up that range. Something like this:
1 2 3 4 5 6
Table 1 10‚¬ 35‚¬ 50‚¬ 23‚¬ 60‚¬ 50‚¬
Jack 10‚¬ 35‚¬ 50‚¬ 23‚¬ 60‚¬ 50‚¬
Brian 10‚¬ 35‚¬ 50‚¬ 23‚¬ 60‚¬ 50‚¬
Juergen 10‚¬ 35‚¬ 50‚¬ 23‚¬ 60‚¬ 50‚¬
Feff 10‚¬ 35‚¬ 50‚¬ 23‚¬ 60‚¬ 50‚¬

So, I like to look-up the sum of these value without suming up these
values in table 1 and doing a vlookup on the sum.

Table 2

Feff
Juergen
Jack

I think the formula should look something like
this...=(sum(if(vlookup(Table2'A1;range;1;false)=T able2'A1;sum(range)))...I
really have no idea how excel can choose the particular row to sum up
the value. I hope this is not too confusing to you. I figured I'd
write it in English rather than German as more user can help me out on
this. I really appreciate any help. thanks you!!!

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
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
Simplify Vlookup function in Excel Budman Excel Worksheet Functions 7 March 27th 05 04:17 PM
Vlookup w/Date Function cym Excel Worksheet Functions 1 March 25th 05 08:21 PM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM
carrying a hyper link when using the vlookup function mike Excel Worksheet Functions 1 November 19th 04 03:49 AM


All times are GMT +1. The time now is 12:07 AM.

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

About Us

"It's about Microsoft Excel"