ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   VLOOKUP - search key is more than once available (https://www.excelbanter.com/excel-worksheet-functions/230816-vlookup-search-key-more-than-once-available.html)

MCFD

VLOOKUP - search key is more than once available
 
I am trying to total all amounts for 1 specific key in one cell.

Example:
search key is "boy" in a table. Since this key is used various in this
specific table (not sorted) the outcome of VLOOKUP should total all amounts
that match "boy".

Currently I only got the first match, but all other "boys" are ignored (not
totaled).

Does someone have the answer?

OssieMac

VLOOKUP - search key is more than once available
 
Without an example of your data and what result you expect it is a bit hard
to visualize exactly what you need. However, it appears that you want to sum
some data based on criteria so lookup SUMIF and SUMIFS in help. They might do
what you want.

--
Regards,

OssieMac


"MCFD" wrote:

I am trying to total all amounts for 1 specific key in one cell.

Example:
search key is "boy" in a table. Since this key is used various in this
specific table (not sorted) the outcome of VLOOKUP should total all amounts
that match "boy".

Currently I only got the first match, but all other "boys" are ignored (not
totaled).

Does someone have the answer?


MCFD

VLOOKUP - search key is more than once available
 
SUMIF works perfect, Thanks!

"OssieMac" wrote:

Without an example of your data and what result you expect it is a bit hard
to visualize exactly what you need. However, it appears that you want to sum
some data based on criteria so lookup SUMIF and SUMIFS in help. They might do
what you want.

--
Regards,

OssieMac


"MCFD" wrote:

I am trying to total all amounts for 1 specific key in one cell.

Example:
search key is "boy" in a table. Since this key is used various in this
specific table (not sorted) the outcome of VLOOKUP should total all amounts
that match "boy".

Currently I only got the first match, but all other "boys" are ignored (not
totaled).

Does someone have the answer?



All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com