vlookup problem

Cossie

Active Member
I would like to return a value from a vlookup based on the value of A2.

In cell C3 I get the correct result, but i would like cell C4 to say browns plains and C5 to say woodridge. The formula is below. Any ideas anyone. Thanks a million. DC
Book4
ABCD
2logan
3LoganBeenleighBeenleigh
4LoganBrownsPlainsBeenleigh
5LoganWoodridgeBeenleigh
Sheet1

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
see this thread

"http://groups.google.com/group/microsoft.public.excel.worksheet.functions/
browse_frm/thread/c41750e2345c7639/ae16ddcb0ec7830f?lnk=st&q=vlookup+all+values+excel&rnum=8#ae16ddcb0ec7830f"

I assume you must really have more data than this dummy set,
but why not simply put c3=if(a3=\$A\$2,b3,"") and copy down in column C.

Book5
ABCD
1
2logan3
3LoganBeenleighBeenleigh
4LoganBrowns PlainsBrowns Plains
5LoganWoodridgeWoodridge
6
Sheet1

C2:

=COUNTIF(A3:A5,A2)

C3:

=IF(ROWS(\$C\$3:C3)<=\$C\$2,INDEX(\$B\$3:\$B\$5,SMALL(IF(\$A\$3:\$A\$5=\$A\$2,ROW(\$A\$3:\$A\$5)-ROW(\$A\$3)+1),ROWS(\$C\$3:C3))),"")

which is confirmed with control+shift+enter (not just with enter) then coied down.

Replies
8
Views
145
Replies
3
Views
165
Replies
1
Views
233
Replies
3
Views
140
Replies
1
Views
147

Threads
1,219,917
Messages
6,150,946
Members
450,996
Latest member
darko1515s

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back