ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   vlookup search for more then one answer (https://www.excelbanter.com/excel-discussion-misc-queries/33279-vlookup-search-more-then-one-answer.html)

Gemse

vlookup search for more then one answer
 
i want to create a formula that will add up all the results for the same
person in question. i'm thinking it should be a vlookup formula.

so on jun 29 john sold 3 phones; on june 3 john sold 2 phones.

worksheet one cell a1, john's name, cell b1, total number of sales.

worksheet two, cell a1, john's name, cell b1, date, cell c1 total sales.

how do i make the formula read all the johns and give me the sum of all the
sales?

thanks lots,

bj

do you want a Sum of the sales or a list of the sales
if you just need a sum, look at the sumif() function
=sumif(namelist,name,saleslist)

if there are several sheets it can be on just add a sumif function for each
sheet

"Gemse" wrote:

i want to create a formula that will add up all the results for the same
person in question. i'm thinking it should be a vlookup formula.

so on jun 29 john sold 3 phones; on june 3 john sold 2 phones.

worksheet one cell a1, john's name, cell b1, total number of sales.

worksheet two, cell a1, john's name, cell b1, date, cell c1 total sales.

how do i make the formula read all the johns and give me the sum of all the
sales?

thanks lots,


Gemse

that's great! that's just the thing i was looking for.

"bj" wrote:

do you want a Sum of the sales or a list of the sales
if you just need a sum, look at the sumif() function
=sumif(namelist,name,saleslist)

if there are several sheets it can be on just add a sumif function for each
sheet

"Gemse" wrote:

i want to create a formula that will add up all the results for the same
person in question. i'm thinking it should be a vlookup formula.

so on jun 29 john sold 3 phones; on june 3 john sold 2 phones.

worksheet one cell a1, john's name, cell b1, total number of sales.

worksheet two, cell a1, john's name, cell b1, date, cell c1 total sales.

how do i make the formula read all the johns and give me the sum of all the
sales?

thanks lots,



All times are GMT +1. The time now is 07:49 AM.

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