Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default vlookup question

Hello,
I have a spreadsheet. that has 2 columns A and B
In the A column there are numbers. and in the B column there are people
initials.
the people can be in multiple columns
can i use vlookup to add up all the numbers by a persons initals?
so:

A B
4 xx
5 xx
2 yy
8 xx
7 yy

I see I could do somthing like this
but it is an error
= VLOOKUP("xx", A11:B14, 1, FALSE)

can anyone help?
thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default vlookup question

If you want to "add up all the numbers by a person's initials", don't
use VLOOKUP at all:

=SUMIF(B4:B7,"xx",A4:A7)

Or, to get a list of everyone's sums, use a Pivot Table instead.

In article ,
"greg" wrote:

Hello,
I have a spreadsheet. that has 2 columns A and B
In the A column there are numbers. and in the B column there are people
initials.
the people can be in multiple columns
can i use vlookup to add up all the numbers by a persons initals?
so:

A B
4 xx
5 xx
2 yy
8 xx
7 yy

I see I could do somthing like this
but it is an error
= VLOOKUP("xx", A11:B14, 1, FALSE)

can anyone help?
thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default vlookup question

Try this:

= SUMIF(B1:B10,"xx",A1:A10)


"greg" wrote in message
...
Hello,
I have a spreadsheet. that has 2 columns A and B
In the A column there are numbers. and in the B column there are people
initials.
the people can be in multiple columns
can i use vlookup to add up all the numbers by a persons initals?
so:

A B
4 xx
5 xx
2 yy
8 xx
7 yy

I see I could do somthing like this
but it is an error
= VLOOKUP("xx", A11:B14, 1, FALSE)

can anyone help?
thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default vlookup question

WOW....
ok. that worked.
thought it would be the vlookup
thanks


"JE McGimpsey" wrote in message
...
If you want to "add up all the numbers by a person's initials", don't
use VLOOKUP at all:

=SUMIF(B4:B7,"xx",A4:A7)

Or, to get a list of everyone's sums, use a Pivot Table instead.

In article ,
"greg" wrote:

Hello,
I have a spreadsheet. that has 2 columns A and B
In the A column there are numbers. and in the B column there are people
initials.
the people can be in multiple columns
can i use vlookup to add up all the numbers by a persons initals?
so:

A B
4 xx
5 xx
2 yy
8 xx
7 yy

I see I could do somthing like this
but it is an error
= VLOOKUP("xx", A11:B14, 1, FALSE)

can anyone help?
thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default vlookup question

On May 11, 10:34 am, "greg" wrote:
Hello,
I have a spreadsheet. that has 2 columns A and B
In the A column there are numbers. and in the B column there are people
initials.
the people can be in multiple columns
can i use vlookup to add up all the numbers by a persons initals?
so:

A B
4 xx
5 xx
2 yy
8 xx
7 yy

I see I could do somthing like this
but it is an error
= VLOOKUP("xx", A11:B14, 1, FALSE)

can anyone help?
thanks


I'd suggest doing this. Either below all the data, or to the side,
you'll need two columns. In one column, type in the names. In the
second column, you want to use the SUMIF formula. Here's my
assumptions - the numbers for each name are in cells A2 to A12 and the
names are in cells B2 to B12. In cells A15 and down, you place all the
names you want to sum up. Next to the names, starting in cell B15,
type this formula:

=sumif($B$2:$B$12,A15,$A$2:$A$12)

Hope this helps.

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 Question MWS-C360 Excel Worksheet Functions 6 March 4th 10 09:05 PM
VLOOKUP question ssciarrino Excel Programming 3 March 12th 07 07:43 PM
VLOOKUP question duration Excel Worksheet Functions 9 July 11th 06 03:25 PM
vlookup question JR Winder Excel Programming 10 March 9th 05 02:28 PM
Vlookup question MESTRELLA29[_2_] Excel Programming 2 February 23rd 05 08:39 PM


All times are GMT +1. The time now is 02:05 PM.

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"