Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to vlookup returning a concatenation of 2 cells

Hi,

I was hoping someone could help me with a problem I have
please. I know (hope) it isn't too complicated, but I just
can't do it. My logic isn't computing. }:-s

I have 2 labels. $H$10 & $I$10.
I need code to read H10 and find it in Col B and return
the contents of Col C (Path) & Col D (Filename).
Then, if there is a label in I10 do the same.

I look forward to any assistance
Thank you!
Loz
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default how to vlookup returning a concatenation of 2 cells

=VLOOKUP(H10,B:D,{2,3}) array entered into a 2-column row

Alan Beban

Loz wrote:
Hi,

I was hoping someone could help me with a problem I have
please. I know (hope) it isn't too complicated, but I just
can't do it. My logic isn't computing. }:-s

I have 2 labels. $H$10 & $I$10.
I need code to read H10 and find it in Col B and return
the contents of Col C (Path) & Col D (Filename).
Then, if there is a label in I10 do the same.

I look forward to any assistance
Thank you!
Loz


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how to vlookup returning a concatenation of 2 cells

this does not work for me :(
Excel XP

Patrick Molloy
-----Original Message-----
=VLOOKUP(H10,B:D,{2,3}) array entered into a 2-column row

Alan Beban

Loz wrote:
Hi,

I was hoping someone could help me with a problem I

have
please. I know (hope) it isn't too complicated, but I

just
can't do it. My logic isn't computing. }:-s

I have 2 labels. $H$10 & $I$10.
I need code to read H10 and find it in Col B and

return
the contents of Col C (Path) & Col D (Filename).
Then, if there is a label in I10 do the same.

I look forward to any assistance
Thank you!
Loz


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default how to vlookup returning a concatenation of 2 cells

Loz,
try this (adjust $B$1:$D$18 to suit)

Sub test()
For i = 8 To 9
If Not Cells(10, i).Value = IsNothing Then
If Not IsError(Evaluate("VLOOKUP(" _
& Cells(10, i).Address & ",$B$1:$D$18,2,0)")) Then
Cells(11, i).Value = Evaluate _
("VLOOKUP(" & Cells(10, i).Address & ",$B$1:$D$18,2,0)") & _
Evaluate("VLOOKUP(" & Cells(10, i).Address & ",$B$1:$D$18,3,0)")
End If
End If
Next i
End Sub

HTH
Cecil

"Loz" wrote in message
...
Hi,

I was hoping someone could help me with a problem I have
please. I know (hope) it isn't too complicated, but I just
can't do it. My logic isn't computing. }:-s

I have 2 labels. $H$10 & $I$10.
I need code to read H10 and find it in Col B and return
the contents of Col C (Path) & Col D (Filename).
Then, if there is a label in I10 do the same.

I look forward to any assistance
Thank you!
Loz



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 always returning the same value! Jennifer Cali Excel Discussion (Misc queries) 10 April 23rd 23 09:08 AM
VLOOKUP and Concatenation PAL Excel Worksheet Functions 5 September 9th 09 08:16 PM
Concatenation of ALPHA and NUMERIC cells? ConfusedNHouston Excel Discussion (Misc queries) 2 May 20th 07 02:25 AM
Concatenation and skipping blank cells soma104 Excel Worksheet Functions 6 May 31st 06 01:12 PM
concatenation of cells Gene[_5_] Excel Programming 2 July 10th 03 06:51 PM


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