Suming up a Lookup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to take a word and sum up from a different spread sheet that has
a list of words and amounts in the cell next to the word. I want a cell that
will find that word in the list and sum up the amounts that are next to that
word every time it comes up. There is examples below. How ever my list is
going to be a lot longer, just need an equation to get started.

For example my list would be:
A B
1 Upgrade 305
2 Saftey 210
3 Upgrade 195
4 Upgrade 150
5 Saftey 100
6 Added Life 200
7 Total 1,160

I am trying to get a Cell on another Page to display the totals of each,
example:
A B
1 Upgrade 650
2 Saftey 310
3 Added Life 200
4 Total 1,160


Thanks anyone that can help
 
=sumproduct(--(Sheet1!A1:A1000="Upgrade"),Sheet1!B1:B1000)

ought to do it for you
 
Let A1:B7 on Sheet1 house data.

In B1 on Sheet2 enter & copy down:

=SUMIF(Sheet1!$A$1:$A$7,A1,Sheet1!$B$1:$B$7)
I am trying to take a word and sum up from a different spread sheet that has
a list of words and amounts in the cell next to the word. I want a cell that
will find that word in the list and sum up the amounts that are next to that
word every time it comes up. There is examples below. How ever my list is
going to be a lot longer, just need an equation to get started.

For example my list would be:
A B
1 Upgrade 305
2 Saftey 210
3 Upgrade 195
4 Upgrade 150
5 Saftey 100
6 Added Life 200
7 Total 1,160

I am trying to get a Cell on another Page to display the totals of each,
example:
A B
1 Upgrade 650
2 Saftey 310
3 Added Life 200
4 Total 1,160


Thanks anyone that can help

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top