Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Lookup multiple columns

Hi

I have a worksheet that conatins about 1000 rows. It looks something like:-

RTM, Manager, Status

Amy, Danny, Closed
Amy, John, Open
Amy, Danny, Open
Amy, Karen, Close
Steve, Danny, Open
Steve, Danny, Open
Steve, Danny, Closed
Steve, Karen, Open.

I want to be able to run a macro/worksheet function that will output
RTM, Manager, Qty Closed

Amy, Danny,1
Amy John, 0
Amy, Karen, 1
Steve, Danny, 1
Steve, Karen, 0

I was thinking of using LOOKUP for the RTM but as far as I am aware this
will only count the number of closed for Amy but not differentiate between
Danny and Karen. Has anyone any ideas?
Thanks
TJ


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Lookup multiple columns

try
=sumproduct(--(rtm_range="Amy"),--(manager_range="Danny"))
the "--(" changes the logical true false to a numeric 1 0
Also you cannot reference an entire column in sumproduct()



"TJ" wrote:

Hi

I have a worksheet that conatins about 1000 rows. It looks something like:-

RTM, Manager, Status

Amy, Danny, Closed
Amy, John, Open
Amy, Danny, Open
Amy, Karen, Close
Steve, Danny, Open
Steve, Danny, Open
Steve, Danny, Closed
Steve, Karen, Open.

I want to be able to run a macro/worksheet function that will output
RTM, Manager, Qty Closed

Amy, Danny,1
Amy John, 0
Amy, Karen, 1
Steve, Danny, 1
Steve, Karen, 0

I was thinking of using LOOKUP for the RTM but as far as I am aware this
will only count the number of closed for Amy but not differentiate between
Danny and Karen. Has anyone any ideas?
Thanks
TJ



  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 812
Default Lookup multiple columns

Copy the 2 columns of names somewhere below them. On the copied names
use the menu Data | Advanced Filter, selecting "Unique records only."
Then use bj's formula with cell addresses in place of the hard-coded
names, and a 3rd argument for "Closed".

Hth,
Merjet


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
Lookup Value in Multiple Columns Hardeep kanwar[_2_] Excel Worksheet Functions 1 November 1st 09 06:00 AM
Lookup between multiple columns Mickey Excel Worksheet Functions 3 August 20th 08 10:06 PM
Lookup across multiple columns within multiple sheets Garnet Excel Discussion (Misc queries) 2 June 25th 08 11:46 PM
lookup using multiple columns mario Excel Worksheet Functions 7 December 17th 07 06:53 AM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM


All times are GMT +1. The time now is 12:03 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"