PC Review


Reply
Thread Tools Rate Thread

2 criteria lookup of text. Return text form column 3. SUMPRODUCT t

 
 
zzxxcc
Guest
Posts: n/a
 
      26th Aug 2008
Hi
Can I use SUMPRODUCT to lookup two criteria text values in sheet1, cell
A2:A100 and B2:B100 and return the text from C2:C100? The formula will be in
sheet2, A4:C4. One criteria in sheet2, $A$1 and the rest in sheet2, A4:A100.
Filtering and pivot tables won't do.

Example sheet1:
A: B: C:
Job status Work-area Job status
Running Office Some work left
Stopped Workshop All done
Running Warehouse Missing one item
....

Result in sheet 2:
A: B: C:
Running

Office: Warehouse: Workshop:
Some work left Missing one item

Maybe I need to use MATCH and INDEX? I also tried to combine two columns
into one and then use VLOOKUP. Didn't work. Any help will be appreciated.
--
Thanks
John
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      26th Aug 2008
=INDEX(Sheet1!C:C,MATCH(1,(Sheet1!$A$2:$A$200=A1)*(Sheet1!$B$2:$B$200=B1),0))

this is an array formula, so ciomiit with Ctrl-Shift-Enter, not just Enter.

--
__________________________________
HTH

Bob

"zzxxcc" <(E-Mail Removed)> wrote in message
news:7E9F6A6A-CCE2-4EBF-9D2F-(E-Mail Removed)...
> Hi
> Can I use SUMPRODUCT to lookup two criteria text values in sheet1, cell
> A2:A100 and B2:B100 and return the text from C2:C100? The formula will be
> in
> sheet2, A4:C4. One criteria in sheet2, $A$1 and the rest in sheet2,
> A4:A100.
> Filtering and pivot tables won't do.
>
> Example sheet1:
> A: B: C:
> Job status Work-area Job status
> Running Office Some work left
> Stopped Workshop All done
> Running Warehouse Missing one item
> ...
>
> Result in sheet 2:
> A: B: C:
> Running
>
> Office: Warehouse: Workshop:
> Some work left Missing one item
>
> Maybe I need to use MATCH and INDEX? I also tried to combine two columns
> into one and then use VLOOKUP. Didn't work. Any help will be appreciated.
> --
> Thanks
> John



 
Reply With Quote
 
zzxxcc
Guest
Posts: n/a
 
      26th Aug 2008
Bob,
My mistake: The criteria No.1 is in sheet2, $A$1 and the rest in sheet2,
A3:BJ3. (A3:C3 for this example, but the table actually extend beyond col.C).

I adjusted accordingly, entered with ctrl+shift+enter , but still it didn't
work.
--
Thanks
John

"Bob Phillips" wrote:

> =INDEX(Sheet1!C:C,MATCH(1,(Sheet1!$A$2:$A$200=A1)*(Sheet1!$B$2:$B$200=B1),0))
>
> this is an array formula, so ciomiit with Ctrl-Shift-Enter, not just Enter.
>
> --
> __________________________________
> HTH
>
> Bob
>
> "zzxxcc" <(E-Mail Removed)> wrote in message
> news:7E9F6A6A-CCE2-4EBF-9D2F-(E-Mail Removed)...
> > Hi
> > Can I use SUMPRODUCT to lookup two criteria text values in sheet1, cell
> > A2:A100 and B2:B100 and return the text from C2:C100? The formula will be
> > in
> > sheet2, A4:C4. One criteria in sheet2, $A$1 and the rest in sheet2,
> > A4:A100.
> > Filtering and pivot tables won't do.
> >
> > Example sheet1:
> > A: B: C:
> > Job status Work-area Job status
> > Running Office Some work left
> > Stopped Workshop All done
> > Running Warehouse Missing one item
> > ...
> >
> > Result in sheet 2:
> > A: B: C:
> > Running
> >
> > Office: Warehouse: Workshop:
> > Some work left Missing one item
> >
> > Maybe I need to use MATCH and INDEX? I also tried to combine two columns
> > into one and then use VLOOKUP. Didn't work. Any help will be appreciated.
> > --
> > Thanks
> > John

>
>
>

 
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
Lookup Text and Receive Other Text in Return klmiura Microsoft Excel Worksheet Functions 3 6th Jan 2010 11:24 PM
Return text using Sumproduct deeds Microsoft Excel Worksheet Functions 9 12th Jun 2008 03:20 PM
Sumproduct to return a text =?Utf-8?B?Q2hhbmNldXhicA==?= Microsoft Excel Worksheet Functions 5 25th Sep 2007 04:12 PM
LOOKUP text return text jamie.cutting@mouchelparkman.com Microsoft Excel Worksheet Functions 5 22nd May 2007 06:38 PM
lookup a text cell and return text =?Utf-8?B?Q3Jpc3RpIFI=?= Microsoft Excel Misc 4 2nd Aug 2006 02:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:30 PM.