#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default vlookup help

I have 2 columns of data. I am trying to create a formula that will search
the columns for data and return the data to the left of that column. I also
want it to list the data to the left of the column. For example, I want Excel
to look through a range of data from let's say B3:B58. I want it to find
every entry of "4th". Each time it finds "4th" in column B3:b58, I want it to
give me the name of the person listed next to the number. I am using Excel
2003
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default vlookup help

Try this...

Assume you want the names listed starting in cell D3.

Enter this array formula** in D3:

=IF(ROWS(D$3:D3)<=COUNTIF(B$3:B$58,"4th"),INDEX(A$ 3:A$58,SMALL(IF(B$3:B$58="4th",ROW(A$3:A$58)-MIN(ROW(A$3:A$58))+1),ROWS(D$3:D3))),"")

Copy down until you get blanks

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

--
Biff
Microsoft Excel MVP


"learning" wrote in message
...
I have 2 columns of data. I am trying to create a formula that will search
the columns for data and return the data to the left of that column. I
also
want it to list the data to the left of the column. For example, I want
Excel
to look through a range of data from let's say B3:B58. I want it to find
every entry of "4th". Each time it finds "4th" in column B3:b58, I want it
to
give me the name of the person listed next to the number. I am using Excel
2003



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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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