Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Lookup Help... Again.

You guys were so great last time here is another one for you...

I have two 'scorecards' with an id number, name, and score. Both are sorted
by score in descending order. I would like to generate cumulative scorecard
with both scores and a summary score but when I try and look up the score up
based upon the ID I am getting incorrect results. There is a match for every
name so it isn't a a null error. The formula I'm using is as follows...

=IF(ISNA(LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase I
Scorecard'!$H$13:$H43)),"",LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase
I Scorecard'!$H$13:$H43))

--
Doug S
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup Help... Again.

I would suggest that you try this:

=IF(ISNA(VLOOKUP($E43,'Phase I Scorecard'!$E$13:$H43,4,0)),"",VLOOKUP
($E43,'Phase I Scorecard'!$E$13:$H43,4,0))

The 0 (or it could be FALSE) at the end of the VLOOKUP indicates that
you are looking for an exact match, so the table can be in any order.
The 4 indicates that you want to get data from the 4th column of the
table if there is a match in the first column. VLOOKUP is more useful
than LOOKUP, I find.

Hope this helps.

Pete

On Dec 7, 2:22*pm, Doug S wrote:
You guys were so great last time here is another one for you...

I have two 'scorecards' with an id number, name, and score. Both are sorted
by score in descending order. I would like to generate cumulative scorecard
with both scores and a summary score but when I try and look up the score up
based upon the ID I am getting incorrect results. There is a match for every
name so it isn't a a null error. The formula I'm using is as follows...

=IF(ISNA(LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase I
Scorecard'!$H$13:$H43)),"",LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase
I Scorecard'!$H$13:$H43))

--
Doug S


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 269
Default Lookup Help... Again.


I would try forcing an exact match lookup as follows:

=IF(ISerror(Match($E43,'Phase I
Scorecard'!$E$13:$E43,0),"",VLOOKUP($E43,'Phase I
Scorecard'!$E$13:$H43,4,false))

The VLOOKUP(Lookupvalue,Range,Column,Type) formula can sometime be better
that the simple LOOKUP. The 4 for column sets the results column as the 4th
coulmn in the definded range (H in this case), and the False type forces an
exact match. The 0 type on the match function also forces an exact match.
In both cases it no longer matters if the data is sorted. One caution, only
the first match will be found. If there are duplicate values in E13:E43 you
will not be able to use a simple formula to return items for the second
match. I would assume that the ID number would be unique for each data line,
but you should confirm this.
--
If this helps, please remember to click yes.


"Doug S" wrote:

You guys were so great last time here is another one for you...

I have two 'scorecards' with an id number, name, and score. Both are sorted
by score in descending order. I would like to generate cumulative scorecard
with both scores and a summary score but when I try and look up the score up
based upon the ID I am getting incorrect results. There is a match for every
name so it isn't a a null error. The formula I'm using is as follows...

=IF(ISNA(LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase I
Scorecard'!$H$13:$H43)),"",LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase
I Scorecard'!$H$13:$H43))

--
Doug S

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Lookup Help... Again.

Thank you! Actually both work like a charm.

--
Doug S


"Doug S" wrote:

You guys were so great last time here is another one for you...

I have two 'scorecards' with an id number, name, and score. Both are sorted
by score in descending order. I would like to generate cumulative scorecard
with both scores and a summary score but when I try and look up the score up
based upon the ID I am getting incorrect results. There is a match for every
name so it isn't a a null error. The formula I'm using is as follows...

=IF(ISNA(LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase I
Scorecard'!$H$13:$H43)),"",LOOKUP($E43,'Phase I Scorecard'!$E$13:$E43,'Phase
I Scorecard'!$H$13:$H43))

--
Doug S

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
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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