Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tom F
 
Posts: n/a
Default Sumproduct with a vLookup, multiple criteria

Hi All, first time poster:

I'm trying to build a formula that will return a sum of several
products, while using several criteria. This is much more in depth than
I've had to ever get before. let me try to explain what I'm doing:

On Sheet 1, I have a list of stores, and on Sheet 2 I have a list of
employees at each store. Each employee has a two job codes listed next
to their name that determines that employee's sales goal for the year.
On Sheet 3 is a table that lists the job codes (column A) and the sales
goal for that job code (column B).

So, what I want the formula to do is look on sheet 2 and identify the
employees that work in the store. I've gotten it to do a count of those
employees with this formula:

=SUMPRODUCT(('Sheet 2'!$A$2:$A$100='Sheet 1'!A7)*('Sheet
2'!$G$2:$G$100="R"))

The "R" is solely an identifier that tells me that they have a sales
goal. This is the "unimportant" job code. In the next column is a
second job code ("important") that is numeric. That numeric code
corresponds to the table on Sheet 3.

Ok, if I'm still making sense, let me finish this thought. The formula
would need to look for the Store Name, the Unimportant Job Code and the
Important Job Code on Sheet 2. once it has that information, it has to
find the goal for each employee on Sheet 3. I then want it to give me a
sum of the goals for all the employees that it found for that store.

Notes:
Sheet 1, Column A = Store Name
Sheet 2, Column A = Store Name
Sheet2, Column G = Alphabetic job code (i.e. "R")
Sheet 2, Column L = Numeric job code
Sheet3, Column A = Numeric job code
Sheet3, Column B = Annual Sales goal by job code (i.e. $100,000)

Any help or questions are definitely appreciated!!!

Tom

  #2   Report Post  
Per Erik Midtrød
 
Posts: n/a
Default

If I have understood everything correctly I would have inserted the
store name in column L (L2=A2) on Sheet2,and a third column in Sheet3
with a vlookup to return which store each numeric job code represents.
Then your formula would be:
SUMPRODUCT((Sheet2!A$2:$A14=Sheet1!A7)*(Sheet2!G$2 :G$14="R")*(Sheet3!C$2:C$14=Sheet1!A7)*(Sheet3!B2: B14))

Per Erik

On 5 May 2005 14:13:17 -0700, "Tom F" wrote:

Hi All, first time poster:

I'm trying to build a formula that will return a sum of several
products, while using several criteria. This is much more in depth than
I've had to ever get before. let me try to explain what I'm doing:

On Sheet 1, I have a list of stores, and on Sheet 2 I have a list of
employees at each store. Each employee has a two job codes listed next
to their name that determines that employee's sales goal for the year.
On Sheet 3 is a table that lists the job codes (column A) and the sales
goal for that job code (column B).

So, what I want the formula to do is look on sheet 2 and identify the
employees that work in the store. I've gotten it to do a count of those
employees with this formula:

=SUMPRODUCT(('Sheet 2'!$A$2:$A$100='Sheet 1'!A7)*('Sheet
2'!$G$2:$G$100="R"))

The "R" is solely an identifier that tells me that they have a sales
goal. This is the "unimportant" job code. In the next column is a
second job code ("important") that is numeric. That numeric code
corresponds to the table on Sheet 3.

Ok, if I'm still making sense, let me finish this thought. The formula
would need to look for the Store Name, the Unimportant Job Code and the
Important Job Code on Sheet 2. once it has that information, it has to
find the goal for each employee on Sheet 3. I then want it to give me a
sum of the goals for all the employees that it found for that store.

Notes:
Sheet 1, Column A = Store Name
Sheet 2, Column A = Store Name
Sheet2, Column G = Alphabetic job code (i.e. "R")
Sheet 2, Column L = Numeric job code
Sheet3, Column A = Numeric job code
Sheet3, Column B = Annual Sales goal by job code (i.e. $100,000)

Any help or questions are definitely appreciated!!!

Tom


  #3   Report Post  
Tom F
 
Posts: n/a
Default

Per, thanks for responding.
Actually, the numeric job code represents the employee, not the store.
For example, at Walmart you might find that a cashier is given the job
code "Cash", but each cashier may be paid differently on a scale. The
numeric number would indicate what pay level each "Cash" was. "Cash" at
job level 29 = $20,000, and "Cash" at level 31 = $23,000.

I'm really trying to do this to learn these functions, and to avoid
cutting and pasting any columns. I'd like to build a function that
would do all the referencing for me.

Thanks for your input. I appreciate it!!

  #4   Report Post  
Tom F
 
Posts: n/a
Default

Can anyone help me with this? Thanks!

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
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
sumproduct using multiple criteria tifosi3 Excel Worksheet Functions 2 January 6th 05 08:46 PM
Sumproduct - multiple criteria in Column A briank Excel Worksheet Functions 2 January 6th 05 06:44 PM
VlookUp with Multiple Criteria? Arturo Excel Worksheet Functions 3 December 20th 04 06:59 PM
Multiple Vlookup? changeable Excel Worksheet Functions 0 November 9th 04 11:52 AM


All times are GMT +1. The time now is 03:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"