Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hobbeson
 
Posts: n/a
Default How can I combine the functions of a vlookup and sumif without a p

It wasn't clear what the solution was from previous posts so I thought I ask
the question again.

I essentially want a function that can look at 1 column for a specific
criteria and then sum a 2nd column when the criteria is found. So for
examples

C1 C2
Red 9
Green 10
Red 2
Blue 6
Yellow 22
Red 18
Brown 23

I want something that will give me the sum of the number associated with red
but for many more data points than this.
  #2   Report Post  
PC
 
Posts: n/a
Default

=SUMIF(C1:C7,"red",D1:D7)

For more than one criteria column use (add as needed)

=SUMPRODUCT((B1:B7="something")*(C1:C7="red")*(D1: D7))

HTH

PC


"hobbeson" wrote in message
...
It wasn't clear what the solution was from previous posts so I thought I

ask
the question again.

I essentially want a function that can look at 1 column for a specific
criteria and then sum a 2nd column when the criteria is found. So for
examples

C1 C2
Red 9
Green 10
Red 2
Blue 6
Yellow 22
Red 18
Brown 23

I want something that will give me the sum of the number associated with

red
but for many more data points than this.



  #3   Report Post  
Hobbeson
 
Posts: n/a
Default

Thanks. That's perfect.

"PC" wrote:

=SUMIF(C1:C7,"red",D1:D7)

For more than one criteria column use (add as needed)

=SUMPRODUCT((B1:B7="something")*(C1:C7="red")*(D1: D7))

HTH

PC


"hobbeson" wrote in message
...
It wasn't clear what the solution was from previous posts so I thought I

ask
the question again.

I essentially want a function that can look at 1 column for a specific
criteria and then sum a 2nd column when the criteria is found. So for
examples

C1 C2
Red 9
Green 10
Red 2
Blue 6
Yellow 22
Red 18
Brown 23

I want something that will give me the sum of the number associated with

red
but for many more data points than this.




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
lookup combine vlookup with hlookup Doug Excel Worksheet Functions 2 April 23rd 23 11:42 AM
How to combine a vlookup with a sumif function!!! Mark the Shark Excel Discussion (Misc queries) 2 April 6th 05 11:54 AM
Combine VLOOKUP, IF, AND in one formula Natalie Excel Worksheet Functions 5 April 5th 05 02:32 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 12:18 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"