Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
Default Multiple Criteria Lookup Results

I have used the three tier lookup formula done by using the "Bob
Ulmas" technique that I found on the http://www.mvps.org/dmcritchie/excel/vlookup.htm
website but am trying to tweak it a bit.

I have a table with comments where not all of the lines do not
actually have a comment and the result being displayed is 0 in the
cell.

I have used this formula....

=IF(ISERROR(INDEX(O9B.Comments,MATCH(1,
(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALUE(BFund) )*(O9B.CCC=$C166),
0))),"",INDEX(O9B.Comments,MATCH(1,
(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALUE(BFund) )*(O9B.CCC=$C166),
0)))

or without the IF(ISERROR(

INDEX(O9B.Comments,MATCH(1,
(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALUE(BFund) )*(O9B.CCC=$C166),
0))

The formula is working (Control+Shift+Enter) but any suggestions as to
how to get rid of the 0 as a result of no comments being provided?

Out of curiousity, would

VLOOKUP({(Range1=Criteria1)*(Range2=Criteria2)*(Ra nge3=Criteria3)},....
work?

I did however, just tried a random thing which was to have a custom
cell format as "" which appears to be working..... for now.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Multiple Criteria Lookup Results

Maybe

=IF(ISERROR(INDEX(O9B.Comments,
MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALU E(BFund))*(O9B.CCC=$C166),0))),"",
IF(INDEX(O9B.Comments,
MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALU E(BFund))*(O9B.CCC=$C166),0))=0,"",
INDEX(O9B.Comments,
MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALU E(BFund))*(O9B.CCC=$C166),0))))



--
HTH

Bob

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

"Forgone" wrote in message
...
I have used the three tier lookup formula done by using the "Bob
Ulmas" technique that I found on the
http://www.mvps.org/dmcritchie/excel/vlookup.htm
website but am trying to tweak it a bit.

I have a table with comments where not all of the lines do not
actually have a comment and the result being displayed is 0 in the
cell.

I have used this formula....

=IF(ISERROR(INDEX(O9B.Comments,MATCH(1,
(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALUE(BFund) )*(O9B.CCC=$C166),
0))),"",INDEX(O9B.Comments,MATCH(1,
(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALUE(BFund) )*(O9B.CCC=$C166),
0)))

or without the IF(ISERROR(

INDEX(O9B.Comments,MATCH(1,
(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALUE(BFund) )*(O9B.CCC=$C166),
0))

The formula is working (Control+Shift+Enter) but any suggestions as to
how to get rid of the 0 as a result of no comments being provided?

Out of curiousity, would

VLOOKUP({(Range1=Criteria1)*(Range2=Criteria2)*(Ra nge3=Criteria3)},....
work?

I did however, just tried a random thing which was to have a custom
cell format as "" which appears to be working..... for now.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
Default Multiple Criteria Lookup Results

Bob,

Would this work using VBA in an effort to reduce the amount of time it
would take to process this equation?

On Jul 15, 5:30*pm, "Bob Phillips" wrote:
Maybe

=IF(ISERROR(INDEX(O9B.Comments,
* * * MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALU E(BFund))*(O9B.CCC=$C166)*,0))),"",
* * * IF(INDEX(O9B.Comments,
* * * * * *MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VAL UE(BFund))*(O9B.CCC=$C166)*,0))=0,"",
* * * * * *INDEX(O9B.Comments,
* * * * * *MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VAL UE(BFund))*(O9B.CCC=$C166)*,0))))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Multiple Criteria Lookup Results

Although it looks complex, if it is sparsely used, this is not that
expensive a formula.

--
HTH

Bob

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

"Forgone" wrote in message
...
Bob,

Would this work using VBA in an effort to reduce the amount of time it
would take to process this equation?

On Jul 15, 5:30 pm, "Bob Phillips" wrote:
Maybe

=IF(ISERROR(INDEX(O9B.Comments,
MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALU E(BFund))*(O9B.CCC=$C166)*,0))),"",
IF(INDEX(O9B.Comments,
MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALU E(BFund))*(O9B.CCC=$C166)*,0))=0,"",
INDEX(O9B.Comments,
MATCH(1,(O9B.CCB=VALUE(BCostCentre))*(O9B.CCD=VALU E(BFund))*(O9B.CCC=$C166)*,0))))



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
V lookup with 2 criteria to return results for multiple columns JenL Excel Worksheet Functions 2 September 20th 07 10:04 PM
Index & Match functions - multiple criteria and multiple results [email protected] Excel Worksheet Functions 4 May 2nd 07 03:13 AM
Multiple criteria with multiple results in one cell RS Excel Worksheet Functions 4 March 2nd 07 11:05 PM
Multiple results from multiple criteria using IF function David Platt Excel Discussion (Misc queries) 2 January 15th 07 10:19 AM
Multi-criteria lookup with Multiple results andy62 Excel Worksheet Functions 3 September 22nd 06 03:40 AM


All times are GMT +1. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"