Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to look up value and then sum related value 1

Status
Not open for further replies.

stubnski

MIS
Nov 17, 2005
403
US
Hi Guru's,

My issue is this, I have a column of values(word1, word2, word3) in column C and numerical values in column B. I want to search Column C for a text value and then sum the related value in column B. Values for column C are single words

Ex. Column B Column C
2 Word1
5 Word2
4 Word1
1 Word3

Total:
Word1 6
Word2 5
Word3 1


Thank you for any help!
 


Hi,

Check out the COUNTIF() function.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
=SUMPRODUCT((C1:C100="word")*(B1:B100))

faq68-4725 for how it works


[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Sorry, you were wanting sums, not counts. Which version?

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 


I missed the SUM requirement, too.

Use the SUMIF() function.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks a ton. Sumif worked for what I needed. I knew it was something simple but couldn't remember what function to use. Thanks guys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top