LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default how to vlookup returning a concatenation of 2 cells

Put the following formula in Cell H11 and fill it over to I11

=$A$1&VLOOKUP(H10,$B$4:$D$10,2,FALSE)&VLOOKUP(H10, $B$4:$D$10,3,FALSE)

Then without changing the active sheet run the following procedure

Sub TestVlook()
Dim wb As Workbook, ws As Worksheet
Set wb = ThisWorkbook
Set ws = wb.ActiveSheet
Workbooks.Open Filename:=Range("h11").Value
ws.Activate
On Error Resume Next
If Not Range("i11").Value = "#N/A!" Then Workbooks.Open _
Filename:=Range("i11").Value
End Sub

The above formula does not have error trapping to take care of the
situation in which H10 doesn't have in it a value that is included in B4:B10

Alan Beban

Loz wrote:
Hi everyone,
Sorry I didn't reply earlier (it's 10am in Sydney atm and
I've just logged on...)
This is what I was trying to achieve:

A
1 c:\files\ (DropDown1 of B3:B10)
2 (DropDown2 of B3:B10)
A B c D
3 Ibm IBM FAStT700 IBM\ ibm.xls
4 Dell EMC CX600 DEL\ dell.xls


DropDown1 puts selection into cell H10
DropDown2 puts selection into cell I10 (if one was
selected)

Then I wanted the code to find H10 in B3:B10 and open the
file Ie. IBM FAStT700 selected and then opens A1 & C3 & D3

Then IF I10 was populated with another option ie EMC CX600
it would then open that file.

I am really sorry if I was unclear (or still am) maybe I
am going about it all wrong?!?!?! I am just plodding along
and trying to achieve the best i can :-)

Thank you for your support!
I will also try the examples provided today thanks

Kind regards,
Lauren


 
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 03:01 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"