Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 230
Default Finding text using multiple criteria

Is it possible to use something like this formula, amended as required, to
have it display the text from the cell where the first two parts of the
formula are true?
=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370)
Or is something totally different needed? Could someone please show what
the formula would need to be?

Rob


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Finding text using multiple criteria

Try this array formula** :

=INDEX(WorkSheet!P1:P370,MATCH(1,(WorkSheet!A1:A37 0=B9)*(WorkSheet!C1:C370=C9),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"RobN" wrote in message
...
Is it possible to use something like this formula, amended as required, to
have it display the text from the cell where the first two parts of the
formula are true?
=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370)
Or is something totally different needed? Could someone please show what
the formula would need to be?

Rob



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 230
Default Finding text using multiple criteria

Thanks Biff. Worked great!!

I Just added an IfError to get......
=IFERROR(INDEX(WorkSheet!$V$1:$V$370,MATCH(1,(Work Sheet!$A$1:$A$370=B9)*(WorkSheet!$C$1:$C$370=C9),0 )),)
Rob

"T. Valko" wrote in message
...
Try this array formula** :

=INDEX(WorkSheet!P1:P370,MATCH(1,(WorkSheet!A1:A37 0=B9)*(WorkSheet!C1:C370=C9),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"RobN" wrote in message
...
Is it possible to use something like this formula, amended as required,
to have it display the text from the cell where the first two parts of
the formula are true?
=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370)
Or is something totally different needed? Could someone please show what
the formula would need to be?

Rob





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Finding text using multiple criteria

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"RobN" wrote in message
...
Thanks Biff. Worked great!!

I Just added an IfError to get......
=IFERROR(INDEX(WorkSheet!$V$1:$V$370,MATCH(1,(Work Sheet!$A$1:$A$370=B9)*(WorkSheet!$C$1:$C$370=C9),0 )),)
Rob

"T. Valko" wrote in message
...
Try this array formula** :

=INDEX(WorkSheet!P1:P370,MATCH(1,(WorkSheet!A1:A37 0=B9)*(WorkSheet!C1:C370=C9),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"RobN" wrote in message
...
Is it possible to use something like this formula, amended as required,
to have it display the text from the cell where the first two parts of
the formula are true?
=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370)
Or is something totally different needed? Could someone please show
what the formula would need to be?

Rob







  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 230
Default Finding text using multiple criteria

Biff,

Are you able to explain why this formula is an array formula
=INDEX(WorkSheet!$V$1:$V$370,MATCH(1,(WorkSheet!$A $1:$A$370=B9)*(WorkSheet!$C$1:$C$370=C9),0))

AND

why this one is not?
=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370)I don't really understand arrays so your explanation using these examplesmay help.Rob"T. Valko" wrote in .. . You're welcome. Thanks for the feedback! -- Biff Microsoft Excel MVP "RobN" wrote in ... Thanks Biff. Worked great!! I Just added an IfError to get......=IFERROR(INDEX(WorkSheet!$V$1:$V$370,MA TCH(1,(WorkSheet!$A$1:$A$370=B9)*(WorkSheet!$C$1:$ C$370=C9),0)),) Rob "T. Valko" wrote in . .. Try this array formula** :=INDEX(WorkSheet!P1:P370,MATCH(1,(WorkSheet !A1:A370=B9)*(WorkSheet!C1:C370=C9),0)) ** array formulas need to be entered using the key combination ofCTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "RobN" wrote in . .. Is it possible to use something like this formula, amended as required,to have it display the text from the cell where the first two parts of theformula are true?=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370) Or is something totally different needed? Could someone please showwhat the formula would need to be? Rob



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Finding text using multiple criteria

Technically, *both* formulas are formulas that work with (manipulate)
arrays. The difference is that the INDEX formula needs to be array entered
(CTRL, SHIFT, ENTER) while the SUMPRODUCT formula does not.

The programmer that developed the SUMPRODUCT function wrote this array
processing functionality directly into the function code. The INDEX formula
could also be written in such a way that it does not need to be array
entered:

=INDEX(rng1,MATCH(1,INDEX((rng2="x")*(rng3="y"),,1 ),0))

See if this helps:

http://www.cpearson.com/Excel/ArrayFormulas.aspx



--
Biff
Microsoft Excel MVP


"RobN" wrote in message
...
Biff,

Are you able to explain why this formula is an array formula
=INDEX(WorkSheet!$V$1:$V$370,MATCH(1,(WorkSheet!$A $1:$A$370=B9)*(WorkSheet!$C$1:$C$370=C9),0))

AND

why this one is not?
=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370)I
don't really understand arrays so your explanation using these examplesmay
help.Rob"T. Valko" wrote in
.. . You're welcome.
Thanks for the feedback! -- Biff Microsoft Excel MVP "RobN"
wrote in
... Thanks Biff.
Worked great!! I Just added an IfError to
get......=IFERROR(INDEX(WorkSheet!$V$1:$V$370,MA TCH(1,(WorkSheet!$A$1:$A$370=B9)*(WorkSheet!$C$1:$ C$370=C9),0)),)
Rob "T. Valko" wrote in
. .. Try this array
formula**
:=INDEX(WorkSheet!P1:P370,MATCH(1,(WorkSheet !A1:A370=B9)*(WorkSheet!C1:C370=C9),0))
** array formulas need to be entered using the key combination
ofCTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel
MVP "RobN" wrote in
. .. Is it possible to
use something like this formula, amended as required,to have it display
the text from the cell where the first two parts of theformula are
true?=SUMPRODUCT(--(WorkSheet!$A$1:$A$370=$B9),--(WorkSheet!$C$1:$C$370=$C9),WorkSheet!P$1:P$370)
Or is something totally different needed? Could someone please showwhat
the formula would need to be? Rob



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
Finding the lowest value according to multiple criteria frankjh19701 Charts and Charting in Excel 0 March 6th 07 06:36 PM
SUMPRODUCT question, finding data on multiple criteria TravisB Excel Discussion (Misc queries) 1 March 5th 07 06:41 AM
SUM with multiple numeric and text criteria mcdc01 Excel Discussion (Misc queries) 2 January 24th 07 09:21 PM
finding data with multiple criteria carstowal Excel Discussion (Misc queries) 2 August 14th 06 03:41 PM
Finding a record using multiple combo boxes as my search criteria sdg8481 Excel Discussion (Misc queries) 8 March 8th 05 08:36 PM


All times are GMT +1. The time now is 03:17 PM.

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"