Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 131
Default sumproduct with text

Hi,

I have Ref# in col A, Names in Col B and Designation in col C.. Both Col B &
C are text

I tried below formula to lookup both Col A & B and get Col C, but the result
i'm getting is 0

I tried same formula with numbers which worked fine..

=SUMPRODUCT(--(N22=A2:A30),--(Q22=B2:B30),C2:C30)

Can anyone help me out with this pls..

Thanks..
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default sumproduct with text

Hi,

Try the following:

=INDEX($A$2:$C$10,MATCH(1,($A$2:$A$10=E2)*($B$2:$B $10=F2),0),3)
--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Kashyap" wrote in message
...
Sorry Gary.. I'm not getting the expected result

Col A Col B Col C
123 | ABC | Manager
524 | SDF | Clerk
268 | FHE | Asst
458 | HTL | Clerk
123 | KIT | Clerk
467 | NIT | CSR
231 | GET | CSR
254 | BAT | CSR
268 | CAT | CSR

In the above table I have Ref# 123 (Col A) common for 'ABC' & 'KIT' (Col
B)

In E2 I'll enter ref#, In F2 I'll enter Name and I should get designation
in
G2

If in F2 I enter ABC, then I should get Manager in G2
If I enter KIT in F2, then I should get clerk in G2


Pls help..



"Gary Brown" wrote:

'============================================
'Forumla Example 1:
'Using actual values as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17="John")*--(C12:C17="Nov")),0)}
' or
'Forumla Example 2:
'Using cell references as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17=A6)*--(C12:C17=A7)),0)}
'
' - Remember to use CTRL-SHIFT-ENTER to make the formula an array
' showing the '{' and "}" at the beginning and ending of the
formula
'
'Note: Just as VLOOKUP will give you the FIRST value it finds that meets
it's
' criteria, this formul will give you the LAST value it finds that
meets
' all of it's criteria.
'
'============================================
--
------------
Hope This helps,
Sincerely,
Gary Brown



"Kashyap" wrote:

Hi,

I have Ref# in col A, Names in Col B and Designation in col C.. Both
Col B &
C are text

I tried below formula to lookup both Col A & B and get Col C, but the
result
i'm getting is 0

I tried same formula with numbers which worked fine..

=SUMPRODUCT(--(N22=A2:A30),--(Q22=B2:B30),C2:C30)

Can anyone help me out with this pls..

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
sumproduct with text Teethless mama Excel Worksheet Functions 0 February 26th 09 04:09 PM
2 criteria lookup of text. Return text form column 3. SUMPRODUCT t zzxxcc Excel Worksheet Functions 2 August 26th 08 11:04 PM
maybe by sumproduct or some other way with text. driller Excel Worksheet Functions 4 June 5th 07 08:54 AM
Sumproduct Text tamato43 Excel Discussion (Misc queries) 1 June 5th 05 04:48 PM
SUMPRODUCT vs Text??? Ken Excel Worksheet Functions 2 April 9th 05 07:21 PM


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