PC Review


Reply
Thread Tools Rate Thread

Lookup Problem Matching on Two Criteria

 
 
Mike
Guest
Posts: n/a
 
      27th Mar 2007
I have a lookup/match problem that I cannot seem to get a solution to.
I am assuming I can use a combination IF statement with a nested
VLOOKUP but it's not coming to me.

I have a table with three columns. Column A has values S01 to S08.
Column B has unique values but are associated with the values in
column A. Column C has the target values I am trying to populate in a
cell.

So the problem is that I need to match a Column A value with a column
B value to find the answer in column C. Please note that the values in
Column A are duplicated multiple times depending on their relationship
to the values in column B.

Any suggestions would be appreciated. Thanks.

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      27th Mar 2007
=INDEX(C1:C100,MATCH(1,(A1:A100="S01")*(B1:B100="xxx"),0))

it is an array formula, so commit with Ctrl-Shift-Enter, not just Enter

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a lookup/match problem that I cannot seem to get a solution to.
> I am assuming I can use a combination IF statement with a nested
> VLOOKUP but it's not coming to me.
>
> I have a table with three columns. Column A has values S01 to S08.
> Column B has unique values but are associated with the values in
> column A. Column C has the target values I am trying to populate in a
> cell.
>
> So the problem is that I need to match a Column A value with a column
> B value to find the answer in column C. Please note that the values in
> Column A are duplicated multiple times depending on their relationship
> to the values in column B.
>
> Any suggestions would be appreciated. Thanks.
>



 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      27th Mar 2007
Mike,

If the values in column C are numeric:

=SUMPRODUCT((A1:A100="S01")*(B1:B100="Whatever")*C1:C100)

If they are strings:

=INDEX(C1:C100,SUMPRODUCT((A1:A100="S01")*(B1:B100="Whatever")*ROW(C1:C100)))

HTH,
Bernie
MS Excel MVP


"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a lookup/match problem that I cannot seem to get a solution to.
> I am assuming I can use a combination IF statement with a nested
> VLOOKUP but it's not coming to me.
>
> I have a table with three columns. Column A has values S01 to S08.
> Column B has unique values but are associated with the values in
> column A. Column C has the target values I am trying to populate in a
> cell.
>
> So the problem is that I need to match a Column A value with a column
> B value to find the answer in column C. Please note that the values in
> Column A are duplicated multiple times depending on their relationship
> to the values in column B.
>
> Any suggestions would be appreciated. Thanks.
>



 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      27th Mar 2007
On Mar 27, 12:16 pm, "Bernie Deitrick" <deitbe @ consumer dot org>
wrote:
> Mike,
>
> If the values in column C are numeric:
>
> =SUMPRODUCT((A1:A100="S01")*(B1:B100="Whatever")*C1:C100)
>
> If they are strings:
>
> =INDEX(C1:C100,SUMPRODUCT((A1:A100="S01")*(B1:B100="Whatever")*ROW(C1:C100)*))
>
> HTH,
> Bernie
> MS Excel MVP
>
> "Mike" <NbrCrunc...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> >I have a lookup/match problem that I cannot seem to get a solution to.
> > I am assuming I can use a combination IF statement with a nested
> > VLOOKUP but it's not coming to me.

>
> > I have a table with three columns. Column A has values S01 to S08.
> > Column B has unique values but are associated with the values in
> > column A. Column C has the target values I am trying to populate in a
> > cell.

>
> > So the problem is that I need to match a Column A value with a column
> > B value to find the answer in column C. Please note that the values in
> > Column A are duplicated multiple times depending on their relationship
> > to the values in column B.

>
> > Any suggestions would be appreciated. Thanks.- Hide quoted text -

>
> - Show quoted text -


Thank you for your answers, however I get errors in both cases which
may have to do with me not making the problem clear enough.

I have a column in a report which I want to populate with a numeric
value contained in a different worksheet(tab). The source worksheet
has three columns (A,B,C). Column A is alpha-numeric with duplicative
values. Column's B & C are numeric. Column B has unique values but
they have to correspond to a value in column A in order to get the
right answer in column C.

i.e.
Record1 - ColumnA(S01) ColumnB(29) ColumnC(125)
Record2 - ColumnA(S01) ColumnB(14) ColumnC(535)
Record3 - ColumnA(S02) CoulmnB(71) ColumnC(55)

My formula should determine that record 2 has the right combination
(S01 + 14) in order to arrive at the answer (535). Does this make more
sense?

In my report, the formula would have to evaluate the contents of a
column with data in ColumnA and match that to the contents of a column
containing values in columnB in order to get the answer for that
unique combination found in column C.

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      27th Mar 2007
This should work - no quotes needed since column B in numeric:

=SUMPRODUCT((A1:A100="S01")*(B1:B100=14)*C1:C100)


HTH,
Bernie
MS Excel MVP

Thank you for your answers, however I get errors in both cases which
may have to do with me not making the problem clear enough.

I have a column in a report which I want to populate with a numeric
value contained in a different worksheet(tab). The source worksheet
has three columns (A,B,C). Column A is alpha-numeric with duplicative
values. Column's B & C are numeric. Column B has unique values but
they have to correspond to a value in column A in order to get the
right answer in column C.

i.e.
Record1 - ColumnA(S01) ColumnB(29) ColumnC(125)
Record2 - ColumnA(S01) ColumnB(14) ColumnC(535)
Record3 - ColumnA(S02) CoulmnB(71) ColumnC(55)

My formula should determine that record 2 has the right combination
(S01 + 14) in order to arrive at the answer (535). Does this make more
sense?

In my report, the formula would have to evaluate the contents of a
column with data in ColumnA and match that to the contents of a column
containing values in columnB in order to get the answer for that
unique combination found in column C.


 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      27th Mar 2007
On Mar 27, 12:58 pm, "Bernie Deitrick" <deitbe @ consumer dot org>
wrote:
> This should work - no quotes needed since column B in numeric:
>
> =SUMPRODUCT((A1:A100="S01")*(B1:B100=14)*C1:C100)
>
> HTH,
> Bernie
> MS Excel MVP
>
> Thank you for your answers, however I get errors in both cases which
> may have to do with me not making the problem clear enough.
>
> I have a column in a report which I want to populate with a numeric
> value contained in a different worksheet(tab). The source worksheet
> has three columns (A,B,C). Column A is alpha-numeric with duplicative
> values. Column's B & C are numeric. Column B has unique values but
> they have to correspond to a value in column A in order to get the
> right answer in column C.
>
> i.e.
> Record1 - ColumnA(S01) ColumnB(29) ColumnC(125)
> Record2 - ColumnA(S01) ColumnB(14) ColumnC(535)
> Record3 - ColumnA(S02) CoulmnB(71) ColumnC(55)
>
> My formula should determine that record 2 has the right combination
> (S01 + 14) in order to arrive at the answer (535). Does this make more
> sense?
>
> In my report, the formula would have to evaluate the contents of a
> column with data in ColumnA and match that to the contents of a column
> containing values in columnB in order to get the answer for that
> unique combination found in column C.


Thanks Bernie. That worked. I now have learned a new way to use
SumProduct.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Four criteria MATCH INDEX lookup of date between matching two text John_J Microsoft Excel Worksheet Functions 9 23rd Sep 2008 02:33 PM
Join Query Problem for matching criteria, PLEASE help =?Utf-8?B?SWFuIFcu?= Microsoft Access Queries 2 17th Nov 2006 02:12 PM
matching and lookup?? =?Utf-8?B?ZW9odA==?= Microsoft Excel Worksheet Functions 3 11th Nov 2005 02:51 AM
RE: matching and lookup?? =?Utf-8?B?RHVrZSBDYXJleQ==?= Microsoft Excel Worksheet Functions 0 10th Nov 2005 09:55 PM
Matching / lookup problem Nick Microsoft Excel Worksheet Functions 3 13th Jan 2004 08:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:37 AM.