Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Return matched value 2 criteria

Hi,

I'm tying myself up in knots trying to get this to work.

I have employee test data in a single sheet.

K is a helper column with a unique number identifying the employee. M is the
Test and p is the result (1-5)

I would like to be able to set up a formula so that data stored in P can be
matched with employee in rows.

eg
Col A Col M Col P
Robert test 1 result 5
Robert test 2 result 4
Robert test 3 result 5

Emp test1 test 2 test 3
Change to Robert 5 4 5

Sorry I know not very clear
--
Deirdre
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Return matched value 2 criteria

Diddy,

Select your data table, then use Data / Pivot Table.... and click Finish.

Then drag the heading from column A to the Row area, column M to the Column Area, and Result to the
data area.

HTH,
Bernie
MS Excel MVP


"Diddy" wrote in message
...
Hi,

I'm tying myself up in knots trying to get this to work.

I have employee test data in a single sheet.

K is a helper column with a unique number identifying the employee. M is the
Test and p is the result (1-5)

I would like to be able to set up a formula so that data stored in P can be
matched with employee in rows.

eg
Col A Col M Col P
Robert test 1 result 5
Robert test 2 result 4
Robert test 3 result 5

Emp test1 test 2 test 3
Change to Robert 5 4 5

Sorry I know not very clear
--
Deirdre



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Return matched value 2 criteria

Hi Bernie,

Very neat :-) I've never used pivot tables before and not as scary as I
thought

I will probably use Shane's formula for this one but will definitely be
using pivot tables again.

Cheers
Diddy
--
Deirdre


"Bernie Deitrick" wrote:

Diddy,

Select your data table, then use Data / Pivot Table.... and click Finish.

Then drag the heading from column A to the Row area, column M to the Column Area, and Result to the
data area.

HTH,
Bernie
MS Excel MVP


"Diddy" wrote in message
...
Hi,

I'm tying myself up in knots trying to get this to work.

I have employee test data in a single sheet.

K is a helper column with a unique number identifying the employee. M is the
Test and p is the result (1-5)

I would like to be able to set up a formula so that data stored in P can be
matched with employee in rows.

eg
Col A Col M Col P
Robert test 1 result 5
Robert test 2 result 4
Robert test 3 result 5

Emp test1 test 2 test 3
Change to Robert 5 4 5

Sorry I know not very clear
--
Deirdre




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Return matched value 2 criteria

Hi,

A pivot table is a nice solution or if you want to use a formula

=SUMPRODUCT(--($M$2:$M$100=E$1),--($K$2:$K$100=$D2),$P$2:$P$100)

Where the test names are listed in E1:G1 for example, the persons identifier
is in D2 the formula above would go into E2 and be copied down and to the
right as far as necessary.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Diddy" wrote:

Hi,

I'm tying myself up in knots trying to get this to work.

I have employee test data in a single sheet.

K is a helper column with a unique number identifying the employee. M is the
Test and p is the result (1-5)

I would like to be able to set up a formula so that data stored in P can be
matched with employee in rows.

eg
Col A Col M Col P
Robert test 1 result 5
Robert test 2 result 4
Robert test 3 result 5

Emp test1 test 2 test 3
Change to Robert 5 4 5

Sorry I know not very clear
--
Deirdre

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Return matched value 2 criteria

Hi Shane,

The formula worked brilliantly. Would it work for text formats, I'm guessing
not - but haven't seen sumproduct used like this before.

Thank you so much :-)
--
Deirdre


"Shane Devenshire" wrote:

Hi,

A pivot table is a nice solution or if you want to use a formula

=SUMPRODUCT(--($M$2:$M$100=E$1),--($K$2:$K$100=$D2),$P$2:$P$100)

Where the test names are listed in E1:G1 for example, the persons identifier
is in D2 the formula above would go into E2 and be copied down and to the
right as far as necessary.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Diddy" wrote:

Hi,

I'm tying myself up in knots trying to get this to work.

I have employee test data in a single sheet.

K is a helper column with a unique number identifying the employee. M is the
Test and p is the result (1-5)

I would like to be able to set up a formula so that data stored in P can be
matched with employee in rows.

eg
Col A Col M Col P
Robert test 1 result 5
Robert test 2 result 4
Robert test 3 result 5

Emp test1 test 2 test 3
Change to Robert 5 4 5

Sorry I know not very clear
--
Deirdre



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
Return Formula results to specific row of matched criteria Sam via OfficeKB.com Excel Worksheet Functions 3 September 10th 07 11:08 PM
Return Matched Numeric Labels across Single Row Sam via OfficeKB.com Excel Worksheet Functions 4 January 5th 07 11:31 PM
Return Matched Numeric Values across Rows Sam via OfficeKB.com Excel Worksheet Functions 2 January 2nd 07 11:03 PM
Return Title to matched column [email protected] New Users to Excel 1 February 21st 06 06:04 AM
How to compare 2 lists and return un-matched? RWR Excel Worksheet Functions 1 February 15th 05 10:25 PM


All times are GMT +1. The time now is 09:31 AM.

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"