Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Checking the lower row of vlookup()

I am trying to see if there is a way to check a lower row after vlookup has
found the string in the first column. Example:

Year Event Length
1995 A 10
1995 B 56
1995 C 15

How would I search on another sheet to see if year "1995" had event "C", and
if so, display the length. This is a long spreadsheet with many items in the
first column and the second column isn't always in the number of entries.

Thanks For Any Info.
Edward


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Checking the lower row of vlookup()

*Maybe* this:

=SUMPRODUCT(--(Year=1995),--(Event="C"),Length)


--
Biff
Microsoft Excel MVP


"ETLahrs" wrote in message
...
I am trying to see if there is a way to check a lower row after vlookup has
found the string in the first column. Example:

Year Event Length
1995 A 10
1995 B 56
1995 C 15

How would I search on another sheet to see if year "1995" had event "C",
and
if so, display the length. This is a long spreadsheet with many items in
the
first column and the second column isn't always in the number of entries.

Thanks For Any Info.
Edward




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Checking the lower row of vlookup()

One way is to create a helper column that's =A2&B2, then Vlookup '1995C'.

Another way is to use Sumproduct, as in:

=sumproduct(--(a2:a4=1995),--(b2:b4="C"),c2:c4)

Both of these will work as long as the combination of A and B is unique.

Regards,
Fred.

"ETLahrs" wrote in message
...
I am trying to see if there is a way to check a lower row after vlookup has
found the string in the first column. Example:

Year Event Length
1995 A 10
1995 B 56
1995 C 15

How would I search on another sheet to see if year "1995" had event "C",
and
if so, display the length. This is a long spreadsheet with many items in
the
first column and the second column isn't always in the number of entries.

Thanks For Any Info.
Edward



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
Checking the lower row of vlookup() ETLahrs Excel Worksheet Functions 0 March 3rd 08 09:31 PM
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
VLookup - Error Checking Karin Excel Discussion (Misc queries) 4 July 19th 07 10:18 PM
Using COUNTIF and VLOOKUP with upper and lower case letters mcilwrk Excel Worksheet Functions 5 May 22nd 07 01:24 AM
need to select closest match using vlookup if it higher or lower vlookup help pls Excel Discussion (Misc queries) 1 March 1st 06 07:30 PM


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